Save and close vs. Save.
parent
b555a28c01
commit
6674481907
|
@ -1022,11 +1022,11 @@ body.editing header.fixed-save div.inner {
|
||||||
padding-top: 6px;
|
padding-top: 6px;
|
||||||
width: 940px;
|
width: 940px;
|
||||||
}
|
}
|
||||||
body.editing header.fixed-save div.inner .cancel, body.editing header.fixed-save div.inner .save {
|
body.editing header.fixed-save div.inner .cancel, body.editing header.fixed-save div.inner .save, body.editing header.fixed-save div.inner .save-and-close {
|
||||||
float: right;
|
float: right;
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
body.editing header.fixed-save div.inner .save {
|
body.editing header.fixed-save div.inner .save-and-close {
|
||||||
margin-right: 242px;
|
margin-right: 242px;
|
||||||
}
|
}
|
||||||
body.editing section.main div.inner section.snipts article.editing {
|
body.editing section.main div.inner section.snipts article.editing {
|
||||||
|
|
|
@ -1151,11 +1151,11 @@ body.editing {
|
||||||
padding-top: 6px;
|
padding-top: 6px;
|
||||||
width: 940px;
|
width: 940px;
|
||||||
|
|
||||||
.cancel, .save {
|
.cancel, .save, .save-and-close {
|
||||||
float: right;
|
float: right;
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
.save {
|
.save-and-close {
|
||||||
margin-right: 242px;
|
margin-right: 242px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -135,6 +135,11 @@
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
$('button.save', window.site.$main_edit).on('click', function() {
|
$('button.save', window.site.$main_edit).on('click', function() {
|
||||||
|
$('button.cancel').text('Close');
|
||||||
|
that.save();
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
$('button.save-and-close', window.site.$main_edit).on('click', function() {
|
||||||
that.save();
|
that.save();
|
||||||
window.site.snipt_list.escapeUI();
|
window.site.snipt_list.escapeUI();
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
<% if (snipt.id) { %>
|
<% if (snipt.id) { %>
|
||||||
<button class="delete btn btn-secondary">Delete</button>
|
<button class="delete btn btn-secondary">Delete</button>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
<button class="save-and-close btn btn-success">Save and Close</button>
|
||||||
<button class="save btn btn-success">Save</button>
|
<button class="save btn btn-success">Save</button>
|
||||||
<button class="cancel btn btn-secondary">Cancel</button>
|
<button class="cancel btn btn-secondary">Cancel</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue