- Added confirmation dialog for contact group deleting + loading indicator
| | |
| | | |
| | | this.group_delete = function() |
| | | { |
| | | if (this.env.group) |
| | | this.http_post('group-delete', '_source='+urlencode(this.env.source)+'&_gid='+urlencode(this.env.group), true); |
| | | if (this.env.group && confirm(this.get_label('deletegroupconfirm'))) { |
| | | var lock = this.set_busy(true, 'groupdeleting'); |
| | | this.http_post('group-delete', '_source='+urlencode(this.env.source)+'&_gid='+urlencode(this.env.group), lock); |
| | | } |
| | | }; |
| | | |
| | | // callback from server upon group-delete command |
| | |
| | | $messages['errorcopying'] = 'Could not copy the message(s).'; |
| | | $messages['errordeleting'] = 'Could not delete the message(s).'; |
| | | $messages['errormarking'] = 'Could not mark the message(s).'; |
| | | $messages['deletecontactconfirm'] = 'Do you really want to delete the selected contact(s)?'; |
| | | $messages['deletemessagesconfirm'] = 'Do you really want to delete the selected message(s)?'; |
| | | $messages['deletecontactconfirm'] = 'Do you really want to delete selected contact(s)?'; |
| | | $messages['deletegroupconfirm'] = 'Do you really want to delete selected group?'; |
| | | $messages['deletemessagesconfirm'] = 'Do you really want to delete selected message(s)?'; |
| | | $messages['deletefolderconfirm'] = 'Do you really want to delete this folder?'; |
| | | $messages['purgefolderconfirm'] = 'Do you really want to delete all messages in this folder?'; |
| | | $messages['groupdeleting'] = 'Deleting group...'; |
| | | $messages['folderdeleting'] = 'Deleting folder...'; |
| | | $messages['foldermoving'] = 'Moving folder...'; |
| | | $messages['foldersubscribing'] = 'Subscribing folder...'; |
| | |
| | | $messages['errordeleting'] = 'Nie można usunąć wiadomości!'; |
| | | $messages['errormarking'] = 'Nie można oznaczyć wiadomości!'; |
| | | $messages['deletecontactconfirm'] = 'Czy na pewno chcesz usunąć wybrane kontakty?'; |
| | | $messages['deletegroupconfirm'] = 'Czy na pewno chcesz usunąć wybraną grupę?'; |
| | | $messages['deletemessagesconfirm'] = 'Czy na pewno chcesz usunąć wybrane wiadomości?'; |
| | | $messages['deletefolderconfirm'] = 'Czy na pewno chcesz usunąć wybrany folder?'; |
| | | $messages['purgefolderconfirm'] = 'Czy na pewno chcesz usunąć wszystkie wiadomości w tym folderze?'; |
| | | $messages['groupdeleting'] = 'Usuwanie grupy...'; |
| | | $messages['folderdeleting'] = 'Usuwanie folderu...'; |
| | | $messages['foldermoving'] = 'Przenoszenie folderu...'; |
| | | $messages['formincomplete'] = 'Uzupełnij formularz!'; |
| | |
| | | |
| | | $OUTPUT->set_env('contactgroups', $jsdata); |
| | | $OUTPUT->add_gui_object('folderlist', $attrib['id']); |
| | | // add some labels to client |
| | | $OUTPUT->add_label('deletegroupconfirm', 'groupdeleting'); |
| | | |
| | | return html::tag('ul', $attrib, $out, html::$common_attrib); |
| | | } |