|
|
@ -241,7 +241,12 @@ $(document).ready(function() { |
|
|
|
$.get('/admin/toggle-development-mode').done(function(data) |
|
|
|
$.get('/admin/toggle-development-mode').done(function(data) |
|
|
|
{ |
|
|
|
{ |
|
|
|
const response = JSON.parse(data); |
|
|
|
const response = JSON.parse(data); |
|
|
|
if (response.success == true) { |
|
|
|
if (response.success == false) { |
|
|
|
|
|
|
|
console.log(data); |
|
|
|
|
|
|
|
alert("Development mode could not be enabled!"); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (response.result.value == 'on') { |
|
|
|
if (response.result.value == 'on') { |
|
|
|
e.target.checked = true; |
|
|
|
e.target.checked = true; |
|
|
|
$('#develop-enabled').css('visibility', 'visible'); |
|
|
|
$('#develop-enabled').css('visibility', 'visible'); |
|
|
@ -253,11 +258,6 @@ $(document).ready(function() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
alert("Development mode has been set to: '" + response.result.value + "'"); |
|
|
|
alert("Development mode has been set to: '" + response.result.value + "'"); |
|
|
|
} |
|
|
|
|
|
|
|
else { |
|
|
|
|
|
|
|
console.log(data); |
|
|
|
|
|
|
|
alert("Development mode could not be enabled!") |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|