mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Added option to cycle fit mode to sidebar
This commit is contained in:
@ -178,6 +178,7 @@ App.Presenters.PostPresenter = function(
|
||||
function attachSidebarEvents() {
|
||||
$el.find('#sidebar .delete').click(deleteButtonClicked);
|
||||
$el.find('#sidebar .feature').click(featureButtonClicked);
|
||||
$el.find('#sidebar .fit-mode').click(fitModeButtonClicked);
|
||||
$el.find('#sidebar .edit').click(editButtonClicked);
|
||||
$el.find('#sidebar .history').click(historyButtonClicked);
|
||||
$el.find('#sidebar .add-favorite').click(addFavoriteButtonClicked);
|
||||
@ -215,6 +216,11 @@ App.Presenters.PostPresenter = function(
|
||||
}
|
||||
}
|
||||
|
||||
function fitModeButtonClicked(e) {
|
||||
e.preventDefault();
|
||||
postContentPresenter.cycleFitMode();
|
||||
}
|
||||
|
||||
function featurePost() {
|
||||
promise.wait(api.post('/posts/' + post.id + '/feature'))
|
||||
.then(function(response) {
|
||||
|
Reference in New Issue
Block a user