ace
3 years ago
delete-confirm.js
3 years ago
editor.js
3 years ago
library.js
3 years ago
manager.js
2 years ago
plugin.js
3 years ago
manager.js
36 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 | !function(d,s,id){ |
| 21 | var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https'; |
| 22 | if(!d.getElementById(id)){ |
| 23 | js=d.createElement(s); |
| 24 | js.id=id; |
| 25 | js.src=p+'://platform.twitter.com/widgets.js'; |
| 26 | fjs.parentNode.insertBefore(js,fjs); |
| 27 | } |
| 28 | }(document, 'script', 'twitter-wjs'); |
| 29 | |
| 30 | jQuery(function() { |
| 31 | var href = jQuery("#tcmpRedirect").attr("href") || []; |
| 32 | if (href.length > 0) { |
| 33 | window.location.replace(href); |
| 34 | } |
| 35 | }); |
| 36 |