aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/mod_events.js
diff options
context:
space:
mode:
authormrjive <mrjive@mrjive.it>2015-12-04 10:32:14 +0100
committermrjive <mrjive@mrjive.it>2015-12-04 10:32:14 +0100
commit051346325609f5f2e78ef0deaf182c65d7823bbc (patch)
treef3660377b3daf6599623d2e4fb95b4d33c30d8cc /view/js/mod_events.js
parent53a796afcc0cff6f9e3f51457df4506a43db1945 (diff)
parent8a9d743f6f518d3af35014130dcef8f148148113 (diff)
downloadvolse-hubzilla-051346325609f5f2e78ef0deaf182c65d7823bbc.tar.gz
volse-hubzilla-051346325609f5f2e78ef0deaf182c65d7823bbc.tar.bz2
volse-hubzilla-051346325609f5f2e78ef0deaf182c65d7823bbc.zip
Merge pull request #9 from redmatrix/master
updating from original codebase
Diffstat (limited to 'view/js/mod_events.js')
-rw-r--r--view/js/mod_events.js34
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