Added prev/next buttons in post upload form

This commit is contained in:
Marcin Kurczewski 2015-05-16 12:31:14 +02:00
parent 740cc85775
commit 627a8db5f3
2 changed files with 10 additions and 2 deletions

View file

@ -64,6 +64,8 @@ App.Presenters.PostUploadPresenter = function(
$el.find('.remove').click(removeButtonClicked); $el.find('.remove').click(removeButtonClicked);
$el.find('.move-up').click(moveUpButtonClicked); $el.find('.move-up').click(moveUpButtonClicked);
$el.find('.move-down').click(moveDownButtonClicked); $el.find('.move-down').click(moveDownButtonClicked);
$el.find('.previous').click(selectPrevPostTableRow);
$el.find('.next').click(selectNextPostTableRow);
$el.find('.upload').click(uploadButtonClicked); $el.find('.upload').click(uploadButtonClicked);
$el.find('.stop').click(stopButtonClicked); $el.find('.stop').click(stopButtonClicked);
} }

View file

@ -52,10 +52,16 @@
<button class="post-table-op remove"><i class="fa fa-remove"></i> Remove</button> <button class="post-table-op remove"><i class="fa fa-remove"></i> Remove</button>
</li><!-- </li><!--
--><li> --><li>
<button class="post-table-op move-up"><i class="fa fa-chevron-up"></i> Move up</button> <button class="post-table-op previous"><i class="fa fa-chevron-up"></i> Previous</button>
</li><!-- </li><!--
--><li> --><li>
<button class="post-table-op move-down"><i class="fa fa-chevron-down"></i> Move down</button> <button class="post-table-op next"><i class="fa fa-chevron-down"></i> Next</button>
</li><!--
--><li>
<button class="post-table-op move-up"><i class="fa fa-arrow-up"></i> Move up</button>
</li><!--
--><li>
<button class="post-table-op move-down"><i class="fa fa-arrow-down"></i> Move down</button>
</li><!-- </li><!--
--><li> --><li>
<button class="upload highlight" type="submit"><i class="fa fa-upload"></i> Submit</button> <button class="upload highlight" type="submit"><i class="fa fa-upload"></i> Submit</button>