[IMP] Improved code according to the changes of bootstrap3 in web.
bzr revid: psa@tinyerp.com-20131113105053-80qelj2buiehd6fl
This commit is contained in:
@@ -83,7 +83,7 @@
|
||||
});
|
||||
},
|
||||
calc_box: function() {
|
||||
var $topbar = instance.client.$(".oe_topbar");
|
||||
var $topbar = instance.client.$(".navbar");
|
||||
var top = $topbar.offset().top + $topbar.height();
|
||||
top = Math.max(top - $(window).scrollTop(), 0);
|
||||
this.$el.css("top", top);
|
||||
|
||||
@@ -71,7 +71,7 @@ openerp.portal_anonymous = function(instance) {
|
||||
this.$el.find('a.login').click(function() {
|
||||
var p = self.getParent();
|
||||
var am = p.action_manager;
|
||||
p.$el.find('.oe_leftbar, .oe_topbar').hide();
|
||||
p.$el.find('.oe_leftbar, .navbar').hide();
|
||||
self.session.session_logout().done(function () {
|
||||
am.do_action({
|
||||
type:'ir.actions.client',
|
||||
|
||||
Reference in New Issue
Block a user