%PDF- %PDF-
| Direktori : /data/old/home/stash/atlassian-stash/static/page/admin/groups/ |
| Current File : //data/old/home/stash/atlassian-stash/static/page/admin/groups/groupedit.js |
define('page/admin/groupEdit', [
'jquery',
'util/flash-notifications',
'util/navbuilder',
'widget/delete-dialog',
'feature/user/group-users-table',
'exports'
], function(
$,
flashNotifications,
navBuilder,
DeleteDialog,
GroupUsersTable,
exports) {
exports.onReady = function (readOnly, groupUsersTableSelector, deleteLinkSelector) {
// dialog to confirm the deletion of the group
DeleteDialog.bind(deleteLinkSelector,
AJS.I18n.getText('stash.web.groups.delete'),
AJS.I18n.getText('stash.web.groups.delete.success'),
AJS.I18n.getText('stash.web.groups.delete.fail'),
function(name) {
flashNotifications.addNotification(AJS.I18n.getText('stash.web.groups.delete.success', name));
window.location = navBuilder.admin().groups().build();
return false; // don't notify on view page, wait for page-pop
}, function() {
return $('#group-name').text();
});
// list of users in the group
var usersTable = new GroupUsersTable({
target: groupUsersTableSelector
});
usersTable.init();
};
});