Skip to content
Snippets Groups Projects
Commit 573ddf37 authored by Renaud Le Gac's avatar Renaud Le Gac
Browse files

Add a stemplate script ot test combobox.

parent fa4d7aab
No related branches found
No related tags found
No related merge requests found
/**
* combo_1.js
*
* To test and debug combo widget and associated store.
*
* $Id$
*
*/
Ext.namespace('App.combo');
/**
* main function
* The scope, this, contains the models return by the server
*/
var main = function(){
// var model = this.form.distributions;
var model = this.form.rpms;
console.log("Model items");
console.dir(model.items);
};
Ext.onReady(function(){
Ext.QuickTips.init();
// Request widget models from the server
// It is strongly relate'd to the database model
var models = new App.Cfg({
url: App.cfgurl,
});
// The response of the server is asynchronous.
// When the model is load launch the main function
models.on('cfgloaded', main, models);
//request the models from the server
models.load({
debug: App.debug,
exclude: ["systemsAddRpms", "systemsRemoveRpms"],
})
});
\ No newline at end of file
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