You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by an...@apache.org on 2008/12/29 23:02:34 UTC
svn commit: r730003 -
/cocoon/branches/BRANCH_2_1_X/src/blocks/forms/resources/org/apache/cocoon/forms/resources/js/MultiValueEditorWithSuggestion.js
Author: antonio
Date: Mon Dec 29 14:02:34 2008
New Revision: 730003
URL: http://svn.apache.org/viewvc?rev=730003&view=rev
Log:
Enable onchange event callback.
Modified:
cocoon/branches/BRANCH_2_1_X/src/blocks/forms/resources/org/apache/cocoon/forms/resources/js/MultiValueEditorWithSuggestion.js
Modified: cocoon/branches/BRANCH_2_1_X/src/blocks/forms/resources/org/apache/cocoon/forms/resources/js/MultiValueEditorWithSuggestion.js
URL: http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/src/blocks/forms/resources/org/apache/cocoon/forms/resources/js/MultiValueEditorWithSuggestion.js?rev=730003&r1=730002&r2=730003&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/blocks/forms/resources/org/apache/cocoon/forms/resources/js/MultiValueEditorWithSuggestion.js (original)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/forms/resources/org/apache/cocoon/forms/resources/js/MultiValueEditorWithSuggestion.js Mon Dec 29 14:02:34 2008
@@ -40,7 +40,6 @@
popupUri: "",
popupSize: "",
popupLinkText: "",
- resourcesUri: cocoon.resourcesUri,
templatePath: cocoon.resourcesUri + "/forms/js/templates/MultiValueEditorWithSuggestion.html",
_setUpDataUrl: function() {
@@ -109,6 +108,8 @@
dojo.event.browser.stopEvent(event);
this.entry.setValue("");
this.entry.setSelectedValue("");
+ this._selectAll();
+ this.select.onchange();
break;
}
},
@@ -171,6 +172,12 @@
this.popupWindow.setUrl(this.popupUri);
}
this.popupWindow.showPopup(this.linkButton.id);
+ },
+
+ _deleteValues: function(event) {
+ cocoon.forms.MultiValueEditorWithSuggestion.superclass._deleteValues.call(this, event);
+ this._selectAll();
+ this.select.onchange();
}
}
);