##// END OF EJS Templates
Add dynamic instructions
Jonathan Frederic -
Show More
@@ -493,6 +493,13 b' define(['
493 493 }
494 494 // Update total counter
495 495 $('#counter-select-all').html(checked===0 ? ' ' : checked);
496
497 // If at aleast on item is selected, hide the selection instructions.
498 if (checked > 0) {
499 $('.dynamic-instructions').hide();
500 } else {
501 $('.dynamic-instructions').show();
502 }
496 503 };
497 504
498 505 NotebookList.prototype.add_link = function (model, item) {
@@ -322,3 +322,8 b' ul#new-menu {'
322 322 .shutdown-button {
323 323 display: none;
324 324 }
325
326 .dynamic-instructions {
327 display: inline-block;
328 padding-top: @dashboard_tb_pad;
329 }
@@ -25,6 +25,9 b' data-terminals-available="{{terminals_available}}"'
25 25 <div id="notebooks" class="tab-pane active">
26 26 <div id="notebook_toolbar" class="row">
27 27 <div class="col-sm-8 no-padding">
28 <div class="dynamic-instructions">
29 Select items to perform actions on them.
30 </div>
28 31 <div class="dynamic-buttons">
29 32 <button title="Duplicate selected" class="duplicate-button btn btn-default btn-xs">Duplicate</button>
30 33 <button title="Rename selected" class="rename-button btn btn-default btn-xs">Rename</button>
General Comments 0
You need to be logged in to leave comments. Login now