]> git.mxchange.org Git - friendica.git/commitdiff
add double click on calendar day for frost theme
authorrabuzarus <>
Sat, 23 May 2015 18:02:57 +0000 (20:02 +0200)
committerrabuzarus <>
Sat, 23 May 2015 18:02:57 +0000 (20:02 +0200)
view/theme/frost/js/theme.js

index 1de9d3a96b2117ca191c2a97ab724423ecfc9a09..a14a034bc15ae67eab929f772e74e1cf9c0037a2 100644 (file)
@@ -159,6 +159,11 @@ $(document).ready(function() {
                        eventClick: function(calEvent, jsEvent, view) {
                                showEvent(calEvent.id);
                        },
+                        loading: function(isLoading, view) {
+                               if(!isLoading) {
+                                       $('td.fc-day').dblclick(function() { window.location.href='/events/new?start='+$(this).data('date'); });
+                               }
+                       },
                        
                        eventRender: function(event, element, view) {
                                //console.log(view.name);