This commit is contained in:
rjy7 2010-07-22 15:43:18 +00:00
parent 1dafec9142
commit cb15494b95
5 changed files with 48 additions and 2 deletions

View file

@ -5,10 +5,28 @@ var customForm = {
/* *** Initial page setup *** */
onLoad: function() {
if (this.disableFormInUnsupportedBrowsers()) {
return;
}
this.mixIn();
this.initObjects();
this.initPage();
},
disableFormInUnsupportedBrowsers: function() {
this.disableWrapper = $('#ie67DisableWrapper');
// Check for unsupported browsers only if the element exists on the page
if (this.disableWrapper.length) {
if (vitro.browserUtils.isIELessThan8()) {
this.disableWrapper.show();
$('form.noIE67').hide();
return true;
}
}
return false;
},
mixIn: function() {
// Mix in the custom form utility methods
@ -74,6 +92,8 @@ var customForm = {
} else {
this.formSteps = 2;
}
// RY This should probably be done from initFormFullView, since there
// are not two form steps in this case.
if( this.editMode == 'repair')
this.formSteps = 2;