diff options
| author | Fabien Meghazi <fme@openerp.com> | 2012-06-21 11:55:23 +0200 |
|---|---|---|
| committer | Fabien Meghazi <fme@openerp.com> | 2012-06-21 11:55:23 +0200 |
| commit | c7ea0c3761e6a4be80209f4f1b0b8798cf4bded6 (patch) | |
| tree | a73082789d3bd95d21c615dd6760d9acc15aecb9 /addons/web_dashboard/static/src | |
| parent | 383403f26128ecb4c9fdd0351665d3a2b8d096b7 (diff) | |
[IMP] Code styling
bzr revid: fme@openerp.com-20120621095523-tfc8r2pan80f9a3i
Diffstat (limited to 'addons/web_dashboard/static/src')
| -rw-r--r-- | addons/web_dashboard/static/src/js/dashboard.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/addons/web_dashboard/static/src/js/dashboard.js b/addons/web_dashboard/static/src/js/dashboard.js index a27c5f30bb5..e08113d02ab 100644 --- a/addons/web_dashboard/static/src/js/dashboard.js +++ b/addons/web_dashboard/static/src/js/dashboard.js @@ -231,14 +231,14 @@ instance.web.form.DashBoard = instance.web.form.FormWidget.extend({ } }, renderElement: function() { - var self = this; var check = _.detect(this.node.children, function(column, column_index) { return _.detect(column.children,function(element){ return element.tag === "action"? element: false; }); }); - if (!check) - return self.no_result(); + if (!check) { + return this.no_result(); + } // We should start with three columns available for (var i = this.node.children.length; i < 3; i++) { this.node.children.push({ @@ -250,8 +250,8 @@ instance.web.form.DashBoard = instance.web.form.FormWidget.extend({ var rendered = QWeb.render(this.form_template, this); this.$element.html(rendered); }, - no_result: function () { - if (this.view.options.action.help){ + no_result: function() { + if (this.view.options.action.help) { this.$element.append( $('<div class="oe_view_nocontent">') .append($('<img>', { src: '/web_dashboard/static/src/img/view_todo_arrow.png' })) |
