Changeset 9010 for extensions/AMenuManager/js
- Timestamp:
- Jan 31, 2011, 6:01:03 PM (14 years ago)
- Location:
- extensions/AMenuManager/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/AMenuManager/js/amm_personalisedBlocks.js
r8962 r9010 2 2 * userPersonnalisedBlockManage 3 3 * 4 * release 1.0. 04 * release 1.0.1 5 5 */ 6 6 function userPersonnalisedBlockManage(opt, keys, token, initValues) … … 152 152 // build datas 153 153 var langs=[], 154 titles=$('#iamm_personalised_ content').inputText('languagesValues'),155 contents=$('#iamm_personalised_ title').inputText('languagesValues');154 titles=$('#iamm_personalised_title').inputText('languagesValues'), 155 contents=$('#iamm_personalised_content').inputText('languagesValues'); 156 156 157 157 for(var lang in titles) -
extensions/AMenuManager/js/amm_personalisedBlocks.min.js
r8962 r9010 1 /* file: amm_personalisedBlocks.js - v1.0. 0 | minified on 2011/01/28with http://jscompress.com/ */1 /* file: amm_personalisedBlocks.js - v1.0.1 | minified on 2011/01/31 with http://jscompress.com/ */ 2 2 function userPersonnalisedBlockManage(opt,keys,token,initValues) 3 3 {var options={ajaxUrl:'plugins/AMenuManager/amm_ajax.php'},translatedKeys={g002_ok:'g002_ok',g002_cancel:'g002_cancel',g002_loading:'g002_loading',g002_editofpersonalised:'g002_editofpersonalised',g002_createofpersonalised:'g002_createofpersonalised'},properties={id:'',token:token},load=function() … … 14 14 {titles[lang]=tmp.langs[lang].title;contents[lang]=tmp.langs[lang].content;} 15 15 $('#iamm_personalised_nfo').inputText('value',tmp.nfo);$('#iamm_personalised_title').inputText('languagesValues',titles);$('#iamm_personalised_content').inputText('languagesValues',contents);$('#iamm_personalised_visible').inputRadio('value',tmp.visible);}},doUpdate=function() 16 {displayProcessing(true);var langs=[],titles=$('#iamm_personalised_ content').inputText('languagesValues'),contents=$('#iamm_personalised_title').inputText('languagesValues');for(var lang in titles)16 {displayProcessing(true);var langs=[],titles=$('#iamm_personalised_title').inputText('languagesValues'),contents=$('#iamm_personalised_content').inputText('languagesValues');for(var lang in titles) 17 17 {langs.push({lang:lang,title:titles[lang],content:contents[lang]});} 18 18 var datas={nfo:$('#iamm_personalised_nfo').inputText('value'),visible:$('#iamm_personalised_visible').inputRadio('value'),langs:langs};$.ajax({type:"POST",url:options.ajaxUrl,async:true,data:{ajaxfct:"admin.blocks.set",id:properties.id,token:properties.token,datas:datas},success:function(msg)
Note: See TracChangeset
for help on using the changeset viewer.