PluginProbe ʕ •ᴥ•ʔ
Tracking Code Manager / 2.0.14
Tracking Code Manager v2.0.14
trunk 1.11.8 1.11.9 1.12.0 1.12.1 1.12.2 1.12.3 1.4 1.5 2.0.0 2.0.1 2.0.13 2.0.14 2.0.15 2.0.16 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.1.0 2.2.0 2.3.0 2.4.0 2.5.0 2.6.0
tracking-code-manager / assets / js / manager.js
tracking-code-manager / assets / js Last commit date
ace 3 years ago delete-confirm.js 3 years ago editor.js 3 years ago library.js 3 years ago manager.js 3 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', 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