summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorFabien Meghazi <fme@openerp.com>2014-02-27 16:49:21 +0100
committerFabien Meghazi <fme@openerp.com>2014-02-27 16:49:21 +0100
commit6aa24d08968f53d3d30816071c6bc43422ea31fa (patch)
treefea84f4d26f1bfe2ceb3217da4c1824185f3dc0c /addons/web/static/src
parent100cc571cd6da60125ba71f531b060ed80cfbb5a (diff)
parentc1d9449a572757d3e316d7e88b7bce6618818074 (diff)
[IMP] Improve login for auth_signup/oauth seperation
bzr revid: fme@openerp.com-20140227154921-2fqr8p8bhczn37xa
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/js/chrome.js20
1 files changed, 1 insertions, 19 deletions
diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js
index 461bfefac1a..9b87d416206 100644
--- a/addons/web/static/src/js/chrome.js
+++ b/addons/web/static/src/js/chrome.js
@@ -513,7 +513,7 @@ instance.web.DatabaseManager = instance.web.Widget.extend({
var fields = $(form).serializeArray();
self.rpc("/web/database/create", {'fields': fields}).done(function(result) {
if (result) {
- instance.web.redirect('/web')
+ instance.web.redirect('/web');
} else {
alert("Failed to create database");
}
@@ -1488,24 +1488,6 @@ instance.web.embed = function (origin, dbname, login, key, action, options) {
client.insertAfter(currentScript);
};
-openerp.web.LoginForm = openerp.web.Widget.extend({
- init: function ($form) {
- this._super(/* no parent */);
- this.setElement($form);
- this.$el.on('submit', this.on_submit);
- this.start();
- },
- start: function () {
- if (location.hash) {
- this.$el.attr('action', this.$el.attr('action') + location.hash);
- }
- return this._super();
- },
- on_submit: function () {
- return true;
- },
-});
-
})();
// vim:et fdc=0 fdl=0 foldnestmax=3 fdm=syntax: