/// class PD.Manage.Modules.Resources.UploadZipDialog
// using PD.Web.UI.SingleUploadDialog

PD.Manage.Modules.Resources.UploadZipDialog =
PD.Web.UI.SingleUploadDialog.extend({

    //===================================
    // CONSTRUCTOR
    //===================================

    init: function (options) {

        this._super($.extend(true, {
            config: {
                resizable: false,
                height: "130px",
                width: "400px",
                title: "Upload Zip Package"
            }
        }, options));

    },

    //===================================
    // PRIVATE METHODS
    //===================================

    executePostUploadAction: function (e) {

        var folderId = this.get_options().data.currentFolderId,
            uploadId = e[0].target_name;

        this.close({
            command: "ok",
            data: {
                uploadId: uploadId,
                folderId: folderId
            }
        });

    }

});

PD.Manage.Modules.Resources.UploadZipDialog.open = function (options) {
    return new PD.Manage.Modules.Resources.UploadZipDialog(options);
};