0

私は gridpanel を持っており、各行のボタンには次のようなハンドラーがあります (chooser.js を使用)

http://dev.sencha.com/deploy/ext-3.4.0/examples/view/chooser.html

HTMLボタンで:

function deleteImage(data){
   window.open("http://host/delete_file.php?file="+data.url,"_self");
};

function choose(btn){
    if(!chooser){
            chooser = new ImageChooser({
                    url:'http://host/get-images.php?path='+r.get('dtp'),
                    width:600,
                    height:350
            });
    }
    chooser.show(btn.getEl(), deleteImage);
};
                                            btn = new Ext.Button({
                                                             renderTo: id2,
                                                             text: 'Удалить',
                                                             width: 75,
                                                             handler: choose
                                            });

ウィンドウ(画像付き)をキャンセルして別の行で開くと、最初のウィンドウを最初の画像(新しい行からではない)で開きます。

chooser.js のキャンセル ボタン:

                            {
                                    text: 'Cancel',
                                    handler: function(){ this.win.hide();},
                                    scope: this
                            }

近くない。

新しいウィンドウの更新コンテンツ(新しい行の画像)を開いた後はどうですか?

4

1 に答える 1