]> git.mxchange.org Git - friendica.git/blobdiff - view/templates/settings.tpl
frio: use cached css if no settings (or file) have changed
[friendica.git] / view / templates / settings.tpl
index 26c44f91c35803ac0f24126cf63452a59e075151..c3852845701ea8ad9d225b08e5d6be9b69e8ade5 100644 (file)
@@ -27,6 +27,7 @@
 {{include file="field_input.tpl" field=$email}}
 {{include file="field_password.tpl" field=$password4}}
 {{include file="field_custom.tpl" field=$timezone}}
+{{include file="field_select.tpl" field=$language}}
 {{include file="field_input.tpl" field=$defloc}}
 {{include file="field_checkbox.tpl" field=$allowloc}}
 
 (function(){
     var elm = $("#id_{{$desktop_notifications.0}}_onoff");
     var ckbox = $("#id_{{$desktop_notifications.0}}");
-    
+
     if (getNotificationPermission() === 'granted') {
         ckbox.val(1);
         elm.find(".off").addClass("hidden");
        if (getNotificationPermission() === null) {
                elm.parent(".field.yesno").hide();
        }
-    
+
     $("#id_{{$desktop_notifications.0}}_onoff").on("click", function(e){
-        
+
         if (Notification.permission === 'granted') {
             localStorage.setItem('notification-permissions', ckbox.val()==1 ? 'granted' : 'denied');
         } else if (Notification.permission === 'denied') {
             localStorage.setItem('notification-permissions', 'denied');
-            
+
             ckbox.val(0);
             elm.find(".on").addClass("hidden");
             elm.find(".off").removeClass("hidden");
-            
+
         } else if (Notification.permission === 'default') {
             Notification.requestPermission(function(choice) {
                 if (choice === 'granted') {
                 }
             });
         }
-               
+
                //console.log(getNotificationPermission());
-               
-        
+
+
     })
 })();
 </script>