Added option to switch off auto refresh

This commit is contained in:
trashbo4t 2018-05-20 08:27:22 -04:00
parent 4d9d24b8b1
commit 98c00b5edb
17 changed files with 1413 additions and 658 deletions

View File

@ -447,6 +447,53 @@ td {
.table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th {
padding: 8px;
line-height: 1.42857143;
vertical-align: top;
vertical-align: middle;
border-top: 1px solid lime;
}
.switch {
position: relative;
display: inline-block;
width: 46px;
height: 20px;
}
.switch input {display:none;}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: .4s;
transition: .4s;
}
.slider:before {
position: absolute;
content: "";
height: 12px;
width: 12px;
left: 4px;
bottom: 4px;
background-color: white;
-webkit-transition: .4s;
transition: .4s;
}
input:checked + .slider {
background-color: #2196F3;
}
input:focus + .slider {
box-shadow: 0 0 1px #2196F3;
}
input:checked + .slider:before {
-webkit-transform: translateX(26px);
-ms-transform: translateX(26px);
transform: translateX(26px);
}
/* Rounded sliders */
.slider.round {
border-radius: 34px;
}
.slider.round:before {
border-radius: 50%;
}

View File

@ -200,4 +200,51 @@ body {
padding-top: 3px;
padding-left: 5px;
float: right;
}
.switch {
position: relative;
display: inline-block;
width: 46px;
height: 20px;
}
.switch input {display:none;}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: .4s;
transition: .4s;
}
.slider:before {
position: absolute;
content: "";
height: 12px;
width: 12px;
left: 4px;
bottom: 4px;
background-color: white;
-webkit-transition: .4s;
transition: .4s;
}
input:checked + .slider {
background-color: #2196F3;
}
input:focus + .slider {
box-shadow: 0 0 1px #2196F3;
}
input:checked + .slider:before {
-webkit-transform: translateX(26px);
-ms-transform: translateX(26px);
transform: translateX(26px);
}
/* Rounded sliders */
.slider.round {
border-radius: 34px;
}
.slider.round:before {
border-radius: 50%;
}

View File

@ -475,4 +475,52 @@ td {
outline: 0;
-webkit-box-shadow: 0 3px 9px rgba(0,0,0,.5);
box-shadow: 0 3px 9px rgba(0,0,0,.5);
}
.switch {
position: relative;
display: inline-block;
width: 46px;
height: 20px;
}
.switch input {display:none;}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: .4s;
transition: .4s;
}
.slider:before {
position: absolute;
content: "";
height: 12px;
width: 12px;
left: 4px;
bottom: 4px;
background-color: white;
-webkit-transition: .4s;
transition: .4s;
}
input:checked + .slider {
background-color: #ff0066;
}
input:focus + .slider {
box-shadow: 0 0 1px #ff0066;
}
input:checked + .slider:before {
-webkit-transform: translateX(26px);
-ms-transform: translateX(26px);
transform: translateX(26px);
}
/* Rounded sliders */
.slider.round {
border-radius: 34px;
}
.slider.round:before {
border-radius: 50%;
}

View File

@ -454,18 +454,17 @@ td {
color: black;
}
.table>thead>tr>th {
vertical-align: bottom;
vertical-align: middle;
border-bottom: 2px solid #0066ff;
}
.table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th {
padding: 8px;
line-height: 1.42857143;
vertical-align: top;
vertical-align: middle;
border-top: 1px solid #0066ff;
}
.modal-content {
position: relative;
background-color: black;
-webkit-background-clip: padding-box;
background-clip: padding-box;
@ -473,6 +472,51 @@ td {
border: 1px solid rgba(0,0,0,.2);
border-radius: 6px;
outline: 0;
-webkit-box-shadow: 0 3px 9px rgba(0,0,0,.5);
box-shadow: 0 3px 9px rgba(0,0,0,.5);
}
.switch {
position: relative;
display: inline-block;
width: 46px;
height: 20px;
}
.switch input {display:none;}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: .4s;
transition: .4s;
}
.slider:before {
position: absolute;
content: "";
height: 12px;
width: 12px;
left: 4px;
bottom: 4px;
background-color: white;
-webkit-transition: .4s;
transition: .4s;
}
input:checked + .slider {
background-color: #0066ff;
}
input:focus + .slider {
box-shadow: 0 0 1px #0066ff;
}
input:checked + .slider:before {
-webkit-transform: translateX(26px);
-ms-transform: translateX(26px);
transform: translateX(26px);
}
/* Rounded sliders */
.slider.round {
border-radius: 34px;
}
.slider.round:before {
border-radius: 50%;
}

View File

@ -449,4 +449,51 @@ td {
line-height: 1.42857143;
vertical-align: top;
border-top: 1px solid red;
}
.switch {
position: relative;
display: inline-block;
width: 46px;
height: 20px;
}
.switch input {display:none;}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: .4s;
transition: .4s;
}
.slider:before {
position: absolute;
content: "";
height: 12px;
width: 12px;
left: 4px;
bottom: 4px;
background-color: white;
-webkit-transition: .4s;
transition: .4s;
}
input:checked + .slider {
background-color: red;
}
input:focus + .slider {
box-shadow: 0 0 1px red;
}
input:checked + .slider:before {
-webkit-transform: translateX(26px);
-ms-transform: translateX(26px);
transform: translateX(26px);
}
/* Rounded sliders */
.slider.round {
border-radius: 34px;
}
.slider.round:before {
border-radius: 50%;
}

View File

@ -475,4 +475,51 @@ td {
outline: 0;
-webkit-box-shadow: 0 3px 9px rgba(0,0,0,.5);
box-shadow: 0 3px 9px rgba(0,0,0,.5);
}
.switch {
position: relative;
display: inline-block;
width: 46px;
height: 20px;
}
.switch input {display:none;}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: .4s;
transition: .4s;
}
.slider:before {
position: absolute;
content: "";
height: 12px;
width: 12px;
left: 4px;
bottom: 4px;
background-color: white;
-webkit-transition: .4s;
transition: .4s;
}
input:checked + .slider {
background-color: #991f00;
}
input:focus + .slider {
box-shadow: 0 0 1px #991f00;
}
input:checked + .slider:before {
-webkit-transform: translateX(26px);
-ms-transform: translateX(26px);
transform: translateX(26px);
}
/* Rounded sliders */
.slider.round {
border-radius: 34px;
}
.slider.round:before {
border-radius: 50%;
}

View File

@ -475,4 +475,51 @@ td {
outline: 0;
-webkit-box-shadow: 0 3px 9px rgba(0,0,0,.5);
box-shadow: 0 3px 9px rgba(0,0,0,.5);
}
.switch {
position: relative;
display: inline-block;
width: 46px;
height: 20px;
}
.switch input {display:none;}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: .4s;
transition: .4s;
}
.slider:before {
position: absolute;
content: "";
height: 12px;
width: 12px;
left: 4px;
bottom: 4px;
background-color: white;
-webkit-transition: .4s;
transition: .4s;
}
input:checked + .slider {
background-color: black;
}
input:focus + .slider {
box-shadow: 0 0 1px black;
}
input:checked + .slider:before {
-webkit-transform: translateX(26px);
-ms-transform: translateX(26px);
transform: translateX(26px);
}
/* Rounded sliders */
.slider.round {
border-radius: 34px;
}
.slider.round:before {
border-radius: 50%;
}

View File

@ -526,4 +526,51 @@ tr:hover td {
.btn-switch--on {
background-color: #ccffff;
border: 2px solid #ccffff;
}
.switch {
position: relative;
display: inline-block;
width: 46px;
height: 20px;
}
.switch input {display:none;}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: gray;
-webkit-transition: .4s;
transition: .4s;
}
.slider:before {
position: absolute;
content: "";
height: 12px;
width: 12px;
left: 4px;
bottom: 4px;
background-color: black;
-webkit-transition: .4s;
transition: .4s;
}
input:checked + .slider {
background-color: whitesmoke;
}
input:focus + .slider {
box-shadow: 0 0 1px whitesmoke;
}
input:checked + .slider:before {
-webkit-transform: translateX(26px);
-ms-transform: translateX(26px);
transform: translateX(26px);
}
/* Rounded sliders */
.slider.round {
border-radius: 34px;
}
.slider.round:before {
border-radius: 50%;
}

View File

@ -200,4 +200,51 @@ body {
padding-top: 3px;
padding-left: 5px;
float: right;
}
.switch {
position: relative;
display: inline-block;
width: 46px;
height: 20px;
}
.switch input {display:none;}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: .4s;
transition: .4s;
}
.slider:before {
position: absolute;
content: "";
height: 12px;
width: 12px;
left: 4px;
bottom: 4px;
background-color: white;
-webkit-transition: .4s;
transition: .4s;
}
input:checked + .slider {
background-color: #2196F3;
}
input:focus + .slider {
box-shadow: 0 0 1px #2196F3;
}
input:checked + .slider:before {
-webkit-transform: translateX(26px);
-ms-transform: translateX(26px);
transform: translateX(26px);
}
/* Rounded sliders */
.slider.round {
border-radius: 34px;
}
.slider.round:before {
border-radius: 50%;
}

View File

@ -475,4 +475,51 @@ td {
outline: 0;
-webkit-box-shadow: 0 3px 9px rgba(0,0,0,.5);
box-shadow: 0 3px 9px rgba(0,0,0,.5);
}
.switch {
position: relative;
display: inline-block;
width: 46px;
height: 20px;
}
.switch input {display:none;}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: darkgray;
-webkit-transition: .4s;
transition: .4s;
}
.slider:before {
position: absolute;
content: "";
height: 12px;
width: 12px;
left: 4px;
bottom: 4px;
background-color: black;
-webkit-transition: .4s;
transition: .4s;
}
input:checked + .slider {
background-color: red;
}
input:focus + .slider {
box-shadow: 0 0 1px red;
}
input:checked + .slider:before {
-webkit-transform: translateX(26px);
-ms-transform: translateX(26px);
transform: translateX(26px);
}
/* Rounded sliders */
.slider.round {
border-radius: 34px;
}
.slider.round:before {
border-radius: 50%;
}

View File

@ -461,4 +461,51 @@ td {
outline: 0;
-webkit-box-shadow: 0 3px 9px rgba(0,0,0,.5);
box-shadow: 0 3px 9px rgba(0,0,0,.5);
}
.switch {
position: relative;
display: inline-block;
width: 46px;
height: 20px;
}
.switch input {display:none;}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: .4s;
transition: .4s;
}
.slider:before {
position: absolute;
content: "";
height: 12px;
width: 12px;
left: 4px;
bottom: 4px;
background-color: white;
-webkit-transition: .4s;
transition: .4s;
}
input:checked + .slider {
background-color: rosybrown;
}
input:focus + .slider {
box-shadow: 0 0 1px rosybrown;
}
input:checked + .slider:before {
-webkit-transform: translateX(26px);
-ms-transform: translateX(26px);
transform: translateX(26px);
}
/* Rounded sliders */
.slider.round {
border-radius: 34px;
}
.slider.round:before {
border-radius: 50%;
}

View File

@ -454,4 +454,51 @@ td {
outline: 0;
-webkit-box-shadow: 0 3px 9px rgba(0,0,0,.5);
box-shadow: 0 3px 9px rgba(0,0,0,.5);
}
.switch {
position: relative;
display: inline-block;
width: 46px;
height: 20px;
}
.switch input {display:none;}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: .4s;
transition: .4s;
}
.slider:before {
position: absolute;
content: "";
height: 12px;
width: 12px;
left: 4px;
bottom: 4px;
background-color: lime;
-webkit-transition: .4s;
transition: .4s;
}
input:checked + .slider {
background-color: purple;
}
input:focus + .slider {
box-shadow: 0 0 1px purple;
}
input:checked + .slider:before {
-webkit-transform: translateX(26px);
-ms-transform: translateX(26px);
transform: translateX(26px);
}
/* Rounded sliders */
.slider.round {
border-radius: 34px;
}
.slider.round:before {
border-radius: 50%;
}

View File

@ -476,4 +476,51 @@ td {
outline: 0;
-webkit-box-shadow: 0 3px 9px rgba(0,0,0,.5);
box-shadow: 0 3px 9px rgba(0,0,0,.5);
}
.switch {
position: relative;
display: inline-block;
width: 46px;
height: 20px;
}
.switch input {display:none;}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: darkslategray;
-webkit-transition: .4s;
transition: .4s;
}
.slider:before {
position: absolute;
content: "";
height: 12px;
width: 12px;
left: 4px;
bottom: 4px;
background-color: #6666ff;
-webkit-transition: .4s;
transition: .4s;
}
input:checked + .slider {
background-color: #00e673;
}
input:focus + .slider {
box-shadow: 0 0 1px #00e673;
}
input:checked + .slider:before {
-webkit-transform: translateX(26px);
-ms-transform: translateX(26px);
transform: translateX(26px);
}
/* Rounded sliders */
.slider.round {
border-radius: 34px;
}
.slider.round:before {
border-radius: 50%;
}

View File

@ -475,4 +475,51 @@ td {
outline: 0;
-webkit-box-shadow: 0 3px 9px rgba(0,0,0,.5);
box-shadow: 0 3px 9px rgba(0,0,0,.5);
}
.switch {
position: relative;
display: inline-block;
width: 46px;
height: 20px;
}
.switch input {display:none;}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: darkgray;
-webkit-transition: .4s;
transition: .4s;
}
.slider:before {
position: absolute;
content: "";
height: 12px;
width: 12px;
left: 4px;
bottom: 4px;
background-color: #000038;
-webkit-transition: .4s;
transition: .4s;
}
input:checked + .slider {
background-color: gold;
}
input:focus + .slider {
box-shadow: 0 0 1px gold;
}
input:checked + .slider:before {
-webkit-transform: translateX(26px);
-ms-transform: translateX(26px);
transform: translateX(26px);
}
/* Rounded sliders */
.slider.round {
border-radius: 34px;
}
.slider.round:before {
border-radius: 50%;
}

View File

@ -20,6 +20,7 @@ registerController("ThemesController", ['$api', '$scope','$window','$route', '$h
$scope.colors = ['dark', 'light', 'red', 'blue', 'green', 'purple', 'orange', 'yellow', 'pink'];
$scope.brightness = ['light', 'normal', 'dark'];
$scope.working = false;
$scope.autoRefresh = true;
// Dark and White
$scope.throbbercontrast = true; // true == light -> false == dark
$scope.logocontrast = true;
@ -104,7 +105,9 @@ registerController("ThemesController", ['$api', '$scope','$window','$route', '$h
}, function(response) {
$scope.sendMessage("Throbber", "set to " + $scope.throbbercontrastText);
log("changeThrobber", response.message);
$window.location.reload();
if ($scope.autoRefresh) {
$window.location.reload();
}
});
};
$scope.changeLogo = function(){
@ -121,7 +124,9 @@ registerController("ThemesController", ['$api', '$scope','$window','$route', '$h
}, function(response) {
$scope.sendMessage("Logo", "set to " + $scope.logocontrastText);
log("changeLogo", response.message);
$window.location.reload();
if ($scope.autoRefresh) {
$window.location.reload();
}
});
};
@ -139,8 +144,10 @@ registerController("ThemesController", ['$api', '$scope','$window','$route', '$h
}, function(response) {
$scope.sendMessage("Icon", "set to " + $scope.faviconcontrastText);
log("changeFavicon", response.message);
$window.location.reload();
});
if ($scope.autoRefresh) {
$window.location.reload();
}
});
};
$scope.changeAllIcons = function(){
$api.request({
@ -154,8 +161,9 @@ registerController("ThemesController", ['$api', '$scope','$window','$route', '$h
$scope.sendMessage("All Icons", "set to " + $scope.allcontrastText + "(" + $scope.allcontrastBrightness + ")");
log("changeAllIcons", "Success? " + response.success + " " + response.message);
}
$route.reload();
$window.location.reload();
if ($scope.autoRefresh) {
$window.location.reload();
}
});
};
$scope.changeDashboard = function(){
@ -168,7 +176,9 @@ registerController("ThemesController", ['$api', '$scope','$window','$route', '$h
}, function(response) {
$scope.sendMessage("Dashboard Icon", "set to " + $scope.dashboardcontrastText + " (" + $scope.dashboardcontrastBrightness + ")");
log("changeDashboard", "Success? " + response.success + " " + response.message);
$window.location.reload();
if ($scope.autoRefresh) {
$window.location.reload();
}
});
};
$scope.changeRecon = function(){
@ -181,7 +191,9 @@ registerController("ThemesController", ['$api', '$scope','$window','$route', '$h
}, function(response) {
$scope.sendMessage("Recon Icon", "set to " + $scope.reconcontrastText + " (" + $scope.reconcontrastBrightness + ")");
log("changeDashboard", "Success? " + response.success + " " + response.message);
$window.location.reload();
if ($scope.autoRefresh) {
$window.location.reload();
}
});
};
$scope.changeProfiling = function(){
@ -194,7 +206,9 @@ registerController("ThemesController", ['$api', '$scope','$window','$route', '$h
}, function(response) {
$scope.sendMessage("Profiling Icon", "set to " + $scope.profilingcontrastText + " (" + $scope.profilingcontrastBrightness + ")");
log("changeDashboard", "Success? " + response.success + " " + response.message);
$window.location.reload();
if ($scope.autoRefresh) {
$window.location.reload();
}
});
};
$scope.changeClients = function(){
@ -207,7 +221,9 @@ registerController("ThemesController", ['$api', '$scope','$window','$route', '$h
}, function(response) {
$scope.sendMessage("Clients Icon", "set to " + $scope.clientscontrastText + " (" + $scope.clientscontrastBrightness + ")");
log("changeDashboard", "Success? " + response.success + " " + response.message);
$window.location.reload();
if ($scope.autoRefresh) {
$window.location.reload();
}
});
};
$scope.changeModules = function(){
@ -220,7 +236,9 @@ registerController("ThemesController", ['$api', '$scope','$window','$route', '$h
}, function(response) {
$scope.sendMessage("ModuleManager Icon", "set to " + $scope.modulescontrastText + " (" + $scope.modulescontrastBrightness + ")");
log("changeDashboard", "Success? " + response.success + " " + response.message);
$window.location.reload();
if ($scope.autoRefresh) {
$window.location.reload();
}
});
};
$scope.changeFilters = function(){
@ -233,7 +251,9 @@ registerController("ThemesController", ['$api', '$scope','$window','$route', '$h
}, function(response) {
$scope.sendMessage("Filters Icon", "set to " + $scope.filterscontrastText + " (" + $scope.filterscontrastBrightness + ")");
log("changeDashboard", "Success? " + response.success + " " + response.message);
$window.location.reload();
if ($scope.autoRefresh) {
$window.location.reload();
}
});
};
$scope.changePineap = function(){
@ -246,7 +266,9 @@ registerController("ThemesController", ['$api', '$scope','$window','$route', '$h
}, function(response) {
$scope.sendMessage("Filters Icon", "set to " + $scope.pineapcontrastText + " (" + $scope.pineapcontrastBrightness + ")");
log("changeDashboard", "Success? " + response.success + " " + response.message);
$window.location.reload();
if ($scope.autoRefresh) {
$window.location.reload();
}
});
};
$scope.changeTracking = function(){
@ -259,7 +281,9 @@ registerController("ThemesController", ['$api', '$scope','$window','$route', '$h
}, function(response) {
$scope.sendMessage("Tracking Icon", "set to " + $scope.trackingcontrastText + " (" + $scope.trackingcontrastBrightness + ")");
log("changeDashboard", "Success? " + response.success + " " + response.message);
$window.location.reload();
if ($scope.autoRefresh) {
$window.location.reload();
}
});
};
$scope.changeLogging = function(){
@ -272,7 +296,9 @@ registerController("ThemesController", ['$api', '$scope','$window','$route', '$h
}, function(response) {
$scope.sendMessage("Logging Icon", "set to " + $scope.loggingcontrastText + " (" + $scope.loggingcontrastBrightness + ")");
log("changeDashboard", "Success? " + response.success + " " + response.message);
$window.location.reload();
if ($scope.autoRefresh) {
$window.location.reload();
}
});
};
$scope.changeReporting = function(){
@ -285,7 +311,9 @@ registerController("ThemesController", ['$api', '$scope','$window','$route', '$h
}, function(response) {
$scope.sendMessage("Reporting Icon", "set to " + $scope.reportingcontrastText + " (" + $scope.reportingcontrastBrightness + ")");
log("changeDashboard", "Success? " + response.success + " " + response.message);
$window.location.reload();
if ($scope.autoRefresh) {
$window.location.reload();
}
});
};
$scope.changeNetworking = function(){
@ -298,7 +326,9 @@ registerController("ThemesController", ['$api', '$scope','$window','$route', '$h
}, function(response) {
$scope.sendMessage("Networking Icon", "set to " + $scope.networkingcontrastText + " (" + $scope.networkingcontrastBrightness + ")");
log("changeDashboard", "Success? " + response.success + " " + response.message);
$window.location.reload();
if ($scope.autoRefresh) {
$window.location.reload();
}
});
};
$scope.changeConfiguration = function(){
@ -311,7 +341,9 @@ registerController("ThemesController", ['$api', '$scope','$window','$route', '$h
}, function(response) {
$scope.sendMessage("Configuration Icon", "set to " + $scope.configurationcontrastText + " (" + $scope.configurationcontrastBrightness + ")");
log("changeDashboard", "Success? " + response.success + " " + response.message);
$window.location.reload();
if ($scope.autoRefresh) {
$window.location.reload();
}
});
};
$scope.changeAdvanced = function(){
@ -324,7 +356,9 @@ registerController("ThemesController", ['$api', '$scope','$window','$route', '$h
}, function(response) {
$scope.sendMessage("Advanced Icon", "set to " + $scope.advancedcontrastText + " (" + $scope.advancedcontrastBrightness + ")");
log("changeDashboard", "Success? " + response.success + " " + response.message);
$window.location.reload();
if ($scope.autoRefresh) {
$window.location.reload();
}
});
};
$scope.changeHelp = function(){
@ -337,7 +371,9 @@ registerController("ThemesController", ['$api', '$scope','$window','$route', '$h
}, function(response) {
$scope.sendMessage("Help Icon", "set to " + $scope.helpcontrastText + " (" + $scope.helpcontrastBrightness + ")");
log("changeDashboard", "Success? " + response.success + " " + response.message);
$window.location.reload();
if ($scope.autoRefresh) {
$window.location.reload();
}
});
};
function log(fn, message) {
@ -437,7 +473,9 @@ registerController("ThemesController", ['$api', '$scope','$window','$route', '$h
$scope.throbber = false;
log("restoreDefault", "Successful? "+ response.success + ". " + response.message);
$scope.working = "Done!";
$window.location.reload();
if ($scope.autoRefresh) {
$window.location.reload();
}
});
};
$scope.sendMessage = function (t, m) {
@ -491,7 +529,9 @@ registerController("ThemesController", ['$api', '$scope','$window','$route', '$h
$scope.currentTheme = theme.title;
getThemes();
$scope.sendMessage("Activated", response.message);
$window.location.reload();
if ($scope.autoRefresh) {
$window.location.reload();
}
}
});
};

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{
"title": "Themes",
"description": "Create or download custom themes!",
"description": "Create, download, and share custom themes",
"version": "1.0",
"author": "trashbo4t"
}
}