Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Force page reload if list columns changed in IE8 (#1487822)

git-svn-id: https://svn.roundcube.net/trunk@6060 208e9e7b-5314-0410-a742-e7e81cd9613c
  • Loading branch information...
commit 55ae47cbb3bc219c5b381b29643d43fbfe644203 1 parent e190d37
thomasb authored
View
1  roundcubemail/CHANGELOG
@@ -1,6 +1,7 @@
CHANGELOG Roundcube Webmail
===========================
+- Force page reload if list columns changed in IE8 (#1487822)
- Allow mass-removal of addresses from a group (#1487748)
- Fix removing all contacts on import to LDAP addressbook
- Fix so "Back" from compose/show doesn't reset search request (#1488238)
View
2  roundcubemail/program/include/rcube_json_output.php
@@ -212,7 +212,7 @@ public function reset()
public function redirect($p = array(), $delay = 1)
{
$location = rcmail::get_instance()->url($p);
- $this->remote_response("window.setTimeout(\"location.href='{$location}'\", $delay);");
+ $this->remote_response(sprintf("window.setTimeout(function(){ %s.redirect('%s',true); }, %d);", JS_OBJECT_NAME, $location, $delay));
exit;
}
View
8 roundcubemail/program/steps/mail/list.inc
@@ -51,9 +51,15 @@ if ($cols = get_input_value('_cols', RCUBE_INPUT_GET))
$save_arr['list_cols'] = explode(',', $cols);
}
-if ($save_arr)
+if ($save_arr) {
$RCMAIL->user->save_prefs($save_arr);
+ // force page reload if list columns changed in IE8 (#1487822)
+ if ($save_arr['list_cols'] && $OUTPUT->browser->ie && $OUTPUT->browser->ver == 8) {
+ $OUTPUT->redirect(array('_mbox' => $RCMAIL->storage->get_folder()), 0);
+ }
+}
+
$mbox_name = $RCMAIL->storage->get_folder();
$threading = (bool) $RCMAIL->storage->get_threading();
Please sign in to comment.
Something went wrong with that request. Please try again.