Commit c4890c69372c23c515cadd40e9ee042663a8bc92
1 parent
4ada3de9
wyłączanie przycisku zapisu przy zapisywaniu (double post)
--HG-- extra : source : 969ead5860c0f9febe61c575bdbee907f8bc5a6a
Showing
2 changed files
with
3 additions
and
8 deletions
dictionary/static/js/lexeme-edit.js
... | ... | @@ -356,10 +356,9 @@ $.extend(edit, { |
356 | 356 | edit.hide_changed(); |
357 | 357 | edit.busy_off(); |
358 | 358 | }, |
359 | - form_submit: function () { | |
359 | + | |
360 | + form_submit: function(form_data) { | |
360 | 361 | "use strict"; |
361 | - var this_form = $(this); | |
362 | - var form_data = this_form.serializeArray(); | |
363 | 362 | form_data.push({name: 'deleted', value: deleted}); |
364 | 363 | form_data.push({name: 'deleted_cr', value: deleted_cr}); |
365 | 364 | var vocabularies = []; |
... | ... | @@ -456,7 +455,6 @@ $.extend(edit, { |
456 | 455 | if (result === false) { |
457 | 456 | edit.busy_off(); |
458 | 457 | } |
459 | - return false; | |
460 | 458 | } |
461 | 459 | }); |
462 | 460 | |
... | ... |
patterns/static/js/pattern-edit.js
... | ... | @@ -96,10 +96,8 @@ $.extend(edit, { |
96 | 96 | edit.busy_off(); |
97 | 97 | }, |
98 | 98 | |
99 | - form_submit: function () { | |
99 | + form_submit: function(form_data) { | |
100 | 100 | "use strict"; |
101 | - var this_form = $(this); | |
102 | - var form_data = this_form.serializeArray(); | |
103 | 101 | form_data.push({name: 'deleted', value: deleted}); |
104 | 102 | deleted = []; |
105 | 103 | var ending_list = []; |
... | ... | @@ -145,7 +143,6 @@ $.extend(edit, { |
145 | 143 | return true; |
146 | 144 | } |
147 | 145 | }); |
148 | - return false; | |
149 | 146 | } |
150 | 147 | }); |
151 | 148 | |
... | ... |