/*
 * DEXTUploadX5 - event functions
 * http://www.dextsolution.com
 *
 * Copyright ⓒ DEXTSolution Inc.
 */
window.onDX5_H5_Created = function (evt) { if (window.onDX5Created) window.onDX5Created(evt.id); }; window.onDX5_H5_ItemSelect = function (evt) { if (window.onDX5ItemSelect) window.onDX5ItemSelect(evt.id, evt.itemIndex, evt.itemId, evt.itemType); }; window.onDX5_H5_ItemCheck = function (evt) { if (window.onDX5ItemCheck) window.onDX5ItemCheck(evt.id, evt.count); }; window.onDX5_H5_ItemDoubleClick = function (evt) { if (window.onDX5ItemDoubleClick) window.onDX5ItemDoubleClick(evt.id, evt.itemIndex, evt.itemId, evt.itemType); };
window.onDX5_H5_BeforeItemsAdd = function (evt) { if (window.onDX5BeforeItemsAdd) { var ret = window.onDX5BeforeItemsAdd(evt.id, evt.count); if (ret === false) evt.preventDefault(); } }; window.onDX5_H5_ItemAdding = function (evt) { if (window.onDX5ItemAdding) { var ret = window.onDX5ItemAdding(evt.id, evt.file); if (ret === false) evt.preventDefault(); } }; window.onDX5_H5_ItemsAdded = function (evt) { if (window.onDX5ItemsAdded) window.onDX5ItemsAdded(evt.id, evt.count); }; window.onDX5_H5_BeforeItemsDelete = function (evt) { if (window.onDX5BeforeItemsDelete) {
var ret = window.onDX5BeforeItemsDelete(evt.id, evt.arr); if (ret === false) evt.preventDefault(); } }; window.onDX5_H5_ItemDeleting = function (evt) { if (window.onDX5ItemDeleting) { var ret = window.onDX5ItemDeleting(evt.id, evt.itemId); if (ret === false) evt.preventDefault(); } }; window.onDX5_H5_ItemsDeleted = function (evt) { if (window.onDX5ItemsDeleted) window.onDX5ItemsDeleted(evt.id, evt.count); }; window.onDX5_H5_UploadBegin = function (evt) { var dx = window.dx5.get(evt.id); if (window.onDX5UploadBegin) window.onDX5UploadBegin(evt.id);  if (dx.isUsingProgressDialog() === true) {
window.dx5.popupManager.up[dx.getProgressType()].show(evt.id); } }; window.onDX5_H5_UploadItemStart = function (evt) { if (window.onDX5UploadItemStart) window.onDX5UploadItemStart(evt.id, evt.itemId); }; window.onDX5_H5_UploadItemEnd = function (evt) { if (window.onDX5UploadItemEnd) window.onDX5UploadItemEnd(evt.id, evt.itemId); }; window.onDX5_H5_UploadCompleted = function (evt) { var dx = window.dx5.get(evt.id); if (dx.isUsingProgressDialog() === true) { window.dx5.popupManager.up[dx.getProgressType()].hide(evt.id, false, function () { if (window.onDX5UploadCompleted) window.onDX5UploadCompleted(evt.id);
}); } else { if (window.onDX5UploadCompleted) window.onDX5UploadCompleted(evt.id); } }; window.onDX5_H5_UploadStopped = function (evt) { var dx = window.dx5.get(evt.id); if (dx.isUsingProgressDialog() === true) { window.dx5.popupManager.up[dx.getProgressType()].hide(evt.id, true); } if (window.onDX5UploadStopped) window.onDX5UploadStopped(evt.id); }; window.onDX5_H5_DownloadBegin = function (evt) { var dx = window.dx5.get(evt.id); if (window.onDX5DownloadBegin) window.onDX5DownloadBegin(evt.id); if (dx.isUsingProgressDialog() === true) {
window.dx5.popupManager.dn[dx.getProgressType()].show(evt.id); } }; window.onDX5_H5_DownloadItemStart = function (evt) { if (window.onDX5DownloadItemStart) window.onDX5DownloadItemStart(evt.id, evt.itemId); }; window.onDX5_H5_DownloadItemEnd = function (evt) { if (window.onDX5DownloadItemEnd) window.onDX5DownloadItemEnd(evt.id, evt.itemId); }; window.onDX5_H5_DownloadCompleted = function (evt) { var dx = window.dx5.get(evt.id); if (dx.isUsingProgressDialog() === true) { window.dx5.popupManager.dn[dx.getProgressType()].hide(evt.id, false, function () { if (window.onDX5DownloadCompleted) window.onDX5DownloadCompleted(evt.id);
}); } else { if (window.onDX5DownloadCompleted) window.onDX5DownloadCompleted(evt.id); } }; window.onDX5_H5_DownloadStopped = function (evt) { var dx = window.dx5.get(evt.id); if (dx.isUsingProgressDialog() === true) { window.dx5.popupManager.dn[dx.getProgressType()].hide(evt.id, true); } if (window.onDX5DownloadStopped) window.onDX5DownloadStopped(evt.id); }; window.onDX5_H5_Preview = function (evt) { if (evt.method == 1 && evt.itemSource) { window.dx5.popupManager.pv.show(evt.itemSource, evt.backColor); } else if (evt.method == 2 && window.onDX5Preview) {
window.onDX5Preview(evt.id, evt.itemIndex, evt.itemId, evt.itemSource); } }; window.onDX5_H5_CompressWaitingBegin = function (evt) { if (window.onDX5CompressWaitingBegin) window.onDX5CompressWaitingBegin(evt.id); if (window.dx5.get(evt.id).isUsingProgressDialog() === true) { window.dx5.popupManager.cp.show(evt.id); } }; window.onDX5_H5_CompressWaitingCompleted = function (evt) { if (window.dx5.get(evt.id).isUsingProgressDialog() === true) { window.dx5.popupManager.cp.hide(evt.id, false, function () { if (window.onDX5CompressWaitingCompleted) window.onDX5CompressWaitingCompleted(evt.id);
}); } else { if (window.onDX5CompressWaitingCompleted) window.onDX5CompressWaitingCompleted(evt.id); } }; window.onDX5_H5_CompressWaitingStopped = function (evt) { if (window.dx5.get(evt.id).isUsingProgressDialog() === true) { window.dx5.popupManager.cp.hide(evt.id, true); } if (window.onDX5CompressWaitingStopped) window.onDX5CompressWaitingStopped(evt.id); }; window.onDX5_H5_DragAndDrop = function (evt) { if (window.onDX5DragAndDrop) window.onDX5DragAndDrop(evt.id); }; window.onDX5_H5_DownloadToHDForSingle = function (evt) { var dx = window.dx5.get(evt.id);
if (dx) { dx.downloadByIdToHD(evt.itemId); } }; window.onDX5_H5_ColumnDataBinding = function (evt) { if (window.onDX5ColumnDataBinding) {   var ret = window.onDX5ColumnDataBinding(evt.id, evt.itemId, evt.columnKey, evt.columnValue);   if (typeof ret == "undefined") evt.preventDefault(); else evt.funcValue = ret; } else evt.preventDefault(); }; 