mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-17 11:05:03 +02:00
fixed initVal
This commit is contained in:
@@ -72,6 +72,8 @@ Ext.ux.Multiselect = Ext.extend(Ext.form.Field, {
|
||||
data : this.data
|
||||
});
|
||||
}
|
||||
|
||||
this.store.on('load', this.onStoreLoad, this);
|
||||
|
||||
this.view = new Ext.ux.DDView({
|
||||
multiSelect: true, store: this.store, selectedClass: cls+"-selected", tpl:tpl,
|
||||
@@ -95,16 +97,20 @@ Ext.ux.Multiselect = Ext.extend(Ext.form.Field, {
|
||||
} else {
|
||||
this.hiddenField = Ext.get(document.body).createChild(hiddenTag);
|
||||
}
|
||||
|
||||
fs.doLayout();
|
||||
},
|
||||
|
||||
initValue:Ext.emptyFn,
|
||||
|
||||
onStoreLoad: function() {
|
||||
if (this.initVal != null)
|
||||
{
|
||||
this.setValue(this.initVal);
|
||||
this.initVal = null;
|
||||
}
|
||||
fs.doLayout();
|
||||
},
|
||||
|
||||
initValue:Ext.emptyFn,
|
||||
|
||||
onViewClick: function(vw, index, node, e) {
|
||||
var arrayIndex = this.preClickSelections.indexOf(index);
|
||||
if (arrayIndex != -1)
|
||||
|
@@ -1117,6 +1117,7 @@ void ExtJSTest::testListBox()
|
||||
ptrList->insert(std::string("FirstSelected"), true);
|
||||
ptrList->insert(std::string("Second"), false);
|
||||
ptrList->insert(std::string("SecondSelected"), true);
|
||||
ptrList->rowSelected.setServerCallback(Poco::WebWidgets::SC_YES);
|
||||
|
||||
std::ostringstream ostr;
|
||||
std::ofstream fstr("testListBox.html");
|
||||
|
Reference in New Issue
Block a user