From 6034ed0f5dcb24b5dca8b23c667eb95b039cd026 Mon Sep 17 00:00:00 2001 From: David Feeney Date: Tue, 21 Oct 2014 22:14:06 -0400 Subject: [PATCH] remove outdated augmentation files --- viewshare/static/support/js/augment.js | 74 ------------------- .../support/create_augmentation_issue.html | 27 ------- 2 files changed, 101 deletions(-) delete mode 100644 viewshare/static/support/js/augment.js delete mode 100644 viewshare/templates/support/create_augmentation_issue.html diff --git a/viewshare/static/support/js/augment.js b/viewshare/static/support/js/augment.js deleted file mode 100644 index 4437d773..00000000 --- a/viewshare/static/support/js/augment.js +++ /dev/null @@ -1,74 +0,0 @@ -(function($, Freemix) { - - - function getFormUrl() { - return $("link[rel='support/augment']").attr("href"); - } - - function resetForm() { - var dialog = $("div#support"); - var form = $("form", dialog); - form.uniform(); - - var contact_visibility = function() { - if ($("#id_contact_type").val() == "email") { - $("#div_id_contact_phone").hide(); - $("#div_id_contact_email").show().effect("highlight"); - } else if ($("#id_contact_type").val() == "phone") { - $("#div_id_contact_email").hide(); - $("#div_id_contact_phone").show().effect("highlight"); - } - }; - - $("#id_contact_type").change(function() { - contact_visibility(); - }); - - form.ajaxForm({ - success: function(responseText, statusText, xhr, $form) { - dialog.empty().append($(responseText).find("#issue_create_content")); - resetForm(); - $("#support-spinner").hide(); - $("#support").show(); - - }, - beforeSubmit: function() { - $("#support").hide(); - $("#support-spinner").show(); - }, - error: function() { - var error = $("
").load("/support/issue/create_error", function() { - $(".messages>li.error", $(this)).addClass("ui-corner-all").addClass("ui-state-error"); - $(".messages>li", $(this)).prepend("  "); - $("#support-spinner").hide(); - $("#support").show(); - dialog.find(".messages").remove().end().prepend(this); - }); - - } - }); - contact_visibility(); - return form; - } - - function setup() { - var root = $("div#support"); - $("a#augment-support-link").click(function(e) { - e.preventDefault(); - root.empty().load(getFormUrl() + " #issue_create_content", function() { - var form = resetForm(); - - var p = $("#augment-failure-picker").data("property"); - $("#id_field_name", form).val(p.name()); - $("#id_profile_json", form).val($.toJSON($.extend({}, Freemix.exhibit.exportDatabase(Freemix.exhibit.database), {"data_profile": Freemix.profile}))); - root.data("from", "#augment-failure-picker"); - $("#augment-failure-picker, #identify #editor, #subnav").hide(); - root.show(); - - }); - - }); - } - - $(document).ready(setup); -})(window.Freemix.jQuery, window.Freemix); diff --git a/viewshare/templates/support/create_augmentation_issue.html b/viewshare/templates/support/create_augmentation_issue.html deleted file mode 100644 index 3f26d099..00000000 --- a/viewshare/templates/support/create_augmentation_issue.html +++ /dev/null @@ -1,27 +0,0 @@ -{% extends "site_base.html" %} -{% load url from future %} - -{% load i18n %} -{% load crispy_forms_tags %} - -{% block head_css %} -{{ block.super }} - -{% endblock %} - -{% block body %} -
-

Report a Data Augmentation Problem

- -
-
- {%csrf_token%} - {{ form|crispy }} -
- - -
-
-{% endblock %}