summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVidhin Mehta (OpenERP) <vme@tinyerp.com>2012-09-07 18:41:49 +0530
committerVidhin Mehta (OpenERP) <vme@tinyerp.com>2012-09-07 18:41:49 +0530
commit4fc67d7a5d7d8bbd6180cc717c0f267c5ec0e1c1 (patch)
tree7a479cb360cf9d187d5491826029a9a4ada40ecd
parentcd0be77ffac765ed3160a2a812bef9ca5b91d8a4 (diff)
[IMP]show reset button on debug mode.
bzr revid: vme@tinyerp.com-20120907131149-4z5vjfha0bfi8rb7
-rw-r--r--addons/board/static/src/js/dashboard.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/board/static/src/js/dashboard.js b/addons/board/static/src/js/dashboard.js
index cdb5193c712..8da4f6cf7b5 100644
--- a/addons/board/static/src/js/dashboard.js
+++ b/addons/board/static/src/js/dashboard.js
@@ -17,7 +17,10 @@ instance.web.form.DashBoard = instance.web.form.FormWidget.extend({
start: function() {
var self = this;
this._super.apply(this, arguments);
-
+
+ if(!this.session.debug)
+ this.$el.find(".oe_dashboard_links button:first").css("display", "none");
+
this.$el.find('.oe_dashboard_column').sortable({
connectWith: '.oe_dashboard_column',
handle: '.oe_header',