1003395 User window error Failed to process script. Add try .. catch block. IDEMPIERE-1493

This commit is contained in:
Heng Sin Low 2013-10-28 15:45:09 +08:00
parent e9569318d7
commit 033d138181
1 changed files with 1 additions and 1 deletions

View File

@ -974,7 +974,7 @@ public class WSearchEditor extends WEditor implements ContextMenuListener, Value
public void onPageAttached(Page newpage, Page oldpage) {
super.onPageAttached(newpage, oldpage);
if (newpage != null) {
String w = "var btn=jq('#'+this.parent.uuid+' @button').zk.$();";
String w = "try{var btn=jq('#'+this.parent.uuid+' @button').zk.$();}catch(err){}";
getTextbox().setWidgetListener("onChange", "try{"+w+"btn.setImage(\""
+ Executions.getCurrent().encodeURL(IN_PROGRESS_IMAGE)+"\");"
+ "btn.setDisabled(true, {adbs: false, skip: false});}catch(err){}");