@@ -81,13 +81,13 function initFilters() { | |||||
81 | $('#filters-table td.field input[type=checkbox]').each(function() { |
|
81 | $('#filters-table td.field input[type=checkbox]').each(function() { | |
82 | toggleFilter($(this).val()); |
|
82 | toggleFilter($(this).val()); | |
83 | }); |
|
83 | }); | |
84 |
$('#filters-table |
|
84 | $('#filters-table').on('click', 'td.field input[type=checkbox]', function() { | |
85 | toggleFilter($(this).val()); |
|
85 | toggleFilter($(this).val()); | |
86 | }); |
|
86 | }); | |
87 |
$('#filters-table |
|
87 | $('#filters-table').on('click', '.toggle-multiselect', function() { | |
88 | toggleMultiSelect($(this).siblings('select')); |
|
88 | toggleMultiSelect($(this).siblings('select')); | |
89 | }); |
|
89 | }); | |
90 |
$('#filters-table |
|
90 | $('#filters-table').on('keypress', 'input[type=text]', function(e) { | |
91 | if (e.keyCode == 13) submit_query_form("query_form"); |
|
91 | if (e.keyCode == 13) submit_query_form("query_form"); | |
92 | }); |
|
92 | }); | |
93 | } |
|
93 | } | |
@@ -537,10 +537,10 function initMyPageSortable(list, url) { | |||||
537 | var warnLeavingUnsavedMessage; |
|
537 | var warnLeavingUnsavedMessage; | |
538 | function warnLeavingUnsaved(message) { |
|
538 | function warnLeavingUnsaved(message) { | |
539 | warnLeavingUnsavedMessage = message; |
|
539 | warnLeavingUnsavedMessage = message; | |
540 |
$( |
|
540 | $(document).on('submit', 'form', function(){ | |
541 | $('textarea').removeData('changed'); |
|
541 | $('textarea').removeData('changed'); | |
542 | }); |
|
542 | }); | |
543 | $('textarea').live('change', function(){ |
|
543 | $(document).on('change', 'textarea', function(){ | |
544 | $(this).data('changed', 'changed'); |
|
544 | $(this).data('changed', 'changed'); | |
545 | }); |
|
545 | }); | |
546 | window.onbeforeunload = function(){ |
|
546 | window.onbeforeunload = function(){ |
General Comments 0
You need to be logged in to leave comments.
Login now