]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
webui: add checkbox selector to all idnode grids. Fixes #1473.
authorAdam Sutton <dev@adamsutton.me.uk>
Mon, 30 Dec 2013 22:45:13 +0000 (22:45 +0000)
committerAdam Sutton <dev@adamsutton.me.uk>
Mon, 30 Dec 2013 22:45:13 +0000 (22:45 +0000)
src/webui/static/app/idnode.js

index e169d197690b8f554f6f42e58e4a20c82dedb0b8..f3b1dc4742fe1c1de2cb4dbf6b00c1308880740a 100644 (file)
@@ -611,6 +611,12 @@ tvheadend.idnode_grid = function(panel, conf)
     var delBtn  = null;
     var editBtn = null;
 
+    /* Selection */
+    var select = new Ext.grid.CheckboxSelectionModel({
+      singleSelect    : false
+    });
+    columns.splice(0, 0, select);
+
     /* Model */
     var idnode  = new tvheadend.IdNode(d);
     for (var i = 0; i < idnode.length(); i++) {
@@ -652,11 +658,6 @@ tvheadend.idnode_grid = function(panel, conf)
       columns         : columns
     });
 
-    /* Selection */
-    var select = new Ext.grid.RowSelectionModel({
-      singleSelect    : false
-    });
-
     /* Event handlers */
     store.on('update', function(s, r, o){
       var d = (s.getModifiedRecords().length == 0);