summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
authorAntony Lesuisse <al@openerp.com>2012-11-11 17:32:43 +0100
committerAntony Lesuisse <al@openerp.com>2012-11-11 17:32:43 +0100
commit1b80c5bd52e7697845b7b1cf1939b02e44f0b1fe (patch)
tree5108641472fc522ba795be5cd7f16f68ba3f06f0 /addons/web/static/src/js
parentf605e15039ee2190f0afb2396cef4aa18a4e05b8 (diff)
[IMP] monodb helper
bzr revid: al@openerp.com-20121111163243-bhj3jzhuk99sklwo
Diffstat (limited to 'addons/web/static/src/js')
-rw-r--r--addons/web/static/src/js/chrome.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js
index 99c7a73f3bd..69dafa08c02 100644
--- a/addons/web/static/src/js/chrome.js
+++ b/addons/web/static/src/js/chrome.js
@@ -303,7 +303,7 @@ instance.web.DatabaseManager = instance.web.Widget.extend({
$('.oe_secondary_menus_container,.oe_user_menu_placeholder').empty();
var fetch_db = this.rpc("/web/database/get_list", {}).then(
function(result) {
- self.db_list = result.db_list;
+ self.db_list = result;
},
function (_, ev) {
ev.preventDefault();
@@ -548,7 +548,7 @@ instance.web.Login = instance.web.Widget.extend({
return d;
},
on_db_loaded: function (result) {
- this.db_list = result.db_list;
+ this.db_list = result;
this.$("[name=db]").replaceWith(QWeb.render('Login.dblist', { db_list: this.db_list, selected_db: this.selected_db}));
if(this.db_list.length === 0) {
this.do_action("database_manager");