mirror of
https://github.com/unraid/webgui.git
synced 2026-05-04 16:59:27 -05:00
New load methods
This commit is contained in:
@@ -45,22 +45,28 @@ table.t1 tr>td+td+td+td+td+td+td+td+td+td+td+td+td{text-align:left;}
|
||||
<script type="text/javascript">
|
||||
|
||||
|
||||
|
||||
|
||||
$(function(){
|
||||
$('#t1').load('/webGui/include/SysDrivers.php',{table:'t1',option:"inuse"}).tablesorter();
|
||||
$('#t1').tablesorter();
|
||||
});
|
||||
|
||||
|
||||
|
||||
function showDrivers(options) {
|
||||
function showDrivers(options, init = false) {
|
||||
option = options ;
|
||||
timers.refresh = setTimeout(function(){$('div.spinner.fixed').show('slow');},500);
|
||||
if (!init) timers.refresh = setTimeout(function(){$('div.spinner.fixed').show('slow');},500);
|
||||
$.post('/webGui/include/SysDrivers.php',{table:'t1',option:option},function(data){
|
||||
clearTimeout(timers.refresh);
|
||||
$('#t1').html(data);
|
||||
|
||||
$('div.spinner.fixed').hide('slow');
|
||||
showDriversupdate(options) ;
|
||||
});
|
||||
}
|
||||
|
||||
function showDriversupdate(options) {
|
||||
option = options ;
|
||||
$.post('/webGui/include/SysDrivers.php',{table:'t1update',option:option},function(data){
|
||||
$('#t1').html(data);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -91,8 +97,10 @@ function textsave(module) {
|
||||
|
||||
|
||||
$('.tabs').append("<span class='status'><span class='lite label'>_(Select View)_:</span><select id='select' onchange='showDrivers(this.value)'><option value='inuse' selected>Inuse Drivers</option><option value='all' >All Drivers</option><option value='confonly'>Modprode Configs Only</option></select>");
|
||||
select = document.getElementById("select").value;
|
||||
showDrivers("inuse",true) ;
|
||||
</script>
|
||||
|
||||
<pre><form id="sysdrivers" class="js-confirm-leave" onsubmit="return false"><table id='t1' class="tablesorter indexer disk_status wide t1 pre" ><tr><td><div class="spinner"></div></td></tr></table></form></pre><br>
|
||||
<pre><form id="sysdrivers" class="js-confirm-leave" onsubmit="return false"><table id='t1' class="tablesorter disk_status wide t1 pre" ><tr><td><div class="spinner"></div></td></tr></table></form></pre><br>
|
||||
<input type="button" value="_(Done)_" onclick="done()">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user