2014-02-21 13:16:08 +00:00
|
|
|
(function() {
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
var website = openerp.website;
|
|
|
|
var _t = openerp._t;
|
|
|
|
|
2014-06-27 09:03:34 +00:00
|
|
|
website.EditorBarContent.include({
|
|
|
|
new_forum: function() {
|
|
|
|
website.prompt({
|
|
|
|
id: "editor_new_forum",
|
|
|
|
window_title: _t("New Forum"),
|
|
|
|
input: "Forum Name",
|
|
|
|
}).then(function (forum_name) {
|
|
|
|
website.form('/forum/new', 'POST', {
|
|
|
|
forum_name: forum_name
|
2014-02-21 13:16:08 +00:00
|
|
|
});
|
2014-06-27 09:03:34 +00:00
|
|
|
});
|
|
|
|
},
|
2014-02-21 13:16:08 +00:00
|
|
|
});
|
|
|
|
})();
|