Merge r1010 r1018:1023 from http://svn.mannlib.cornell.edu/svn/vivo/branches/rel-1.1-maint
This commit is contained in:
parent
1dafec9142
commit
cb15494b95
5 changed files with 48 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue