mirror of
https://github.com/unraid/webgui.git
synced 2026-03-06 00:18:57 -06:00
Tabs to spaces
This commit is contained in:
@@ -231,11 +231,11 @@ function addBannerWarning(text,warning=true,noDismiss=false) {
|
||||
if ( ! noDismiss ) {
|
||||
text = text + "<a class='bannerDismiss' onclick='dismissBannerWarning("+arrayEntry+",""+cookieText+"")'></a>";
|
||||
}
|
||||
if ( bannerWarnings.indexOf(text) < 0 ) {
|
||||
var arrayEntry = bannerWarnings.push("placeholder") - 1;
|
||||
bannerWarnings[arrayEntry] = text;
|
||||
}
|
||||
|
||||
if ( bannerWarnings.indexOf(text) < 0 ) {
|
||||
var arrayEntry = bannerWarnings.push("placeholder") - 1;
|
||||
bannerWarnings[arrayEntry] = text;
|
||||
} else return bannerWarnings.indexOf(text);
|
||||
|
||||
if ( ! bannerWarningInterval ) {
|
||||
showBannerWarnings();
|
||||
bannerWarningInterval = setInterval(function() {
|
||||
@@ -298,7 +298,7 @@ function removeRebootNotice(message="You must reboot for changes to take effect"
|
||||
if ( bannerIndex < 0 ) {
|
||||
return;
|
||||
}
|
||||
console.log("banner index: "+bannerIndex);
|
||||
console.log("banner index: "+bannerIndex);
|
||||
removeBannerWarning(bannerIndex);
|
||||
$.post("/plugins/dynamix.plugin.manager/scripts/PluginAPI.php",{action:'removeRebootNotice',message:message});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user