Line 4: | Line 4: | ||
<script> | <script> | ||
jQuery(document).ready(function($){ | jQuery(document).ready(function($){ | ||
+ | function disableEntries() { | ||
+ | $('#text-editor')[0].disabled = true; | ||
+ | $('#title')[0].disabled = true; | ||
+ | $('#month')[0].disabled = true; | ||
+ | $('#description')[0].disabled = true; | ||
+ | $('#week-number')[0].disabled = true; | ||
+ | $('#day-number')[0].disabled = true; | ||
+ | } | ||
+ | |||
+ | $('input[name=type]').on('click', function(e){ | ||
+ | disableEntries(); | ||
+ | if(this.value == "day") { | ||
+ | $('#text-editor')[0].disabled = false; | ||
+ | $('#title')[0].disabled = false; | ||
+ | $('#day-number')[0].disabled = false; | ||
+ | $('#month')[0].disabled = false; | ||
+ | } else { | ||
+ | $('#title')[0].disabled = false; | ||
+ | $('#description')[0].disabled = false; | ||
+ | $('#week-number')[0].disabled = false; | ||
+ | } | ||
+ | }); | ||
+ | |||
$('#week-submit').on('click', function(){ | $('#week-submit').on('click', function(){ | ||
var weekNum = $('#week-number').val(); | var weekNum = $('#week-number').val(); |
Revision as of 05:44, 5 August 2016
Day Entry: Week Entry:
Input of day entry in here:
CDI Team: PCage Team:
Title of day or week entry here:
Description of week entry here:
Week Number:
Month: Day Number:
Copy and Paste This: