[IMP] Simplify js_link2post event
bzr revid: fme@openerp.com-20131119110612-uc4j1l6xexrt9fyt
This commit is contained in:
@@ -14,12 +14,7 @@
|
||||
|
||||
$(document).on('click', 'a.js_link2post', function (ev) {
|
||||
ev.preventDefault();
|
||||
var form = document.createElement('form');
|
||||
form.action = this.pathname; // restrict to same origin
|
||||
form.method = 'POST';
|
||||
// TODO: support this.search as form input fields
|
||||
$(this).append(form);
|
||||
form.submit();
|
||||
website.form(this.pathname, 'POST');
|
||||
});
|
||||
|
||||
$(document).on('hide.bs.dropdown', '.dropdown', function (ev) {
|
||||
|
||||
Reference in New Issue
Block a user