Show More
@@ -499,12 +499,17 b' define([' | |||
|
499 | 499 | if (selected_nums[i] === 0) { |
|
500 | 500 | $('#'+checkbox_ids[i])[0].indeterminate = false; |
|
501 | 501 | $('#'+checkbox_ids[i]).prop('checked', false); |
|
502 | } else if (selected_nums[i] === total_nums[i]) { | |
|
503 | $('#'+checkbox_ids[i])[0].indeterminate = false; | |
|
504 | $('#'+checkbox_ids[i]).prop('checked', true); | |
|
502 | $('#badge-'+checkbox_ids[i]).text(''); | |
|
505 | 503 | } else { |
|
506 | $('#'+checkbox_ids[i]).prop('checked', false); | |
|
507 |
$('#'+checkbox_ids[i])[ |
|
|
504 | // Update badge | |
|
505 | $('#badge-'+checkbox_ids[i]).text(selected_nums[i]); | |
|
506 | if (selected_nums[i] === total_nums[i]) { | |
|
507 | $('#'+checkbox_ids[i])[0].indeterminate = false; | |
|
508 | $('#'+checkbox_ids[i]).prop('checked', true); | |
|
509 | } else { | |
|
510 | $('#'+checkbox_ids[i]).prop('checked', false); | |
|
511 | $('#'+checkbox_ids[i])[0].indeterminate = true; | |
|
512 | } | |
|
508 | 513 | } |
|
509 | 514 | } |
|
510 | 515 | }; |
@@ -88,6 +88,7 b' data-terminals-available="{{terminals_available}}"' | |||
|
88 | 88 | <label for="select-folders"> |
|
89 | 89 | <i class="item_icon folder_icon icon-fixed-width"></i> |
|
90 | 90 | Folders |
|
91 | <span class="badge" id="badge-select-folders"></span> | |
|
91 | 92 | </label> |
|
92 | 93 | </li> |
|
93 | 94 | <li role="presentation"> |
@@ -95,6 +96,7 b' data-terminals-available="{{terminals_available}}"' | |||
|
95 | 96 | <label for="select-notebooks"> |
|
96 | 97 | <i class="item_icon notebook_icon icon-fixed-width"></i> |
|
97 | 98 | All Notebooks |
|
99 | <span class="badge" id="badge-select-notebooks"></span> | |
|
98 | 100 | </label> |
|
99 | 101 | </li> |
|
100 | 102 | <li role="presentation"> |
@@ -102,6 +104,7 b' data-terminals-available="{{terminals_available}}"' | |||
|
102 | 104 | <label for="select-running-notebooks"> |
|
103 | 105 | <i class="item_icon running_notebook_icon icon-fixed-width"></i> |
|
104 | 106 | Running |
|
107 | <span class="badge" id="badge-select-running-notebooks"></span> | |
|
105 | 108 | </label> |
|
106 | 109 | </li> |
|
107 | 110 | <li role="presentation"> |
@@ -109,6 +112,7 b' data-terminals-available="{{terminals_available}}"' | |||
|
109 | 112 | <label for="select-files"> |
|
110 | 113 | <i class="item_icon file_icon icon-fixed-width"></i> |
|
111 | 114 | Files |
|
115 | <span class="badge" id="badge-select-files"></span> | |
|
112 | 116 | </label> |
|
113 | 117 | </li> |
|
114 | 118 | </ul> |
General Comments 0
You need to be logged in to leave comments.
Login now