summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/website.editor.js
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2013-11-25 11:18:19 +0100
committerXavier Morel <xmo@openerp.com>2013-11-25 11:18:19 +0100
commit52b8226a83d87fd23cf4bd6d6d720edf4975014c (patch)
tree4fd71b4e87aeccd43d329c5664ea53405f8f1439 /addons/website/static/src/js/website.editor.js
parent3542a27f9c4c44472184bbedc348ad646d46f20a (diff)
[FIX] on completion error, tell user there are no results
not sure whether and how an error could/should be reported to the user. For now, it's automatically logged into the console. bzr revid: xmo@openerp.com-20131125101819-u2akhr16bd5kcsmf
Diffstat (limited to 'addons/website/static/src/js/website.editor.js')
-rw-r--r--addons/website/static/src/js/website.editor.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/addons/website/static/src/js/website.editor.js b/addons/website/static/src/js/website.editor.js
index cee4409240d..adb60c7f362 100644
--- a/addons/website/static/src/js/website.editor.js
+++ b/addons/website/static/src/js/website.editor.js
@@ -912,6 +912,8 @@
more: false,
results: rs
});
+ }, function () {
+ q.callback({more: false, results: []});
});
},
});
@@ -995,8 +997,8 @@
limit: 9,
context: website.get_context()
},
- }).done(function () {
- // request completed successfully -> unstore it
+ }).always(function () {
+ // request completed -> unstore it
self.req = null;
});
},