mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-08 22:36:12 +01:00
bug fix: issues
This commit is contained in:
@@ -655,3 +655,50 @@ app.controller('versionManagment', function ($scope, $http, $timeout) {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
app.controller('designtheme', function ($scope, $http, $timeout) {
|
||||||
|
|
||||||
|
$scope.themeloading = true;
|
||||||
|
|
||||||
|
|
||||||
|
$scope.getthemedata = function () {
|
||||||
|
$scope.themeloading = false;
|
||||||
|
|
||||||
|
url = "/base/getthemedata";
|
||||||
|
|
||||||
|
var data = {
|
||||||
|
package: "helo world",
|
||||||
|
Themename: $('#stheme').val(),
|
||||||
|
};
|
||||||
|
|
||||||
|
var config = {
|
||||||
|
headers: {
|
||||||
|
'X-CSRFToken': getCookie('csrftoken')
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
$http.post(url, data, config).then(Listgetthemedata, cantgetthemedata);
|
||||||
|
|
||||||
|
|
||||||
|
function Listgetthemedata(response) {
|
||||||
|
$scope.themeloading = true;
|
||||||
|
|
||||||
|
if (response.data.status === 1) {
|
||||||
|
document.getElementById('appendthemedata').innerHTML = "";
|
||||||
|
$("#appendthemedata").val(response.data.csscontent)
|
||||||
|
} else {
|
||||||
|
alert(response.data.error_message)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function cantgetthemedata(response) {
|
||||||
|
$scope.themeloading = true;
|
||||||
|
console.log(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
//$timeout(getStuff, 2000);
|
||||||
|
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user