123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574 |
- $(document).ready(function() {
- $( "#meetingDate" ).datepicker({
- numberOfMonths: 2
- });
- $( "#meetingDateConfirm" ).datepicker({
- numberOfMonths: 2
- });
- $( "#approvedOn" ).datepicker({
- numberOfMonths: 2
- });
- $( "#approved" ).change(function() {
- $value = $( "#approved").val();
- if($value == 'yes')
- {
- $(' #approvedOn ').prop('disabled', false);
- $(' #approvedOn ').select();
- }
- else
- {
- $(' #approvedOn ').prop('disabled', true);
- }
- });
- CKEDITOR.replace( 'openingComments', {
- on: {
- change: function() {
- $data = CKEDITOR.instances.openingComments.getData();
- $count = CKEDITOR.instances.openingComments.getData().length;
- if($data != "")
- {
- $('#openingCommentsLink').html("<i class=\"fi-check\"></i> Opening Comments");
- }
- else
- {
- $('#openingCommentsLink').html("Opening Comments");
- }
- //Count characters in the field
- $percent = ($count/10000)*100;
- $percent = $percent.toFixed(2);
- if($percent > 100)
- {
- $('#openingCommentsLimit').width('100%');
- $('#limit').foundation('reveal', 'open');
- }
- else
- {
- $('#openingCommentsLimit').animate({width: $percent+'%'}, 100);
- }
- }
- }
- } );
- CKEDITOR.replace( 'communications', {
- on: {
- change: function() {
- $data = CKEDITOR.instances.communications.getData();
- $count = CKEDITOR.instances.communications.getData().length;
- if($data != "")
- {
- $('#communicationsLink').html("<i class=\"fi-check\"></i> Communications");
- }
- else
- {
- $('#communicationsLink').html("Communications");
- }
- //Count characters in the field
- $percent = ($count/10000)*100;
- $percent = $percent.toFixed(2);
- if($percent > 100)
- {
- $('#communicationsLimit').width('100%');
- $('#limit').foundation('reveal', 'open');
- }
- else
- {
- $('#communicationsLimit').animate({width: $percent+'%'}, 100);
- }
- }
- }
- } );
- CKEDITOR.replace( 'cityCouncil', {
- on: {
- change: function() {
- $data = CKEDITOR.instances.cityCouncil.getData();
- $count = CKEDITOR.instances.cityCouncil.getData().length;
- if($data != "")
- {
- $('#cityCouncilLink').html("<i class=\"fi-check\"></i> City Council");
- }
- else
- {
- $('#cityCouncilLink').html("City Council");
- }
- //Count characters in the field
- $percent = ($count/10000)*100;
- $percent = $percent.toFixed(2);
- if($percent > 100)
- {
- $('#cityCouncilLimit').width('100%');
- $('#limit').foundation('reveal', 'open');
- }
- else
- {
- $('#cityCouncilLimit').animate({width: $percent+'%'}, 100);
- }
- }
- }
- } );
- CKEDITOR.replace( 'foundation', {
- on: {
- change: function() {
- $data = CKEDITOR.instances.foundation.getData();
- $count = CKEDITOR.instances.foundation.getData().length;
- if($data != "")
- {
- $('#foundationLink').html("<i class=\"fi-check\"></i> Foundation");
- }
- else
- {
- $('#foundationLink').html("Foundation");
- }
- //Count characters in the field
- $percent = ($count/10000)*100;
- $percent = $percent.toFixed(2);
- if($percent > 100)
- {
- $('#foundationLimit').width('100%');
- $('#limit').foundation('reveal', 'open');
- }
- else
- {
- $('#foundationLimit').animate({width: $percent+'%'}, 100);
- }
- }
- }
- } );
- CKEDITOR.replace( 'financeBudgeting', {
- on: {
- change: function() {
- $data = CKEDITOR.instances.financeBudgeting.getData();
- $count = CKEDITOR.instances.financeBudgeting.getData().length;
- if($data != "")
- {
- $('#financeBudgetingLink').html("<i class=\"fi-check\"></i> Finance & Budgeting");
- }
- else
- {
- $('#financeBudgetingLink').html("Finance & Budgeting");
- }
- //Count characters in the field
- $percent = ($count/10000)*100;
- $percent = $percent.toFixed(2);
- if($percent > 100)
- {
- $('#financeBudgetLimit').width('100%');
- $('#limit').foundation('reveal', 'open');
- }
- else
- {
- $('#financeBudgetLimit').animate({width: $percent+'%'}, 100);
- }
- }
- }
- } );
- CKEDITOR.replace( 'buildingGrounds', {
- on: {
- change: function() {
- $data = CKEDITOR.instances.buildingGrounds.getData();
- $count = CKEDITOR.instances.buildingGrounds.getData().length;
- if($data != "")
- {
- $('#buildingGroundsLink').html("<i class=\"fi-check\"></i> Building & Grounds");
- }
- else
- {
- $('#buildingGroundsLink').html("Building & Grounds");
- }
- //Count characters in the field
- $percent = ($count/10000)*100;
- $percent = $percent.toFixed(2);
- if($percent > 100)
- {
- $('#buildingGroundsLimit').width('100%');
- $('#limit').foundation('reveal', 'open');
- }
- else
- {
- $('#buildingGroundsLimit').animate({width: $percent+'%'}, 100);
- }
- }
- }
- } );
- CKEDITOR.replace( 'planningPublicRelations', {
- on: {
- change: function() {
- $data = CKEDITOR.instances.planningPublicRelations.getData();
- $count = CKEDITOR.instances.planningPublicRelations.getData().length;
- if($data != "")
- {
- $('#planningPublicRelationsLink').html("<i class=\"fi-check\"></i> Planning & Public Relations");
- }
- else
- {
- $('#planningPublicRelationsLink').html("Planning & Public Relations");
- }
- //Count characters in the field
- $percent = ($count/10000)*100;
- $percent = $percent.toFixed(2);
- if($percent > 100)
- {
- $('#planningPublicRelationsLimit').width('100%');
- $('#limit').foundation('reveal', 'open');
- }
- else
- {
- $('#planningPublicRelationsLimit').animate({width: $percent+'%'}, 100);
- }
- }
- }
- } );
- CKEDITOR.replace( 'operationsPersonnel', {
- on: {
- change: function() {
- $data = CKEDITOR.instances.operationsPersonnel.getData();
- $count = CKEDITOR.instances.operationsPersonnel.getData().length;
- if($data != "")
- {
- $('#operationsPersonnelLink').html("<i class=\"fi-check\"></i> Operations & Personnel");
- }
- else
- {
- $('#operationsPersonnelLink').html("Operations/Personnel");
- }
- //Count characters in the field
- $percent = ($count/10000)*100;
- $percent = $percent.toFixed(2);
- if($percent > 100)
- {
- $('#operationsPersonnelLimit').width('100%');
- $('#limit').foundation('reveal', 'open');
- }
- else
- {
- $('#operationsPersonnelLimit').animate({width: $percent+'%'}, 100);
- }
- }
- }
- } );
- CKEDITOR.replace( 'businessIssues', {
- on: {
- change: function() {
- $data = CKEDITOR.instances.businessIssues.getData();
- $count = CKEDITOR.instances.businessIssues.getData().length;
- if($data != "")
- {
- $('#businessIssuesLink').html("<i class=\"fi-check\"></i> Business Issues");
- }
- else
- {
- $('#businessIssuesLink').html("Business Issues");
- }
- //Count characters in the field
- $percent = ($count/10000)*100;
- $percent = $percent.toFixed(2);
- if($percent > 100)
- {
- $('#businessIssuesLimit').width('100%');
- $('#limit').foundation('reveal', 'open');
- }
- else
- {
- $('#businessIssuesLimit').animate({width: $percent+'%'}, 100);
- }
- }
- }
- } );
- CKEDITOR.replace( 'libraryStaff', {
- on: {
- change: function() {
- $data = CKEDITOR.instances.libraryStaff.getData();
- $count = CKEDITOR.instances.libraryStaff.getData().length;
- if($data != "")
- {
- $('#libraryStaffLink').html("<i class=\"fi-check\"></i> Library Staff Report");
- }
- else
- {
- $('#libraryStaffLink').html("Library Staff Report");
- }
- //Count characters in the field
- $percent = ($count/10000)*100;
- $percent = $percent.toFixed(2);
- if($percent > 100)
- {
- $('#libraryStaffLimit').width('100%');
- $('#limit').foundation('reveal', 'open');
- }
- else
- {
- $('#libraryStaffLimit').animate({width: $percent+'%'}, 100);
- }
- }
- }
- } );
- CKEDITOR.replace( 'libraryDirector', {
- on: {
- change: function() {
- $data = CKEDITOR.instances.libraryDirector.getData();
- $count = CKEDITOR.instances.libraryDirector.getData().length;
- if($data != "")
- {
- $('#libraryDirectorLink').html("<i class=\"fi-check\"></i> Library Director Report");
- }
- else
- {
- $('#libraryDirectorLink').html("Library Director Report");
- }
- //Count characters in the field
- $percent = ($count/10000)*100;
- $percent = $percent.toFixed(2);
- if($percent > 100)
- {
- $('#libraryDirectorLimit').width('100%');
- $('#limit').foundation('reveal', 'open');
- }
- else
- {
- $('#libraryDirectorLimit').animate({width: $percent+'%'}, 100);
- }
- }
- }
- } );
- CKEDITOR.replace( 'publicComment', {
- on: {
- change: function() {
- $data = CKEDITOR.instances.publicComment.getData();
- $count = CKEDITOR.instances.publicComment.getData().length;
- if($data != "")
- {
- $('#publicCommentLink').html("<i class=\"fi-check\"></i> Public Comment");
- }
- else
- {
- $('#publicCommentLink').html("Public Comment");
- }
- //Count characters in the field
- $percent = ($count/10000)*100;
- $percent = $percent.toFixed(2);
- if($percent > 100)
- {
- $('#publicCommentLimit').width('100%');
- $('#limit').foundation('reveal', 'open');
- }
- else
- {
- $('#publicCommentLimit').animate({width: $percent+'%'}, 100);
- }
- }
- }
- } );
- CKEDITOR.replace( 'additionalComments', {
- on: {
- change: function() {
- $data = CKEDITOR.instances.additionalComments.getData();
- $count = CKEDITOR.instances.additionalComments.getData().length;
- if($data != "")
- {
- $('#additionalCommentsLink').html("<i class=\"fi-check\"></i> Addtional Comments");
- }
- else
- {
- $('#additionalCommentsLink').html("Additional Comments");
- }
- //Count characters in the field
- $percent = ($count/10000)*100;
- $percent = $percent.toFixed(2);
- if($percent > 100)
- {
- $('#additionalCommentsLimit').width('100%');
- $('#limit').foundation('reveal', 'open');
- }
- else
- {
- $('#additionalCommentsLimit').animate({width: $percent+'%'}, 100);
- }
- }
- }
- } );
- $data = CKEDITOR.instances.openingComments.getData();
- if($data != "")
- {
- $('#openingCommentsLink').html("<i class=\"fi-check\"></i> Opening Comments");
- }
- else
- {
- $('#openingCommentsLink').html("Opening Comments");
- }
- $data = CKEDITOR.instances.communications.getData();
- if($data != "")
- {
- $('#communicationsLink').html("<i class=\"fi-check\"></i> Communications");
- }
- else
- {
- $('#communicationsLink').html("Communications");
- }
- $data = CKEDITOR.instances.cityCouncil.getData();
- if($data != "")
- {
- $('#cityCouncilLink').html("<i class=\"fi-check\"></i> City Council");
- }
- else
- {
- $('#cityCouncilLink').html("City Council");
- }
- $data = CKEDITOR.instances.foundation.getData();
- if($data != "")
- {
- $('#foundationLink').html("<i class=\"fi-check\"></i> Foundation");
- }
- else
- {
- $('#foundationLink').html("Foundation");
- }
- $data = CKEDITOR.instances.financeBudgeting.getData();
- if($data != "")
- {
- $('#financeBudgetingLink').html("<i class=\"fi-check\"></i> Finance & Budgeting");
- }
- else
- {
- $('#financeBudgetingLink').html("Finance & Budgeting");
- }
- $data = CKEDITOR.instances.buildingGrounds.getData();
- if($data != "")
- {
- $('#buildingGroundsLink').html("<i class=\"fi-check\"></i> Building & Grounds");
- }
- else
- {
- $('#buildingGroundsLink').html("Building & Grounds");
- }
- $data = CKEDITOR.instances.planningPublicRelations.getData();
- if($data != "")
- {
- $('#planningPublicRelationsLink').html("<i class=\"fi-check\"></i> Planning & Public Relations");
- }
- else
- {
- $('#planningPublicRelationsLink').html("Planning & Public Relations");
- }
- $data = CKEDITOR.instances.operationsPersonnel.getData();
- if($data != "")
- {
- $('#operationsPersonnelLink').html("<i class=\"fi-check\"></i> Operations & Personnel");
- }
- else
- {
- $('#operationsPersonnelLink').html("Operations & Personnel");
- }
- $data = CKEDITOR.instances.businessIssues.getData();
- if($data != "")
- {
- $('#businessIssuesLink').html("<i class=\"fi-check\"></i> Business Issues");
- }
- else
- {
- $('#businessIssuesLink').html("Business Issues");
- }
- $data = CKEDITOR.instances.libraryStaff.getData();
- if($data != "")
- {
- $('#libraryStaffLink').html("<i class=\"fi-check\"></i> Library Staff");
- }
- else
- {
- $('#libraryStaffLink').html("Library Staff");
- }
- $data = CKEDITOR.instances.libraryDirector.getData();
- if($data != "")
- {
- $('#libraryDirectorLink').html("<i class=\"fi-check\"></i> Library Director");
- }
- else
- {
- $('#libraryDirectorLink').html("Library Director");
- }
- $data = CKEDITOR.instances.publicComment.getData();
- if($data != "")
- {
- $('#publicCommentLink').html("<i class=\"fi-check\"></i> Public Comment");
- }
- else
- {
- $('#publicCommentLink').html("Public Comment");
- }
- $data = CKEDITOR.instances.additionalComments.getData();
- if($data != "")
- {
- $('#additionalCommentsLink').html("<i class=\"fi-check\"></i> Additional Comments");
- }
- else
- {
- $('#additionalCommentsLink').html("Additional Comments");
- }
- });
|