diff --git a/src/definitions/behaviors/api.js b/src/definitions/behaviors/api.js index 190d1852d..6a96c8b0f 100755 --- a/src/definitions/behaviors/api.js +++ b/src/definitions/behaviors/api.js @@ -199,7 +199,7 @@ $.api = $.fn.api = function(parameters) { urlVariables ; if(url) { - urlVariables = url.match(settings.regExpTemplate); + urlVariables = url.match(settings.regExp.required); urlData = urlData || settings.urlData; if(urlVariables) { @@ -473,7 +473,6 @@ $.api = $.fn.api = function(parameters) { }, setting: function(name, value) { - module.debug('Changing setting', name, value); if( $.isPlainObject(name) ) { $.extend(true, settings, name); } @@ -665,7 +664,10 @@ $.api.settings = { // templating action : false, - regExpTemplate : /\{\$([A-z]+)\}/g, + + regExp : { + required: /\{\$([A-z]+)\}/g + }, // data url : false, @@ -702,7 +704,6 @@ $.api.settings = { error : 'There was an error with your request', exitConditions : 'API Request Aborted. Exit conditions met', JSONParse : 'JSON could not be parsed during error handling', - method : 'The method you called is not defined.', missingSerialize : 'Serializing a Form requires toJSON to be included', missingAction : 'API action used but no url was defined', missingParameter : 'Missing an essential URL parameter: ', diff --git a/src/definitions/behaviors/form.js b/src/definitions/behaviors/form.js index 5b0ef0947..80ccd113d 100755 --- a/src/definitions/behaviors/form.js +++ b/src/definitions/behaviors/form.js @@ -158,8 +158,6 @@ $.fn.form = function(fields, parameters) { $field .one('keyup' + eventNamespace, module.event.field.keyup) ; - event.preventDefault(); - return false; } }, keyup: function() { @@ -199,7 +197,7 @@ $.fn.form = function(fields, parameters) { get: { changeEvent: function(type) { - if(type == 'checkbox' || type == 'radio' || type == 'hidden') { + if(type == 'checkbox' || type == 'radio') { return 'change'; } else { @@ -422,7 +420,6 @@ $.fn.form = function(fields, parameters) { }, setting: function(name, value) { - module.debug('Changing setting', name, value); if( $.isPlainObject(name) ) { $.extend(true, settings, name); } @@ -605,7 +602,7 @@ $.fn.form.settings = { name : 'Form', namespace : 'form', - debug : true, + debug : false, verbose : true, performance : true, diff --git a/src/definitions/behaviors/state.js b/src/definitions/behaviors/state.js index d1e1abf8d..505edcedc 100644 --- a/src/definitions/behaviors/state.js +++ b/src/definitions/behaviors/state.js @@ -578,7 +578,7 @@ $.fn.state.settings = { name : 'State', // debug output - debug : true, + debug : false, // verbose debug output verbose : true, diff --git a/src/definitions/behaviors/visibility.js b/src/definitions/behaviors/visibility.js index 4fef7f771..7c1055500 100755 --- a/src/definitions/behaviors/visibility.js +++ b/src/definitions/behaviors/visibility.js @@ -402,7 +402,6 @@ $.fn.visibility = function(parameters) { }, setting: function(name, value) { - module.debug('Changing setting', name, value); if( $.isPlainObject(name) ) { $.extend(true, settings, name); } @@ -582,8 +581,8 @@ $.fn.visibility.settings = { name : 'Visibility', namespace : 'visibility', - verbose : false, debug : false, + verbose : false, performance : true, loadWait : 1000,