diff options
author | Mario Vavti <mario@mariovavti.com> | 2015-11-24 14:15:28 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2015-11-24 14:15:28 +0100 |
commit | 987619130b99bf4548d5d31ac453cdf48c818eff (patch) | |
tree | c9a00e4dbea487a93725d539c04d78fa1cadd38f /view/js/mod_events.js | |
parent | e485ecb3b453a50a1974992b5ccf5122e154a5dc (diff) | |
download | volse-hubzilla-987619130b99bf4548d5d31ac453cdf48c818eff.tar.gz volse-hubzilla-987619130b99bf4548d5d31ac453cdf48c818eff.tar.bz2 volse-hubzilla-987619130b99bf4548d5d31ac453cdf48c818eff.zip |
some event heavy lifting - please test and report issues
Diffstat (limited to 'view/js/mod_events.js')
-rw-r--r-- | view/js/mod_events.js | 34 |
1 files changed, 8 insertions, 26 deletions
diff --git a/view/js/mod_events.js b/view/js/mod_events.js index 270bf798b..0b7b3d24c 100644 --- a/view/js/mod_events.js +++ b/view/js/mod_events.js @@ -2,33 +2,15 @@ * JavaScript for mod/events */ -$(document).ready( function() { showHideFinishDate(); }); +$(document).ready( function() { -function showHideFinishDate() { + enableDisableFinishDate(); + +}); + +function enableDisableFinishDate() { if( $('#id_nofinish').is(':checked')) - $('#event-finish-wrapper').hide(); + $('#id_finish_text').prop("disabled", true); 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'); - } - }); + $('#id_finish_text').prop("disabled", false); } -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'); - } - }); -}
\ No newline at end of file |