X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=root%2Fsrc%2Fsettings%2Findex.tt2;h=8cafbf4890200404918ffe880fd707d3a62eff55;hb=25cfbba80f992bd251751782e30cb8c3d57b53d3;hp=d52509a1f49466f07d8496a15e7d558c15ae8157;hpb=15e271f8e65bfc35d311f9b9cad581e3a1c70def;p=ndwebbie.git
diff --git a/root/src/settings/index.tt2 b/root/src/settings/index.tt2
index d52509a..8cafbf4 100644
--- a/root/src/settings/index.tt2
+++ b/root/src/settings/index.tt2
@@ -9,6 +9,14 @@
+
+
+
[%- site.stylesheets = ['ui/ui.datepicker.css'] %]
@@ -33,7 +57,26 @@ $(document).ready(function(){
yearRange: "-80:+0",
dateFormat: $.datepicker.ATOM,
firstDay: 1,
- showOn: "both",
+ showOn: "both"
+ });
+ $("#tzcategory").change(function(){
+ if ($(this).val() == 'GMT'){
+ $("#timezone").val($(this).val());
+ $("#tzcountry").empty();
+ }else{
+ $.get("/jsrpc/tzcountries/" + $(this).val(),function(xml){
+ $("#tzcountry").empty();
+ $("country",xml).each(function(i){
+ var opt = $('