[ Index ] |
PHP Cross Reference of MyBB 1.8.38 |
[Summary view] [Print] [Text view]
1 var ViewManager = { 2 init: function() 3 { 4 if(!$('#fields_enabled') || !$('#fields_disabled')) 5 { 6 return; 7 } 8 9 if(!$('#fields_js')) 10 { 11 return; 12 } 13 14 $("#fields_enabled").sortable({ 15 connectWith: "#fields_disabled", 16 dropOnEmpty: true, 17 update: function(event, ui) { 18 ViewManager.buildFieldsList(); 19 } 20 }).disableSelection(); 21 22 $("#fields_disabled").sortable({ 23 connectWith: "#fields_enabled", 24 dropOnEmpty: true, 25 update: function(event, ui) { 26 ViewManager.buildFieldsList(); 27 } 28 }).disableSelection(); 29 }, 30 31 buildFieldsList: function() 32 { 33 new_input = ''; 34 $('#fields_enabled').children().each(function() { 35 id = $(this).attr('id').split("-"); 36 37 if(id[1]) 38 { 39 if(new_input) 40 { 41 new_input += ","; 42 } 43 new_input += id[1]; 44 } 45 }); 46 $('#fields_js').val(new_input); 47 } 48 }; 49 50 $(function() 51 { 52 ViewManager.init(); 53 });
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
2005 - 2021 © MyBB.de | Alle Rechte vorbehalten! | Sponsor: netcup | Cross-referenced by PHPXref |