DmitrMakeev commited on
Commit
50bde4b
·
verified ·
1 Parent(s): 3d86189

Update bas_vk_tab.html

Browse files
Files changed (1) hide show
  1. bas_vk_tab.html +1 -25
bas_vk_tab.html CHANGED
@@ -327,7 +327,7 @@ button:hover, #filter-clear:hover, #download-json:hover, #take-for-yourself:hove
327
  }
328
  return `<div style="width: 20px; height: 20px; background-color: ${color}; border-radius: 50%;"></div>`;
329
  }},
330
- {title:"Driver", field:"driver", hozAlign:"center", editor:checkboxEditor, formatter:"tickCross"},
331
  {title:"Канал трафика", field:"pr4", width:95},
332
  {title:"Дата", field:"pr5", width:95},
333
  {title:"Ключ PR", field:"key_pr", width:95},
@@ -341,30 +341,6 @@ button:hover, #filter-clear:hover, #download-json:hover, #take-for-yourself:hove
341
  });
342
 
343
 
344
- var checkboxEditor = function(cell, onRendered, success, cancel){
345
- //create and style input
346
- var input = document.createElement("input");
347
- input.setAttribute("type", "checkbox");
348
-
349
- // Set the checkbox state based on the cell value
350
- input.checked = cell.getValue() === true || cell.getValue() === "true";
351
-
352
- onRendered(function(){
353
- input.focus();
354
- });
355
-
356
- function onChange(){
357
- success(input.checked);
358
- }
359
-
360
- //submit new value on change
361
- input.addEventListener("change", onChange);
362
-
363
- return input;
364
- };
365
-
366
-
367
-
368
 
369
 
370
  // Download XLSX functionality
 
327
  }
328
  return `<div style="width: 20px; height: 20px; background-color: ${color}; border-radius: 50%;"></div>`;
329
  }},
330
+ {title:"Driver", field:"car", hozAlign:"center", editor:true, formatter:"tickCross"},
331
  {title:"Канал трафика", field:"pr4", width:95},
332
  {title:"Дата", field:"pr5", width:95},
333
  {title:"Ключ PR", field:"key_pr", width:95},
 
341
  });
342
 
343
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
344
 
345
 
346
  // Download XLSX functionality