This commit is contained in:
Henrique Dias
2015-09-25 21:06:29 +01:00
parent d140ffe6a0
commit d569e67642
6 changed files with 69 additions and 8 deletions

View File

@@ -115,10 +115,15 @@ $(document).on('ready pjax:success', function() {
encode: true,
}).done(function(data) {
notification({
text: "File created successfully. You will be redirected.",
text: "File created successfully.",
type: 'success',
timeout: 5000
});
$.pjax({
url: "/admin/edit/" + filename,
container: '#content'
})
}).fail(function(data) {
// error types
notification({
@@ -224,6 +229,7 @@ $(document).on('ready pjax:success', function() {
data: data,
headers: {
'X-Regenerate': button.data("regenerate"),
'X-Schedule': button.data("schedule"),
'X-Content-Type': button.data("type")
},
dataType: 'json',

View File

@@ -61,8 +61,8 @@
margin-right: auto;
}
.toolbar *:last-child {
margin-left: 1em;
.toolbar input {
margin-left: 1em !important;
}
/* EDITOR FRONTMATTER ONLY STYLES */