resources_selected: remove tfoot, and disable non-implemented buttons
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Sat, 5 Oct 2013 04:03:44 +0000 (06:03 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Sat, 5 Oct 2013 04:03:44 +0000 (06:03 +0200)
plugins/resources_selected/static/js/resources_selected.js
plugins/resources_selected/templates/resources_selected.html

index a784288..669bfca 100644 (file)
@@ -68,6 +68,7 @@
             manifold.raise_event(self.options.query_uuid, RUN_UPDATE);
         },
 
+       // related buttons are also disabled in the html template
         do_refresh: function(e)
         {
             throw 'resource_selected.do_refresh Not implemented';
index 22115d7..01e2a03 100644 (file)
@@ -1,15 +1,16 @@
 <div class='resources-selected-spacer'>
 <table class='display' id='{{domid}}__table'>
   <thead class="resources-selected">
-    <tr> <th>action</th> <th>key</th> <th>value</th> <th>status</th> <!--<th>+/-</th>--> </tr>
+    <tr> <th>action</th> <th>key</th> <th>value</th> <th>status</th> </tr>
   </thead>
   <tbody></tbody>
-  <tfoot class="resources-selected">
-    <tr> <th>action</th> <th>key</th> <th>value</th> <th>status</th> <!--<th>+/-</th>--> </tr>
-  </tfoot>
+<!--<tfoot class="resources-selected">
+<tr> <th>action</th> <th>key</th> <th>value</th> <th>status</th></tr>
+</tfoot>-->
 </table>
 </div>
+<!--not all buttons are expected to work for now, hence the disabled mark-->
 <button type="button" id="{{domid}}__update"  class="btn btn-default">Update</button>
-<button type="button" id="{{domid}}__refresh"  class="btn btn-default">Refresh</button>
-<button type="button" id="{{domid}}__reset"  class="btn btn-default">Reset</button>
-<button type="button" id="{{domid}}__clear_annotations"  class="btn btn-default">Clear Annotations</button>
+<button type="button" id="{{domid}}__refresh"  class="btn btn-default" disabled>Refresh</button>
+<button type="button" id="{{domid}}__reset"  class="btn btn-default" disabled>Reset</button>
+<button type="button" id="{{domid}}__clear_annotations"  class="btn btn-default" disabled>Clear Annotations</button>