[-] BO : FixBug Bulk action sended on filter
This commit is contained in:
@@ -47,7 +47,6 @@
|
||||
<a href="#" onclick="{if isset($params.confirm)}if (confirm('{$params.confirm}')){/if}sendBulkAction($(this).closest('form').get(0), 'submitBulk{$key}{$table}');">
|
||||
<i class="{$params.icon}"></i> {$params.text}
|
||||
</a>
|
||||
<input type="hidden" name="submitBulk{$key}{$table}" value="" />
|
||||
{/if}
|
||||
</li>
|
||||
{/foreach}
|
||||
|
||||
+5
-1
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user