Browse Source

change: inutile de supprimer un paramètre d'une url si on peut ne pas le mettre dès le début

dev_v3
Maïeul 3 months ago
parent
commit
68a29f09a8
  1. 2
      inclure/formidable_ts_entete.html
  2. 2
      javascript/formidable_ts.js

2
inclure/formidable_ts_entete.html

@ -7,7 +7,7 @@
checkAll = '<:formidable_ts:checkall:>';
uncheckAll = '<:formidable_ts:uncheckall:>';
resetAllconfirm = "<:formidable_ts:resetallconfirm:>";
pager_ajaxUrl = '#URL_PAGE{formidable_ts.json}&page_ts={page}&size={size}&{sortList:sort}&id_formulaire=#ID_FORMULAIRE&statut=#ENV{statut}';
pager_ajaxUrl = '#URL_PAGE{formidable_ts.json}&page_ts={page}&size={size}&id_formulaire=#ID_FORMULAIRE&statut=#ENV{statut}';
url_sortList = '#URL_PAGE{formidable_ts_sortList.json}&id_formulaire=#ID_FORMULAIRE';
url_resizable_widths = '#URL_PAGE{formidable_ts_resizable_widths.json}&id_formulaire=#ID_FORMULAIRE';
url_resetAll = '#URL_PAGE{formidable_ts_resetAll.json}&id_formulaire=#ID_FORMULAIRE';

2
javascript/formidable_ts.js

@ -112,8 +112,6 @@ function formidable_ts_start(sortList, resizable_widths) {
obj.data['reset_filters'] = '1';
}
// Do not sent full sorting data by url
url = url.replace(/&?sort\[\d+\]=(1|0)/, '');
return url; // required to return url, but url remains unmodified
},
pager_ajaxObject: {

Loading…
Cancel
Save