diff options
| author | Christophe Simonis <chs@openerp.com> | 2014-03-13 16:35:35 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@openerp.com> | 2014-03-13 16:35:35 +0100 |
| commit | b43ffa52c2b84a0d6f52ead7e172f60753ea9da1 (patch) | |
| tree | 6c218451129eb31722cc8f7b9bd96aa24644d579 /addons/pad/static/src/js | |
| parent | fc1607071a3cc0fa899763bfb0caa1f500504aeb (diff) | |
[FIX] pad: use server to get pad content
bzr revid: chs@openerp.com-20140313153535-ogyip9tfm2hkwn1f
Diffstat (limited to 'addons/pad/static/src/js')
| -rw-r--r-- | addons/pad/static/src/js/pad.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/addons/pad/static/src/js/pad.js b/addons/pad/static/src/js/pad.js index 97f87196cb9..31ba8c42330 100644 --- a/addons/pad/static/src/js/pad.js +++ b/addons/pad/static/src/js/pad.js @@ -50,9 +50,7 @@ openerp.pad = function(instance) { this._dirty_flag = true; } else { this.content = '<div class="oe_pad_loading">... Loading pad ...</div>'; - this.pad_loading_request = $.get(value + '/export/html').done(function(data) { - groups = /\<\s*body\s*\>(.*?)\<\s*\/body\s*\>/.exec(data); - data = (groups || []).length >= 2 ? groups[1] : ''; + this.pad_loading_request = self.view.dataset.call('pad_get_content', {url: value}).done(function(data) { self.$('.oe_pad_content').html('<div class="oe_pad_readonly"><div>'); self.$('.oe_pad_readonly').html(data); }).fail(function() { |
