[REM] Remove LoginForm javascript

bzr revid: fme@openerp.com-20140205091749-39333kr3hz0dt4wg
This commit is contained in:
Fabien Meghazi
2014-02-05 10:17:49 +01:00
parent 6400ffb5e5
commit 42952bb7cf
3 changed files with 10 additions and 36 deletions
+1 -19
View File
@@ -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");
}
@@ -1483,24 +1483,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: