+ $("#check_previously_used").val("1");
+ save();
+ }
+
+ function show_loginname_previously_used_dialog() {
+ var buttons = {};
+ buttons[kivi.t8('Yes')] = function() {
+ $("#check_previously_used").val("0");
+ $("#assign_documents").val("1");
+ save();
+ };
+ buttons[kivi.t8('No')] = function() {
+ $("#check_previously_used").val("0");
+ save();
+ };
+ buttons[kivi.t8('Cancel')] = function() { $( this ).dialog('close'); };
+
+ kivi.popup_dialog({
+ id: 'loginname_previously_used_dialog',
+ html: kivi.t8('The login name you entered was previously used. Do you want to assign documents from the former user that had the same username to the new user?'),
+ dialog: {
+ title: kivi.t8('Login name was previously used'),
+ width: 400,
+ height: 250,
+ buttons: buttons
+ }
+ });