Ignore:
Timestamp:
Jan 31, 2011, 6:01:03 PM (14 years ago)
Author:
grum
Message:

release 3.0.1
bug:2157, bug:2158

Location:
extensions/AMenuManager/js
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/AMenuManager/js/amm_personalisedBlocks.js

    r8962 r9010  
    22 * userPersonnalisedBlockManage
    33 *
    4  * release 1.0.0
     4 * release 1.0.1
    55 */
    66function userPersonnalisedBlockManage(opt, keys, token, initValues)
     
    152152      // build datas
    153153      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');
    156156
    157157      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/28 with http://jscompress.com/ */
     1/* file: amm_personalisedBlocks.js - v1.0.1 | minified on 2011/01/31 with http://jscompress.com/ */
    22function userPersonnalisedBlockManage(opt,keys,token,initValues)
    33{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()
     
    1414{titles[lang]=tmp.langs[lang].title;contents[lang]=tmp.langs[lang].content;}
    1515$('#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)
    1717{langs.push({lang:lang,title:titles[lang],content:contents[lang]});}
    1818var 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.