summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/website.editor.js
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2015-01-08 14:49:18 +0100
committerChristophe Simonis <chs@odoo.com>2015-01-08 14:49:18 +0100
commitd248ae06698bb8d711dfc83b823c82e5980c2cf1 (patch)
treecdadb23429b1af4f795382adb8e7dcce3bcad047 /addons/website/static/src/js/website.editor.js
parentabcb165d97dc90cbb878dd0f6ad3e35937816c8d (diff)
Revert "[ADD] website_version: website versioning and ab testing"
With more than 100 comments on github[1], this commit is clearly not production-ready. This reverts commit c255b5bc3461c803e38057c72c45530235de84dd, reversing changes made to e5ac65de59f45f2d15ae6f6b840b02cac78afd03. [1] https://github.com/odoo/odoo/commit/c255b5bc3461c803e38057c72c45530235de84dd
Diffstat (limited to 'addons/website/static/src/js/website.editor.js')
-rw-r--r--addons/website/static/src/js/website.editor.js14
1 files changed, 3 insertions, 11 deletions
diff --git a/addons/website/static/src/js/website.editor.js b/addons/website/static/src/js/website.editor.js
index cc80c8e1710..849c31f9dd5 100644
--- a/addons/website/static/src/js/website.editor.js
+++ b/addons/website/static/src/js/website.editor.js
@@ -911,7 +911,7 @@ define(['summernote/summernote'], function () {
rte_changed: function () {
this.$buttons.save.prop('disabled', false);
},
- _save: function () {
+ save: function () {
var self = this;
var saved = {}; // list of allready saved views and data
@@ -979,17 +979,9 @@ define(['summernote/summernote'], function () {
});
});
},
- save: function () {
- return this._save().then(function () {
- website.reload();
- });
- },
/**
* Saves an RTE content, which always corresponds to a view section (?).
*/
- save_without_reload: function () {
- return this._save();
- },
saveElement: function ($el) {
var markup = $el.prop('outerHTML');
return openerp.jsonRpc('/web/dataset/call', 'call', {
@@ -1038,10 +1030,10 @@ define(['summernote/summernote'], function () {
if(this.loaded) {
return;
}
- openerp.jsonRpc('/website/customize_template_get', 'call', { 'key': this.view_name }).then(
+ openerp.jsonRpc('/website/customize_template_get', 'call', { 'xml_id': this.view_name }).then(
function(result) {
_.each(result, function (item) {
- if (item.key === "website.debugger" && !window.location.search.match(/[&?]debug(&|$)/)) return;
+ if (item.xml_id === "website.debugger" && !window.location.search.match(/[&?]debug(&|$)/)) return;
if (item.header) {
self.$menu.append('<li class="dropdown-header">' + item.name + '</li>');
} else {