Clone doActionOpts.
authorJan Schneider <jan@horde.org>
Mon, 1 Mar 2010 21:53:08 +0000 (22:53 +0100)
committerJan Schneider <jan@horde.org>
Mon, 1 Mar 2010 21:53:08 +0000 (22:53 +0100)
imp/js/DimpBase.js
imp/js/DimpCore.js

index d80a97e..32b62f3 100644 (file)
@@ -457,7 +457,7 @@ var DimpBase = {
             }.bind(this),
 
             // Optional config
-            ajax_opts: DimpCore.doActionOpts,
+            ajax_opts: Object.clone(DimpCore.doActionOpts),
             buffer_pages: DIMP.conf.buffer_pages,
             empty_msg: DIMP.text.vp_empty,
             list_class: 'msglist',
index 3de45e2..8480840 100644 (file)
@@ -108,7 +108,7 @@ var DimpCore = {
         params = $H(params);
         opts = opts || {};
 
-        var ajaxopts = Object.extend(this.doActionOpts, opts.ajaxopts || {});
+        var ajaxopts = Object.extend(Object.clone(this.doActionOpts), opts.ajaxopts || {});
 
         if (opts.uids) {
             if (opts.uids.viewport_selection) {