',{
- 'class': 'portlet-content',
- 'id': child.attrs.name+'-portlet-content'
- })
- )
- )
}
-
+
$( ".column" ).sortable({
connectWith: ".column"
});
@@ -83,14 +61,14 @@ openerp.base.form.Dashbar = openerp.base.form.Widget.extend({
.addClass( "ui-widget-header ui-corner-all" )
.end()
.find( ".portlet-content" );
-
+
$( ".portlet-header .ui-icon" ).click(function() {
$( this ).toggleClass( "ui-icon-minusthick" ).toggleClass( "ui-icon-plusthick" );
$( this ).parents( ".portlet:first" ).find( ".portlet-content" ).toggle();
});
$( ".column" ).disableSelection();
- },
+ }
})
openerp.base.form.Action = openerp.base.form.Widget.extend({
@@ -113,7 +91,7 @@ openerp.base.form.Action = openerp.base.form.Widget.extend({
views_switcher : false
}
var node_attrs = this.node.attrs;
- var content_id = jQuery('#'+node_attrs.name).find('.portlet-content').attr('id')
+ var content_id = 'portlet-content-'+node_attrs.name;
var action_manager = new openerp.base.ActionManager(this.session, content_id);
action_manager.start();
action_manager.do_action(action);
diff --git a/addons/base_dashboard/static/src/xml/base_dashboard.xml b/addons/base_dashboard/static/src/xml/base_dashboard.xml
index c019ee307b1..5d5b957e2ba 100644
--- a/addons/base_dashboard/static/src/xml/base_dashboard.xml
+++ b/addons/base_dashboard/static/src/xml/base_dashboard.xml
@@ -1,15 +1,17 @@
-
+
+
+
\ No newline at end of file