diff options
| author | Niko <nwi@openerp.com> | 2012-12-20 11:03:14 +0100 |
|---|---|---|
| committer | Niko <nwi@openerp.com> | 2012-12-20 11:03:14 +0100 |
| commit | fb07bf7234eeafffd6a7e9c85d48c6ed0ebf1887 (patch) | |
| tree | ab720b42e26fd1aad6223433c6ed888f43f79f88 /addons/web/static/src/js/coresetup.js | |
| parent | 988b89a02ce7cdd129a5e7ee05e2be18dd6347c9 (diff) | |
| parent | 2315050bab19cd1ec7e087a6751c3ca96d6c34e6 (diff) | |
[MERGE] merge with trunk
bzr revid: nwi@openerp.com-20121220100314-98ka2wahul3lbu57
Diffstat (limited to 'addons/web/static/src/js/coresetup.js')
| -rw-r--r-- | addons/web/static/src/js/coresetup.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/addons/web/static/src/js/coresetup.js b/addons/web/static/src/js/coresetup.js index c88e0ca0512..a8b0510389b 100644 --- a/addons/web/static/src/js/coresetup.js +++ b/addons/web/static/src/js/coresetup.js @@ -30,6 +30,12 @@ instance.web.Session = instance.web.JsonRPC.extend( /** @lends instance.web.Sess * Setup a sessionm */ session_bind: function(origin) { + if (!_.isUndefined(this.origin)) { + if (this.origin === origin) { + return $.when(); + } + throw new Error('Session already bound to ' + this.origin); + } var self = this; this.setup(origin); instance.web.qweb.default_dict['_s'] = this.origin; @@ -471,6 +477,11 @@ $.fn.openerpClass = function(additionalClass) { $(this).addClass('openerp ' + additionalClass); }); }; +$.fn.openerpBounce = function() { + return this.each(function() { + $(this).css('box-sizing', 'content-box').effect('bounce', {distance: 18, times: 5}, 250); + }); +}; /** Jquery extentions */ $.Mutex = (function() { |
