[imp] repaired illogic al's code

bzr revid: nicolas.vanhoren@openerp.com-20120217105636-61tk67zbx9calc1b
This commit is contained in:
niv-openerp
2012-02-17 11:56:36 +01:00
parent 0d8b6ef3ce
commit 39d514678c
2 changed files with 3 additions and 3 deletions
+3 -2
View File
@@ -103,7 +103,9 @@ html_template = """<!DOCTYPE html>
<script type="text/javascript">
$(function() {
var s = new openerp.init(%(modules)s);
%(init)s
var wc = new s.web.WebClient();
wc.$element = $(document.body);
wc.start();
});
</script>
</head>
@@ -270,7 +272,6 @@ class WebClient(openerpweb.Controller):
'js': js,
'css': css,
'modules': simplejson.dumps(self.server_wide_modules(req)),
'init': 'new s.web.WebClient().start();',
}
return r
-1
View File
@@ -1075,7 +1075,6 @@ openerp.web.WebClient = openerp.web.OldWidget.extend(/** @lends openerp.web.WebC
},
start: function() {
var self = this;
this.$element = $(document.body);
if (jQuery.param != undefined && jQuery.deparam(jQuery.param.querystring()).kitten != undefined) {
this.$element.addClass("kitten-mode-activated");
this.$element.delegate('img.oe-record-edit-link-img', 'hover', function(e) {