Skip to content
Snippets Groups Projects
Commit 475528d1 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Bug fix to avoid pop up window on the top left and proper initialisation

of the master store
parent 8b3ba810
No related branches found
No related tags found
No related merge requests found
......@@ -52,15 +52,11 @@ App.form.LinkedComboBox = Ext.extend(Ext.form.ComboBox, {
fields: [this.displayField, this.valueField]
});
if (!this.masterStore.getTotalCount()) {
this.masterStore.load({
callback: this.loadMasterData,
scope: this
});
} else {
this.loadMasterData();
}
this.masterStore.restoreWhere()
this.masterStore.load({
callback: this.loadMasterData,
scope: this
});
}
// prepare the store for the slave role
......@@ -118,9 +114,14 @@ App.form.LinkedComboBox = Ext.extend(Ext.form.ComboBox, {
// To fix this issue, the code mimic the click by a user
// on the slave combobox and then it works !!!
//
// In some case a window on the top left appears with
// the content of the combobox.
// The line combo.hasFocus is a protection against this case.
//
function initialise(combo) {
combo.onTriggerClick();
combo.hasFocus = false;
combo.collapse();
combo.reset();
combo.disable();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment