diff options
| author | Christophe Matthieu <chm@openerp.com> | 2014-02-19 11:55:02 +0100 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2014-02-19 11:55:02 +0100 |
| commit | a09b0db51dcfb80cb28a54eace0c0d90fbf5fc1b (patch) | |
| tree | 4bf3b7ae52c6cf83187deba8ff2e43d9cae37531 /addons/website/static/src/js/website.editor.js | |
| parent | 78c0fcd060a8ffed43cbc7195de25c9d7221ff2d (diff) | |
[FIX] website: Select some text > Click on the link button > Select Page textfield and start typing (e.g. comm) > There is a lot of noise here; Dsiplaying create page for existing page
bzr revid: odo@openerp.com-20140219105502-jg8f2i1gpz5vdarf
Diffstat (limited to 'addons/website/static/src/js/website.editor.js')
| -rw-r--r-- | addons/website/static/src/js/website.editor.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/website/static/src/js/website.editor.js b/addons/website/static/src/js/website.editor.js index 8b27c97acb3..dc82c0c17b9 100644 --- a/addons/website/static/src/js/website.editor.js +++ b/addons/website/static/src/js/website.editor.js @@ -1034,10 +1034,13 @@ }, start: function () { var self = this; + var last; this.$('#link-page').select2({ minimumInputLength: 1, placeholder: _t("New or existing page"), query: function (q) { + if (q.term == last) return; + last = q.term; $.when( self.page_exists(q.term), self.fetch_pages(q.term) |
