removed some messages from messages.inc.php (validation, some other error messages)

User preferences:
added translations and values for some fields
validation for DefaultPropDisplay
This commit is contained in:
Crack
2010-06-13 15:01:37 +02:00
parent 2e1fd2677f
commit a90b0a21f2
12 changed files with 115 additions and 73 deletions

View File

@@ -200,6 +200,18 @@ var validators = {
}
return result;
},
/**
* DefaultPropDisplay validator
*
* @param {boolean} isKeyUp
*/
validate_DefaultPropDisplay: function(isKeyUp) {
if (isKeyUp && this.value == '') {
return true;
}
var valid = this.value.match(/^(?:horizontal|vertical|[0-9]+)$/) != null;
return valid ? true : PMA_messages['error_invalid_value']
},
// field validators
_field: {
},