Revert "Ensure properly encoded popup title", fix PHP instead
[infodrom.org/service.infodrom.org] / src / Infodrom / calendar / index.wml
index 07c8c85..7c63676 100644 (file)
@@ -2,21 +2,21 @@
 
 <future>
 <page func="Infodrom Oldenburg" title="Termine">
+<script type="text/javascript" src="<root_prefix>jquery.editable.js"></script>
 
 <style type="text/css">
-@media only screen and (max-device-width: 640px) {
-     button {
-        width: 4em;
-    }
-}
-
 @media only screen and (max-device-width: 400px) {
     div.view {
-       float: left !important;
        margin-left: 100px;
     }
 }
 
+@media only screen and (max-device-width: 980px) {
+     button {
+        width: 3em;
+    }
+}
+
 div.view {
     float:right;
     margin-top:-30px;
@@ -297,7 +297,10 @@ function show_log()
        logwindow.openPopup();
     }
 
-    $.invoke('Calendar_Item/Log', {id: $('div#menu').attr('dav_id')});
+    $.invoke('Calendar_Item/Log', {id: $('div#menu').attr('dav_id')}, function(data){
+       if (!is_mobile())
+           make_editable('div#log div.editable');
+    });
 }
 
 var commentwindow = false;
@@ -418,7 +421,7 @@ $(function(){
        }
     });
     if (document.location.href.indexOf('month=normal') == -1) {
-       if (navigator.userAgent.indexOf('Android') > -1) {
+        if (is_mobile()) {
            $('<meta name="viewport" content="width=device-width, initial-scale=0.75" />').insertAfter('title');
            $('#view').val('onemonth');
            $.invoke('Calendar/OneMonth', {month: '<?=date('Y-m')?>'}, month_actions);