diff options
author | Klaus Weidenbach <Klaus.Weidenbach@gmx.net> | 2015-03-15 22:18:59 +0100 |
---|---|---|
committer | Klaus Weidenbach <Klaus.Weidenbach@gmx.net> | 2015-03-15 23:56:32 +0100 |
commit | 792e475a78ffb1f1facd615b00511c9107d0ac5a (patch) | |
tree | 9a42d3038e50ee5445c501457b7f5b8af42f6591 /view/js/mod_events.js | |
parent | fdcbb61bcb61a980a7a9171432498a9cac6e0965 (diff) | |
download | volse-hubzilla-792e475a78ffb1f1facd615b00511c9107d0ac5a.tar.gz volse-hubzilla-792e475a78ffb1f1facd615b00511c9107d0ac5a.tar.bz2 volse-hubzilla-792e475a78ffb1f1facd615b00511c9107d0ac5a.zip |
Some JavaScript cleanups.
Adding some missing and remove some unnecessary semicolons.
Change some comparing operators.
Changed access to objects with dot operator.
Diffstat (limited to 'view/js/mod_events.js')
-rw-r--r-- | view/js/mod_events.js | 51 |
1 files changed, 25 insertions, 26 deletions
diff --git a/view/js/mod_events.js b/view/js/mod_events.js index fc25e4331..270bf798b 100644 --- a/view/js/mod_events.js +++ b/view/js/mod_events.js @@ -1,35 +1,34 @@ +/** + * JavaScript for mod/events + */ $(document).ready( function() { showHideFinishDate(); }); - function showHideFinishDate() { - if( $('#id_nofinish').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) { +function showHideFinishDate() { + if( $('#id_nofinish').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) { + }); +} +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 |