From a1a529688ae74069c1a6c7eb15e779b3f564cb94 Mon Sep 17 00:00:00 2001 From: Philipp Wolfer Date: Thu, 6 Aug 2009 12:52:30 +0200 Subject: [PATCH] Fixed InPlaceCollectionEditor ignoring the submitOnBlur option. --- src/controls.js | 2 ++ 1 file changed, 2 insertions(+) mode change 100644 => 100755 src/controls.js diff --git a/src/controls.js b/src/controls.js old mode 100644 new mode 100755 index b09c93b..ab601c2 --- a/src/controls.js +++ b/src/controls.js @@ -761,6 +761,8 @@ Ajax.InPlaceCollectionEditor = Class.create(Ajax.InPlaceEditor, { var list = document.createElement('select'); list.name = this.options.paramName; list.size = 1; + if (this.options.submitOnBlur) + list.onblur = this._boundSubmitHandler; this._controls.editor = list; this._collection = this.options.collection || []; if (this.options.loadCollectionURL)