fix issue #169
This commit is contained in:
parent
8e26b922f4
commit
52e78d9b9a
@ -121,7 +121,6 @@ var InlineEditorToolbar = {
|
|||||||
|
|
||||||
_bindEvents: function() {
|
_bindEvents: function() {
|
||||||
var self = this;
|
var self = this;
|
||||||
var fullpath = $('meta[name=page-fullpath]').attr('content');
|
|
||||||
|
|
||||||
this.form.live('submit', function (e) { $(this).callRemote(); e.stopPropagation(); e.preventDefault();
|
this.form.live('submit', function (e) { $(this).callRemote(); e.stopPropagation(); e.preventDefault();
|
||||||
}).bind('ajax:complete', function() { self.resetForm();
|
}).bind('ajax:complete', function() { self.resetForm();
|
||||||
@ -146,7 +145,8 @@ var InlineEditorToolbar = {
|
|||||||
window.location.href = window.location.href; break;
|
window.location.href = window.location.href; break;
|
||||||
|
|
||||||
case 'back': // back to the non edition mode
|
case 'back': // back to the non edition mode
|
||||||
window.location.href = fullpath; break;
|
var url = window.location.href.replace(/\/edit$/, '');
|
||||||
|
window.location.href = url; break;
|
||||||
|
|
||||||
case 'drawer': // expand / shrink toolbar
|
case 'drawer': // expand / shrink toolbar
|
||||||
self.toggle(); break;
|
self.toggle(); break;
|
||||||
|
Loading…
Reference in New Issue
Block a user