diff options
author | RedMatrix <info@friendica.com> | 2015-01-02 12:11:08 +1100 |
---|---|---|
committer | RedMatrix <info@friendica.com> | 2015-01-02 12:11:08 +1100 |
commit | e7081db19b95eb0480bf97ddb268e69153cd297b (patch) | |
tree | 08f70d6443ec3314c76ac1fc8c9999f96c6b267c /view | |
parent | 817b54688e8cea4c7671a8326ce4cf815e1b62d6 (diff) | |
parent | 1c2dc97a4a6e740d97ee29c8b7c4d0e37832ff4c (diff) | |
download | volse-hubzilla-e7081db19b95eb0480bf97ddb268e69153cd297b.tar.gz volse-hubzilla-e7081db19b95eb0480bf97ddb268e69153cd297b.tar.bz2 volse-hubzilla-e7081db19b95eb0480bf97ddb268e69153cd297b.zip |
Merge pull request #807 from pafcu/dblclicknewevent
Double click on day in calendar creates new event starting that day
Diffstat (limited to 'view')
-rwxr-xr-x | view/tpl/event_head.tpl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/view/tpl/event_head.tpl b/view/tpl/event_head.tpl index bcb1e07f6..03ea833f9 100755 --- a/view/tpl/event_head.tpl +++ b/view/tpl/event_head.tpl @@ -24,6 +24,11 @@ eventClick: function(calEvent, jsEvent, view) { showEvent(calEvent.id); }, + loading: function(isLoading, view) { + if(!isLoading) { + $('td.fc-day').dblclick(function() { window.location.href='https://caterva.eu/events/new?start='+$(this).data('date'); }); + } + }, eventRender: function(event, element, view) { //console.log(view.name); |