From: <ste...@us...> - 2008-11-18 15:01:26
|
Revision: 4198 http://j-wings.svn.sourceforge.net/j-wings/?rev=4198&view=rev Author: stephanschuster Date: 2008-11-18 15:01:21 +0000 (Tue, 18 Nov 2008) Log Message: ----------- o removed superfluous code in CG of XSuggest - no need to attach separate onchange-listener Modified Paths: -------------- wings3/trunk/wingx/src/java/org/wingx/plaf/css/SuggestCG.java Modified: wings3/trunk/wingx/src/java/org/wingx/plaf/css/SuggestCG.java =================================================================== --- wings3/trunk/wingx/src/java/org/wingx/plaf/css/SuggestCG.java 2008-11-18 13:06:34 UTC (rev 4197) +++ wings3/trunk/wingx/src/java/org/wingx/plaf/css/SuggestCG.java 2008-11-18 15:01:21 UTC (rev 4198) @@ -80,12 +80,6 @@ isFirst = appendConfigPropery(builder, "allowBrowserAutocomplete", xSuggest.isAllowBrowserAutocomplete(), true, isFirst); isFirst = appendConfigPropery(builder, "alwaysShowContainer", xSuggest.isAlwaysShowContainer(), false, isFirst); builder.append("});\n"); - - if (textField.getDocumentListeners().length > 1 || textField instanceof SFormattedTextField) { - builder.append("var xs_onchange_").append(name); - builder.append(" = function() { wingS.request.sendEvent(null, true, ").append(!xSuggest.isReloadForced()).append("); };\n"); - builder.append("xs_").append(name).append(".textboxBlurEvent.subscribe(xs_onchange_").append(name).append(");\n"); - } ScriptManager.getInstance().addScriptListener(new OnHeadersLoadedScript(builder.toString())); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |