merge vba branch for title fix
bzr revid: tta@openerp.com-20120709130905-2l6385bqh3jp0yi0
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
.oe_survey_title {
|
||||
font-weight: bold;
|
||||
font-size: 22px;
|
||||
margin: 8px 0px 8px 0px;
|
||||
color: #5B5B5B;
|
||||
}
|
||||
|
||||
.oe_survey_title_height{
|
||||
height: 33px;
|
||||
}
|
||||
|
||||
.oe_survey_title_page {
|
||||
font-size: 14px;
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
openerp.survey = function (instance) {
|
||||
var QWeb = instance.web.qweb,
|
||||
_t = instance.web._t;
|
||||
instance.web.ViewManagerAction = instance.web.ViewManagerAction.extend({
|
||||
init: function(parent, action) {
|
||||
this._super.apply(this,arguments);
|
||||
console.log('hello');
|
||||
},
|
||||
on_mode_switch: function (view_type, no_store, options) {
|
||||
var self = this;
|
||||
return $.when(this._super.apply(this, arguments)).then(function () {
|
||||
var controller = self.views[self.active_view].controller,
|
||||
fvg = controller.fields_view,
|
||||
view_id = (fvg && fvg.view_id) || '--';
|
||||
self.$element.find('.oe_debug_view').html(QWeb.render('ViewManagerDebug', {
|
||||
view: controller,
|
||||
view_manager: self
|
||||
}));
|
||||
if (!self.action.name && fvg) {
|
||||
var title = self.$element.find('.oe_view_title_text');
|
||||
if(!_.isEmpty(title))
|
||||
title = $('.ui-dialog-title');
|
||||
title.text(fvg.arch.attrs.string || fvg.name);
|
||||
}
|
||||
});
|
||||
},
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user