webdav portal multiselect + delete ability added
This commit is contained in:
parent
c16a9a6c66
commit
29747087ff
38 changed files with 964 additions and 66 deletions
|
@ -1,20 +1,79 @@
|
|||
var processDialog;
|
||||
processDialog = processDialog || (function () {
|
||||
var processDialogDiv = $('#processDialog');
|
||||
function WspDialogs() {
|
||||
this.settings = { dialogId: "#confirm-dialog", processDialogId: "#processDialog" };
|
||||
}
|
||||
|
||||
WspDialogs.prototype =
|
||||
{
|
||||
showConfirmDialog: function(title, content, positiveButton, positiveClickFunction, dialogId) {
|
||||
dialogId = dialogId || this.settings.dialogId;
|
||||
|
||||
//title replace
|
||||
if (title) {
|
||||
$(dialogId).find('.modal-title').empty();
|
||||
$(dialogId).find('.modal-title').text(title);
|
||||
}
|
||||
|
||||
//body replace
|
||||
$(dialogId).find('.modal-body').empty();
|
||||
$(dialogId).find('.modal-body').html(content);
|
||||
|
||||
//title replace
|
||||
if (positiveButton) {
|
||||
$(dialogId).find('.modal-footer .positive-button').empty();
|
||||
$(dialogId).find('.modal-footer .positive-button').text(positiveButton);
|
||||
}
|
||||
|
||||
//binding click event
|
||||
$(dialogId).find('.modal-footer .positive-button').unbind('click');
|
||||
$(dialogId).find('.modal-footer .positive-button').click(positiveClickFunction);
|
||||
|
||||
$(dialogId).modal();
|
||||
},
|
||||
|
||||
showProcessDialog: function() {
|
||||
$(this.settings.processDialogId).modal();
|
||||
},
|
||||
|
||||
hideProcessDialog: function() {
|
||||
$(this.settings.processDialogId).modal('hide');
|
||||
}
|
||||
};
|
||||
|
||||
/*
|
||||
wsp.dialogs = wsp.dialogs || (function () {
|
||||
var settings = { dialogId: "#confirm-dialog" };
|
||||
|
||||
return {
|
||||
showPleaseWait: function () {
|
||||
settings: settings,
|
||||
|
||||
showConfirmDialog : function (title, content, positiveButton, positiveClickFunction, dialogId) {
|
||||
dialogId = dialogId || this.settings.dialogId;
|
||||
|
||||
//title replace
|
||||
if (title) {
|
||||
$(dialogId).find('.modal-title').empty();
|
||||
$(dialogId).find('.modal-title').text(title);
|
||||
}
|
||||
|
||||
//body replace
|
||||
$(dialogId).find('.modal-body').empty();
|
||||
$(dialogId).find('.modal-body').html(content);
|
||||
|
||||
//title replace
|
||||
if (positiveButton) {
|
||||
$(dialogId).find('.modal-footer .positive-button').empty();
|
||||
$(dialogId).find('.modal-footer .positive-button').text(positiveButton);
|
||||
}
|
||||
|
||||
//binding click event
|
||||
$(dialogId).find('.modal-footer .positive-button').unbind('click');
|
||||
$(dialogId).find('.modal-footer .positive-button').click(positiveClickFunction);
|
||||
|
||||
$(dialogId).modal();
|
||||
},
|
||||
|
||||
showProcessDialog: function () {
|
||||
$('#processDialog').modal();
|
||||
},
|
||||
hidePleaseWait: function () {
|
||||
$('#processDialog').modal('hide');
|
||||
},
|
||||
|
||||
}
|
||||
};
|
||||
})();
|
||||
|
||||
|
||||
$(document).ready(function() {
|
||||
$('.processing-dialog').click(function () {
|
||||
processDialog.showPleaseWait();
|
||||
});
|
||||
});
|
||||
})();*/
|
Loading…
Add table
Add a link
Reference in a new issue