Changeset 11484 for extensions/set_plugins/js
- Timestamp:
- Jun 22, 2011, 3:51:47 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/set_plugins/js/field_set.js
r11462 r11484 3 3 // jQuery("#form_set_plugins").submit(); 4 4 } 5 6 7 5 jQuery().ready(function () { 8 6 jQuery('.cluetip').tipTip({ maxWidth:'600px' ,'delay': 0, 'fadeIn': 200, 'fadeOut': 200 }); 9 jQuery('.cluetip0').cluetip({ 10 width: 300, 11 splitTitle: '|' , 12 clickThrough: true 13 }); 14 15 16 17 18 }); 19 20 21 22 23 7 8 }); var post = {}; 24 9 jQuery("fieldset").hide(); 25 10 jQuery(document).ready(function () { … … 27 12 // jQuery("#form_set_plugins").submit(); 28 13 }); 29 30 14 if (typeof plus_path == "undefined") { 31 15 var plus_path = './plugins/set_plugins/js/icon/plus.png'; … … 33 17 } 34 18 var h_min = 0; 35 var liste_des_plugins = {}; 36 jQuery(window).load(function () { 19 var liste_des_plugins = new Array(); 20 21 jQuery(window).load(function (event) { 22 n = post; 23 var link = event.target.location.href; 24 if (link.indexOf("?") != -1) { 25 link = link.replace(/\"/ig, ""); 26 var query = link.split("?")[1]; 27 eval("query = {" + query.replace(/&/ig, "\",").replace(/=/ig, ":\"") + "\"};"); 28 } 29 30 if (query.plugin) 31 jQuery('#add_plugins').val(query.plugin); 32 37 33 if (jQuery(".titrePage").length >= 1) { 38 34 if (jQuery("span.sort").length >= 1) … … 119 115 jQuery("input[name=list_visible]").val(val); 120 116 jQuery('#set').val("true"); 121 122 jQuery.ajax({123 type: "POST",124 async: true,125 data: { list_visible: val, set: "true" },126 success: function (msg) {127 // jQuery("#form_set_plugins").submit();128 }129 });130 131 117 }); // click 132 118 133 119 134 }); //each 120 }); //each fieldset 121 //========================================================== 122 123 124 125 126 //========================================================= 127 135 128 var liste_action = { active: "", deactive: "" }; 129 jQuery("input[name=list_visible]").val(liste.join(",")); 130 jQuery("fieldset").show(); 131 } // fielset 132 //==================================================================== 133 jQuery(".plugin_list").each(function (i) { 134 liste_des_plugins.push(jQuery(this).attr('id')); 135 } 136 136 137 jQuery(".pluginBox a").each( 137 ) 138 139 //============================================================== 140 jQuery("input").each( 138 141 function (i) { 139 142 jQuery(this).click(function (event) { … … 143 146 144 147 }); //each 145 jQuery("input[name=list_visible]").val(liste.join(","));146 jQuery("fieldset").show();147 } // fielset148 //====================================================================149 148 150 jQuery("input").each(151 function (i) {152 jQuery(this).click(function (event) {153 jQuery(this).css("color", "red");154 jQuery('#set').val("true");155 jQuery.ajax({156 type: "POST",157 async: true,158 data: {159 set: "true"160 }161 ,162 success: function (data) {163 // jQuery("#form_set_plugins").submit();164 165 }166 });167 }); // click168 169 }); //each170 149 jQuery(".pluginBox a").click(function (event) { 171 150 var link = event.target.href; … … 175 154 jQuery('#add_plugins').val(query.plugin); 176 155 jQuery('#set').val("true"); 156 n = query.pwg_token; 157 action = query.action; 177 158 val = liste.join(","); 159 val2 = liste_des_plugins.join(","); 160 jQuery.ajax({ 161 method: 'GET', 162 // url: get_post, 163 data: { get_post: get_post, 164 liste_des_plugins: true, 165 liste: val, 166 add_plugins: query.plugin, 167 set: "true", 168 action: query.action 169 }, 170 async: false, 171 dataType: 'json', 172 success: function (data) { 173 n = eval(data); 174 jQuery("#titrePage").after( 175 '<img alt = "" width="50px" title = ""' + 176 'src = "themes/default/images/colorbox-loading.gif"' + '> ' 177 ); 178 178 179 jQuery.ajax({180 type: "POST",181 async: true,182 data: { add_plugins: query.plugin,183 set: "true",184 list_visible: val185 }186 ,187 success: function (data) {188 // jQuery("#form_set_plugins").submit();189 179 180 liste_des_plugins = data; 181 n = data; 190 182 } 191 183 }); 184 185 186 /* */ 192 187 193 188 } … … 196 191 197 192 }); // load 198 }); //ready193 }); //ready 199 194
Note: See TracChangeset
for help on using the changeset viewer.