Skip to content

Commit

Permalink
Bug #13258: Use mailbox provided to message action for viewport updating
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Jun 12, 2014
1 parent 6afb499 commit e0a25ce
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions imp/js/dimpbase.js
Expand Up @@ -853,13 +853,11 @@ var DimpBase = {
});
},

addViewportParams: function(params)
addViewportParams: function(params, vs)
{
var tmp = this.viewport.addRequestParams();
if (params) {
tmp.update(params);
}
return tmp;
return this.viewport.addRequestParams(params, {
view: (vs ? vs.getBuffer().getView() : null)
});
},

emptyMsg: function()
Expand Down Expand Up @@ -3638,7 +3636,7 @@ var DimpBase = {
// This needs to be synchronous Ajax if we are calling from a
// popup window because Mozilla will not correctly call the
// callback function if the calling window has been closed.
DimpCore.doAction(type, this.addViewportParams(args), {
DimpCore.doAction(type, this.addViewportParams(args, vs), {
ajaxopts: { asynchronous: !(opts.uid && opts.mailbox) },
loading: opts,
uids: vs
Expand Down Expand Up @@ -3702,7 +3700,7 @@ var DimpBase = {
DimpCore.doAction('flagMessages', this.addViewportParams(params.merge({
add: ~~(!!add),
flags: Object.toJSON([ flag ])
})), {
}), vs), {
uids: vs
});
}
Expand Down

0 comments on commit e0a25ce

Please sign in to comment.