diff --git a/static/js/ui.js b/static/js/ui.js index dad03096a5..dcaf99758e 100644 --- a/static/js/ui.js +++ b/static/js/ui.js @@ -830,6 +830,29 @@ exports.collapse_recipient_group = function (row) { current_msg_list.select_id(message_ids[0]); }; +/* EXPERIMENTS */ + +/* This method allows an advanced user to use the console + * to switch to a different pair of backgrounds for home + * view and narrowed view. It either defaults to a specific + * pair of colors, or allows the user to specify them. + */ +exports.switchBackground = function (homecolor, narrowcolor) { + homecolor = homecolor || "#ffffff"; + narrowcolor = narrowcolor || "#effcff"; + $("#white-background-style").remove(); + $('head').append(''); + return ("Background has been changed"); +}; + +/* END OF EXPERIMENTS */ + $(function () { // NB: This just binds to current elements, and won't bind to elements // created after ready() is called.