Using jQuery.extend to mix in customFormUtils methods, instead of borrowMethods in utils.js. Utils.js no longer needs to be loaded into the custom forms.

This commit is contained in:
rjy7 2010-07-12 16:17:16 +00:00
parent b2dc8f0060
commit 9366d80151
5 changed files with 2 additions and 5 deletions

View file

@ -12,7 +12,7 @@ var addAuthorForm = {
mixIn: function() {
// Mix in the custom form utility methods
vitro.utils.borrowMethods(vitro.customFormUtils, this);
$.extend(this, vitro.customFormUtils);
// Get the custom form data from the page
$.extend(this, customFormData);

View file

@ -12,7 +12,7 @@ var customForm = {
mixIn: function() {
// Mix in the custom form utility methods
vitro.utils.borrowMethods(vitro.customFormUtils, this);
$.extend(this, vitro.customFormUtils);
// Get the custom form data from the page
$.extend(this, customFormData);