[IMP] Improved dashboard action titles

bzr revid: fme@openerp.com-20111010142806-63dtrwjb22uppo4z
This commit is contained in:
Fabien Meghazi 2011-10-10 16:28:06 +02:00
parent 0c9e9a7643
commit 153f5f5890
3 changed files with 3 additions and 8 deletions

View File

@ -234,6 +234,3 @@
.openerp .oe-dashboard-action .view-manager-main-content {
padding: 2px;
}
.openerp .oe-dashboard-action-header .ui-icon, .openerp .oe-dashboard-action-header .oe-dashboard-action-rename {
display: none;
}

View File

@ -43,9 +43,6 @@ openerp.web.form.DashBoard = openerp.web.form.Widget.extend({
});
//this.$element.find('a.oe-dashboard-action-rename').live('click', this.on_rename);
this.$element.find('.oe-dashboard-action').live('mouseover mouseout', function(event) {
$(this).find('.oe-dashboard-action-header .ui-icon, .oe-dashboard-action-header .oe-dashboard-action-rename').toggle(event.type == 'mouseover');
});
},
on_undo: function() {
this.rpc('/web/view/undo_custom', {
@ -224,7 +221,8 @@ openerp.web.form.DashBoard = openerp.web.form.Widget.extend({
views_switcher : false,
action_buttons : false,
pager: false,
low_profile: true
low_profile: true,
display_title: false
};
var view_manager = new openerp.web.ViewManagerAction(this, action);
view_manager.appendTo($("#"+this.view.element_id + '_action_' + action.id));

View File

@ -32,7 +32,7 @@
<div t-att-data-id="action.attrs.name" class="oe-dashboard-action">
<h2 class="oe-dashboard-action-header oe_view_title">
<input class="oe-dashboard-action-input" type="text" name="title" value="" style="display: none"/>
ActionTitle
<t t-esc="action.attrs.string"/>
<span class='ui-icon ui-icon-closethick'></span>
<span class='ui-icon ui-icon-minusthick oe-dashboard-fold' t-if="!action.attrs.fold"></span>
<span class='ui-icon ui-icon-plusthick oe-dashboard-fold' t-if="action.attrs.fold"></span>