[-] BO : FixBug Bulk action sended on filter

This commit is contained in:
Jerome Nadaud
2013-08-07 18:42:43 +02:00
parent 000ff0b462
commit 65271a9385
2 changed files with 5 additions and 2 deletions
+5 -1
View File
@@ -1045,7 +1045,11 @@ function hideOtherLanguage(id)
function sendBulkAction(form, action)
{
$(action).val(1);
String.prototype.splice = function( idx, rem, s ) {
return (this.slice(0,idx) + s + this.slice(idx + Math.abs(rem)));
};
$(form).attr('action', $(form).attr('action').splice($(form).attr('action').lastIndexOf('&'), 0, '&' + action));
$(form).submit();
}