mirror of
https://github.com/unraid/webgui.git
synced 2026-05-01 07:19:32 -05:00
System update
Make SelectCase using nchan
This commit is contained in:
@@ -283,7 +283,7 @@ function openPlugin(cmd,title,plg,func) {
|
||||
});
|
||||
}
|
||||
function startStopNchan(cmd, name='changes') {
|
||||
const channel = {nchan_changes,nchan_phistory,nchan_feedback,nchan_sysinfo};
|
||||
const channel = {nchan_changes,nchan_phistory,nchan_feedback,nchan_sysinfo,nchan_selectcase};
|
||||
switch (cmd) {
|
||||
case 'start':
|
||||
channel['nchan_'+name].start();
|
||||
@@ -807,6 +807,11 @@ nchan_sysinfo.on('message', function(data) {
|
||||
$('pre#body').html(data);
|
||||
});
|
||||
|
||||
var nchan_selectcase = new NchanSubscriber('/sub/selectcase',{subscriber:'websocket'});
|
||||
nchan_selectcase.on('message', function(data) {
|
||||
$('pre#body').html(data);
|
||||
});
|
||||
|
||||
var backtotopoffset = 250;
|
||||
var backtotopduration = 500;
|
||||
$(window).scroll(function() {
|
||||
|
||||
Reference in New Issue
Block a user