diff options
| author | Géry Debongnie <ged@odoo.com> | 2016-02-26 16:32:09 +0100 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2016-03-09 13:01:34 +0100 |
| commit | f970906c9e89da364feaf2654b1a0d242e1bb789 (patch) | |
| tree | 786ea3e4410f13ce2e65a6853a91376a29ede4d7 /addons/web/static/src/js/widgets/debug_manager.js | |
| parent | 3cc96b2a8effac4250c7325dffd6da52042a2316 (diff) | |
[IMP] base,openerp,web: add debug mode === 'assets' and don't split assets by default
This is a rather large change for developers: from this commit on, we
need to use debug=assets instead of just debug to split assets.
The About menu has been slightly improved as well (the link does not
appear when we are already in debug mode), and an option has been added
in the debugging menu to activate the assets debugging mode.
Diffstat (limited to 'addons/web/static/src/js/widgets/debug_manager.js')
| -rw-r--r-- | addons/web/static/src/js/widgets/debug_manager.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/web/static/src/js/widgets/debug_manager.js b/addons/web/static/src/js/widgets/debug_manager.js index 36a3a205632..74a534ec40e 100644 --- a/addons/web/static/src/js/widgets/debug_manager.js +++ b/addons/web/static/src/js/widgets/debug_manager.js @@ -201,6 +201,9 @@ if (core.debug) { this.do_warn("Warning", "No record selected."); } }, + split_assets: function() { + window.location = $.param.querystring(window.location.href, 'debug=assets'); + }, leave_debug: function() { window.location.search="?"; }, |
