Removed my version of jot.tpl

This commit is contained in:
Haakon Meland Eriksen
2015-11-28 16:23:17 +01:00
parent 2b2723cb74
commit cb7df797e1
31 changed files with 2496 additions and 2752 deletions

View File

@@ -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();
$('#id_finish_text').prop("disabled", false);
}
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');
}
});
}