프로그래밍/ExtJS

Ajax request 로 form 값 넘길때 emptyText가 그냥 넘어갈 때, 처리법

꿈을드림 2011. 12. 4. 21:06
Ext.getCmp('add_module_form').items.each(function(f) { 
					        if (f.el.getValue() == f.emptyText) { 
					            f.el.dom.value = ''; 
					        } 
    				}); 

Extjs 3.2 이상에서 submit 액션에 submitEmptyText : true 가 걸려서 submit 에선 공백으로 가버린다.