ace
4 years ago
delete-confirm.js
4 years ago
editor.js
4 years ago
library.js
4 years ago
manager.js
1 month ago
plugin.js
4 years ago
manager.js
26 lines
| 1 | jQuery(function() { |
| 2 | var $sortable=jQuery("#tblSortable .table-body"); |
| 3 | $sortable.sortable({ |
| 4 | tolerance:'intersect' |
| 5 | , cursor:'move' |
| 6 | , items:'tr' |
| 7 | , placeholder:'ui-state-highlight' |
| 8 | , nested: 'tbody' |
| 9 | , update: function(event, ui) { |
| 10 | var orders=$sortable.sortable('serialize'); |
| 11 | var data={action: 'TCMP_changeOrder', nonce: ajax_vars.nonce, order: orders}; |
| 12 | jQuery.post(ajaxurl, data, function(result) { |
| 13 | console.log(result); |
| 14 | }); |
| 15 | } |
| 16 | }); |
| 17 | $sortable.disableSelection(); |
| 18 | }); |
| 19 | |
| 20 | jQuery(function() { |
| 21 | var href = jQuery("#tcmpRedirect").attr("href") || []; |
| 22 | if (href.length > 0) { |
| 23 | window.location.replace(href); |
| 24 | } |
| 25 | }); |
| 26 |