mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Fixed issue with timezone in visual console editor
This commit is contained in:
parent
b52661054d
commit
fd27b6d445
@ -1574,8 +1574,28 @@ function loadFieldsFromDB(item) {
|
|||||||
$("select[name=clock_animation]").val(val);
|
$("select[name=clock_animation]").val(val);
|
||||||
if (key == 'time_format')
|
if (key == 'time_format')
|
||||||
$("select[name=time_format]").val(val);
|
$("select[name=time_format]").val(val);
|
||||||
if (key == 'timezone')
|
if (key == 'timezone') {
|
||||||
$("select[name=timezone]").val(val);
|
var zone = val.split("/");
|
||||||
|
$("select[name=zone]").val(zone[0]);
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
type: "POST",
|
||||||
|
url: "ajax.php",
|
||||||
|
data: "page=godmode/setup/setup&select_timezone=1&zone=" + zone[0],
|
||||||
|
dataType: "json",
|
||||||
|
success: function(data) {
|
||||||
|
$("#timezone").empty();
|
||||||
|
jQuery.each (data, function (id, value) {
|
||||||
|
timezone = value;
|
||||||
|
var timezone_country = timezone.replace (/^.*\//g, "");
|
||||||
|
$("select[name='timezone']").append($("<option>").val(timezone).html(timezone_country));
|
||||||
|
if (timezone == val) {
|
||||||
|
$("select[name='timezone']").val(timezone);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
if (key == 'value_show') {
|
if (key == 'value_show') {
|
||||||
$("select[name=value_show]").val(val);
|
$("select[name=value_show]").val(val);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user