Fixed bug in interaction with autocomplete help text and other changes on the trunk
This commit is contained in:
parent
f54cbe5b92
commit
1b45d59529
1 changed files with 4 additions and 3 deletions
|
@ -461,11 +461,12 @@ var customForm = {
|
||||||
return this.acType ? this.typeName : this.capitalize(this.defaultTypeName);
|
return this.acType ? this.typeName : this.capitalize(this.defaultTypeName);
|
||||||
},
|
},
|
||||||
|
|
||||||
// Set the intial help text that appears in the autocomplete field and change the class name
|
// Set the initial help text that appears in the autocomplete field and change the class name
|
||||||
addAcHelpText: function() {
|
addAcHelpText: function() {
|
||||||
var typeText;
|
var typeText;
|
||||||
|
|
||||||
if (!this.acSelector.val()) {
|
// First case applies on page load; second case applies when the type gets changed.
|
||||||
|
if (!this.acSelector.val() || this.acSelector.hasClass(this.acHelpTextClass)) {
|
||||||
typeText = this.getTypeNameForLabels();
|
typeText = this.getTypeNameForLabels();
|
||||||
this.acSelector.val("Select an existing " + typeText + " or create a new one.")
|
this.acSelector.val("Select an existing " + typeText + " or create a new one.")
|
||||||
.addClass(this.acHelpTextClass);
|
.addClass(this.acHelpTextClass);
|
||||||
|
|
Loading…
Add table
Reference in a new issue