parent
863de00a14
commit
7aa0ef7af5
|
@ -57,7 +57,7 @@ $(function(){
|
||||||
aced.editor.focus();
|
aced.editor.focus();
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#delete-draft-btn").click(function() {
|
$("#delete-page-btn").click(function() {
|
||||||
bootbox.alert("Not Done Yet! Sorry");
|
bootbox.alert("Not Done Yet! Sorry");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -82,9 +82,10 @@ var aced = new Aced({
|
||||||
data: data,
|
data: data,
|
||||||
dataType: 'json'
|
dataType: 'json'
|
||||||
}).always(function(data, status, error) {
|
}).always(function(data, status, error) {
|
||||||
if (data && data['error']) {
|
var res = data['responseJSON'];
|
||||||
|
if (res && res['error']) {
|
||||||
$page_name.addClass('parsley-error');
|
$page_name.addClass('parsley-error');
|
||||||
bootbox.alert("<h3>" + data['message'] + "</h3>");
|
bootbox.alert("<h3>" + res['message'] + "</h3>");
|
||||||
} else {
|
} else {
|
||||||
location.href = path;
|
location.href = path;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
__version__ = '0.4.5'
|
__version__ = '0.4.6'
|
Loading…
Reference in a new issue