aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/mod_events.js
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-03-15 16:51:35 -0700
committerfriendica <info@friendica.com>2015-03-15 16:51:35 -0700
commitd7a6dae3cbf88cfc579674caa694a01f4e54ab89 (patch)
tree8d76a3635a61fedf57ff74442311bb3453d84a26 /view/js/mod_events.js
parent6da40fc559f540e67802f771411aa9f85dc8d64d (diff)
parente780dada832acbb9d46870178f9a6488f4e265d9 (diff)
downloadvolse-hubzilla-d7a6dae3cbf88cfc579674caa694a01f4e54ab89.tar.gz
volse-hubzilla-d7a6dae3cbf88cfc579674caa694a01f4e54ab89.tar.bz2
volse-hubzilla-d7a6dae3cbf88cfc579674caa694a01f4e54ab89.zip
Merge https://github.com/friendica/red into pending_merge
Diffstat (limited to 'view/js/mod_events.js')
-rw-r--r--view/js/mod_events.js51
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