cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r730003 - /cocoon/branches/BRANCH_2_1_X/src/blocks/forms/resources/org/apache/cocoon/forms/resources/js/MultiValueEditorWithSuggestion.js
Date Mon, 29 Dec 2008 22:02:34 GMT
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();
         }
     }
 );



Mime
View raw message