diff options
author | friendica <info@friendica.com> | 2014-09-06 00:37:15 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-09-06 00:37:15 -0700 |
commit | 28b75b028dcb1633a9407a5a5c79e5d2423e18a5 (patch) | |
tree | 7d7e061cd6fb3c1c92ecdf086c668e500f4e93b1 /view/js/mod_events.js | |
parent | 7a9b1c4a77f279b04fa710df25aa289d7b2b47c1 (diff) | |
download | volse-hubzilla-28b75b028dcb1633a9407a5a5c79e5d2423e18a5.tar.gz volse-hubzilla-28b75b028dcb1633a9407a5a5c79e5d2423e18a5.tar.bz2 volse-hubzilla-28b75b028dcb1633a9407a5a5c79e5d2423e18a5.zip |
ajax work
Diffstat (limited to 'view/js/mod_events.js')
-rw-r--r-- | view/js/mod_events.js | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/view/js/mod_events.js b/view/js/mod_events.js new file mode 100644 index 000000000..0ce128fcc --- /dev/null +++ b/view/js/mod_events.js @@ -0,0 +1,37 @@ + +$(document).ready( function() { showHideFinishDate(); }); + +function showHideFinishDate() { + if( $('#event-nofinish-checkbox').is(':checked')) + $('#event-finish-wrapper').hide(); + else + $('#event-finish-wrapper').show(); +} + + + + function eventGetStart() { + //reply = prompt("{{$expirewhen}}", $('#jot-expire').val()); + $('#startModal').modal(); + $('#start-modal-OKButton').on('click', function() { + reply=$('#start-date').val(); + if(reply && reply.length) { + $('#start-text').val(reply); + $('#startModal').modal('hide'); + } + }) + + + } + function eventGetFinish() { + //reply = prompt("{{$expirewhen}}", $('#jot-expire').val()); + $('#finishModal').modal(); + $('#finish-modal-OKButton').on('click', function() { + reply=$('#finish-date').val(); + if(reply && reply.length) { + $('#finish-text').val(reply); + $('#finishModal').modal('hide'); + } + }) + + } |