diff --git a/app/assets/javascripts/export_configure.js b/app/assets/javascripts/export_configure.js index 2f78c30..d6ae5bb 100644 --- a/app/assets/javascripts/export_configure.js +++ b/app/assets/javascripts/export_configure.js @@ -38,7 +38,7 @@ $(this).val($(this).data("default")); }); $(".unsaved_changes_alert").hide(); - $("#settings-toggle > small").text(I18n.t("settings.plans.template_formatting")); + $("#settings-toggle > small").text(I18n.t("project.settings.plans.template_formatting")); }); $('.btn-primary[value="Save"]').click(function(){ @@ -49,10 +49,10 @@ } }); if (custom) { - $("#settings-toggle > small").text(I18n.t("settings.plans.custom_formatting")); + $("#settings-toggle > small").text(I18n.t("project.settings.plans.custom_formatting")); } else { - $("#settings-toggle > small").text(I18n.t("settings.plans.template_formatting")); + $("#settings-toggle > small").text(I18n.t("project.settings.plans.template_formatting")); } $(".unsaved_changes_alert").hide(); }); diff --git a/app/assets/javascripts/plans.js b/app/assets/javascripts/plans.js index 8a461b5..43db140 100644 --- a/app/assets/javascripts/plans.js +++ b/app/assets/javascripts/plans.js @@ -482,12 +482,10 @@ return false; }; -// Checks section locks, applies lock if needed. Does not lift lock. -// If locked, display questions as read-only. Otherwise, apply lock and display as editable. $.fn.check_section_lock = function() { var section = $(this); var section_id = section.attr("id").split('-')[1]; - $.getJSON("locked.json?section_id="+section_id, function(data) { + $.getJSON("locked?section_id="+section_id, function(data) { if (data.locked) { section.find(".section-lock-notice").html("

" + I18n.t("helpers.project.share.locked_section_text") + data.locked_by + ".

"); section.find(".section-lock-notice").show(); @@ -500,7 +498,7 @@ // LIBDMP-137 // Changed post request 'lock_section' to 'lock_section.json'. 'lock_section' unnecessary returns a huge html response and takes a quite lot of time to process(3sec) lowering server // performance when there are large number of concurrent users. - $.post('lock_section.json', {section_id: section_id} ); + $.post('lock_section', {section_id: section_id} ); section.find(".section-lock-notice").html(""); section.find(".section-lock-notice").hide(); section.find("input").removeAttr('disabled');