- {
- xtype: 'Button',
- xns: Roo.Toolbar,
- listeners : {
- click : function()
- {
-
- // if we do not have a selected type... - what should we show..?
- var et = _this.etypeCombo.getValue();
-
- if (!et) {
- Roo.MessageBox.alert("Error", "Select a pulldown");
- return;
- }
- var sc = _this.grid.getSelectionModel().getSelectedCell();
- Roo.log(sc);
- var ds = _this.grid.ds.getAt(sc[0]);
- if (!ds) {
- Roo.MessageBox.alert("Error", "Select enum");
- return;
- }
-
- Roo.log(ds);
- Pman.Dialog.AdminEnumImages.show({onid:ds.data.id}, function(){
- _this.grid.footer.onClick('first');
- });
-
- }
- },
- cls : 'x-btn-text-icon',
- text : "Add Images",
- icon : Roo.rootURL + 'images/default/dd/drop-add.gif'
- },