summaryrefslogtreecommitdiff
path: root/addons/web_dashboard/static/src
diff options
context:
space:
mode:
authorJigar Amin - OpenERP <jam@tinyerp.com>2012-06-08 15:50:15 +0530
committerJigar Amin - OpenERP <jam@tinyerp.com>2012-06-08 15:50:15 +0530
commite9ab3b16fa77f5e64acee507fe0f30b991f835cf (patch)
treeb5bbc45c0cd4036014c547b08accabb9d0af7cf5 /addons/web_dashboard/static/src
parent2b2b1ec41b09e573e1cec5476de32ad81a60309b (diff)
[FIX] no image if no help on action
bzr revid: jam@tinyerp.com-20120608102015-jpyv7zji3j0zocrg
Diffstat (limited to 'addons/web_dashboard/static/src')
-rw-r--r--addons/web_dashboard/static/src/js/dashboard.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/addons/web_dashboard/static/src/js/dashboard.js b/addons/web_dashboard/static/src/js/dashboard.js
index 42fde360d72..a27c5f30bb5 100644
--- a/addons/web_dashboard/static/src/js/dashboard.js
+++ b/addons/web_dashboard/static/src/js/dashboard.js
@@ -251,11 +251,13 @@ instance.web.form.DashBoard = instance.web.form.FormWidget.extend({
this.$element.html(rendered);
},
no_result: function () {
- this.$element.prepend(
- $('<div class="oe_view_nocontent">')
- .append($('<img>', { src: '/web_dashboard/static/src/img/view_todo_arrow.png' }))
- .append($('<div>').html(this.view.options.action.help || " "))
- );
+ 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' }))
+ .append($('<div>').html(this.view.options.action.help || " "))
+ );
+ }
},
do_reload: function() {
var view_manager = this.view.getParent(),