Skip to content

Commit

Permalink
fixed datepicker date range
Browse files Browse the repository at this point in the history
  • Loading branch information
rifkegribenes committed Jun 7, 2018
1 parent af7125e commit fa87076
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
21 changes: 21 additions & 0 deletions GCnotes.rtf
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{\rtf1\ansi\ansicpg1252\cocoartf1561\cocoasubrtf400
{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
{\colortbl;\red255\green255\blue255;}
{\*\expandedcolortbl;;}
\margl1440\margr1440\vieww11100\viewh8700\viewkind0
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural\partightenfactor0

\f0\fs24 \cf0 redirect to eventbrite after submission and send record ID\
\
start calendar on today\'92s date\
get rid of \'91my roommate is?\'92 question,
\b test rules and payment formulas
\b0 \
list of check-in dates \'97 get from mo\
list of check-out dates \'97 get from mo\
fix question mark at end of registered service animal, bump checkbox up to same line\
sarah js changes on meals section from basecamp\
add explanation to gender question\
fix lodging exception box (fix wording sarah j will post to basecamp)\
\
}
22 changes: 22 additions & 0 deletions gc2018reg_formstack.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@ function FF_OnAfterRender(){
var gcAttendanceStatus = $("select[name='X2018_General_Council__c.I_will_attend_General_Council_as_a__c'] option:selected").val();
$("#gcAttendanceStatus").text(gcAttendanceStatus);

$(".hasDatepicker").each(function(){
$(this).datepicker("destroy");
$(this).datepicker({
dateFormat: "mm/dd/yyyy",
format: "mm/dd/yyyy",
useCurrent: false,
showClose: true,
minDate: '08/06/2018',
maxDate: '08/12/2018',
});
});
return true;
}

function changeLabels() {
Expand Down Expand Up @@ -50,6 +62,16 @@ function getNumericVal(actualValue, defaultValue) {
return returnValue;
}

$('#X2018_General_Council__c.Lodging_Check_in_Date__c').focus(function() {
$.datepicker({
format: 'YYYY-MM-DD',
useCurrent: false,
showClose: true,
minDate: '2018-08-06',
maxDate: '2018-08-12',
})
})

function itemize(lodgedays, adultMeals, childMeals) {
$('#genlodgingdays').text(lodgedays);
$('#genadultmeals').text(adultMeals);
Expand Down

0 comments on commit fa87076

Please sign in to comment.