app/assets/javascripts/typus/jquery.application.js in typus-3.1.1 vs app/assets/javascripts/typus/jquery.application.js in typus-3.1.2

- old
+ new

@@ -1,47 +1,36 @@ $(document).ready(function() { $("#quicksearch").searchField(); - $('.resource :input', document.myForm).bind("change", function() { setConfirmUnload(true); }); + $(".resource :input", document.myForm).bind("change", function() { setConfirmUnload(true); }); $("a.fancybox").fancybox({ 'titlePosition': 'over', 'type': 'image', 'centerOnScroll': true, 'scrolling': false, }); - $(".iframe_with_form_reload").fancybox({ - 'width': 720, - 'height': '90%', - 'autoScale': false, - 'transitionIn': 'none', - 'transitionOut': 'none', - 'type': 'iframe', - 'centerOnScroll': true, - 'scrolling': false, - onClosed: function() { - var attribute = Typus.resource_attribute; - var text = Typus.resource_to_label; - var value = Typus.resource_id; - $(attribute).append(new Option(text, value, true, true)); - $(".chzn-select").trigger("liszt:updated"); - }, - }); - $(".iframe").fancybox({ 'width': 720, 'height': '90%', 'autoScale': false, 'transitionIn': 'none', 'transitionOut': 'none', 'type': 'iframe', 'centerOnScroll': true, 'scrolling': false, onClosed: function() { - if (Typus.parent_location_reload) + if (Typus.parent_location_reload) { parent.location.reload(true); + } else { + var attribute = Typus.resource_attribute; + var text = Typus.resource_to_label; + var value = Typus.resource_id; + $(attribute).append(new Option(text, value, true, true)); + $(".chzn-select").trigger("liszt:updated"); + } }, }); // This method is used by Typus::Controller::Bulk $(".action-toggle").click(function() {