Sha256: 9313f1b778828f709c08469059a421ecc88fedbc2715d44ad27a025992db41c8

Contents?: true

Size: 701 Bytes

Versions: 9

Compression:

Stored size: 701 Bytes

Contents

{
    // copied from basepack grid's onEditInForm
    netzkeOnDupInForm: function(){
        var selModel = this.getSelectionModel();
        var recordId = selModel.selected.first().getId();
        this.netzkeLoadComponent("edit_window", {
            title: "Duplicate in Form",
            serverConfig: {record_id: recordId},
            callback: function(w){
                w.show();
                var form = w.items.first();
                form.baseParams = {dup: true};
                w.on('close', function(){
                    if (w.closeRes === "ok") {
                        this.store.load();
                    }
                }, this);
            }, scope: this});
    }
}

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
marty-1.2.9 app/components/marty/mcfly_grid_panel/client/dup_in_form.js
marty-1.2.8 app/components/marty/mcfly_grid_panel/client/dup_in_form.js
marty-1.2.7 app/components/marty/mcfly_grid_panel/client/dup_in_form.js
marty-1.2.6 app/components/marty/mcfly_grid_panel/client/dup_in_form.js
marty-1.2.5 app/components/marty/mcfly_grid_panel/client/dup_in_form.js
marty-1.2.4 app/components/marty/mcfly_grid_panel/client/dup_in_form.js
marty-1.2.3 app/components/marty/mcfly_grid_panel/client/dup_in_form.js
marty-1.2.2 app/components/marty/mcfly_grid_panel/client/dup_in_form.js
marty-1.2.1 app/components/marty/mcfly_grid_panel/client/dup_in_form.js