Merge branch 'master' into files_encryption_check_private_key
Conflicts: settings/ajax/changepassword.phpremotes/origin/stable6
commit
13017ce9e1
@ -0,0 +1,4 @@
|
||||
<?php $TRANSLATIONS = array(
|
||||
"Share" => "साझा करें",
|
||||
"Save" => "सहेजें"
|
||||
);
|
||||
@ -1,4 +1,22 @@
|
||||
<?php $TRANSLATIONS = array(
|
||||
"Recovery key successfully enabled" => "La clau de recuperació s'ha activat",
|
||||
"Could not enable recovery key. Please check your recovery key password!" => "No s'ha pogut activar la clau de recuperació. Comproveu contrasenya de la clau de recuperació!",
|
||||
"Recovery key successfully disabled" => "La clau de recuperació s'ha descativat",
|
||||
"Could not disable recovery key. Please check your recovery key password!" => "No s'ha pogut desactivar la calu de recuperació. Comproveu la contrasenya de la clau de recuperació!",
|
||||
"Password successfully changed." => "La contrasenya s'ha canviat.",
|
||||
"Could not change the password. Maybe the old password was not correct." => "No s'ha pogut canviar la contrasenya. Potser la contrasenya anterior no era correcta.",
|
||||
"Saving..." => "Desant...",
|
||||
"Encryption" => "Xifrat"
|
||||
"Encryption" => "Xifrat",
|
||||
"Enable encryption passwords recovery key (allow sharing to recovery key):" => "Activa la clau de recuperació de contrasenya (permet compartir la clau de recuperació):",
|
||||
"Recovery account password" => "Contrasenya de recuperació del compte",
|
||||
"Enabled" => "Activat",
|
||||
"Disabled" => "Desactivat",
|
||||
"Change encryption passwords recovery key:" => "Canvia la clau de recuperació de la contrasenya:",
|
||||
"Old Recovery account password" => "Contrasenya de recuperació anterior",
|
||||
"New Recovery account password" => "Nova contrasenya de recuperació de compte",
|
||||
"Change Password" => "Canvia la contrasenya",
|
||||
"Enable password recovery by sharing all files with your administrator:" => "Activa la recuperació de contrasenya compartint tots els fitxers amb l'administrador:",
|
||||
"Enabling this option will allow you to reobtain access to your encrypted files if your password is lost" => "Activant aquesta opció us permetrà obtenir de nou accés als fitxers encriptats si perdeu la contrasenya",
|
||||
"File recovery settings updated" => "S'han actualitzat els arranjaments de recuperació de fitxers",
|
||||
"Could not update file recovery" => "No s'ha pogut actualitzar la recuperació de fitxers"
|
||||
);
|
||||
|
||||
@ -1,4 +1,22 @@
|
||||
<?php $TRANSLATIONS = array(
|
||||
"Recovery key successfully enabled" => "Záchranný klíč byl úspěšně povolen",
|
||||
"Could not enable recovery key. Please check your recovery key password!" => "Nepodařilo se povolit záchranný klíč. Zkontrolujte prosím vaše heslo záchranného klíče!",
|
||||
"Recovery key successfully disabled" => "Záchranný klíč byl úspěšně zakázán",
|
||||
"Could not disable recovery key. Please check your recovery key password!" => "Nelze zakázat záchranný klíč. Zkontrolujte prosím heslo vašeho záchranného klíče.",
|
||||
"Password successfully changed." => "Heslo bylo úspěšně změněno.",
|
||||
"Could not change the password. Maybe the old password was not correct." => "Nelze změnit heslo. Pravděpodobně nebylo stávající heslo zadáno správně.",
|
||||
"Saving..." => "Ukládám...",
|
||||
"Encryption" => "Šifrování"
|
||||
"Encryption" => "Šifrování",
|
||||
"Enable encryption passwords recovery key (allow sharing to recovery key):" => "Povolit záchranný klíč šifrovacích hesel (povolí sdílený záchranný klíč):",
|
||||
"Recovery account password" => "Heslo pro obnovu účtu",
|
||||
"Enabled" => "Povoleno",
|
||||
"Disabled" => "Zakázáno",
|
||||
"Change encryption passwords recovery key:" => "Změnit záchranný klíč šifrovacích hesel:",
|
||||
"Old Recovery account password" => "Stávající heslo pro obnovu účtu",
|
||||
"New Recovery account password" => "Nové heslo pro obnovu účtu",
|
||||
"Change Password" => "Změnit heslo",
|
||||
"Enable password recovery by sharing all files with your administrator:" => "Povolit obnovu hesla sdílením všech souborů s vaším správcem:",
|
||||
"Enabling this option will allow you to reobtain access to your encrypted files if your password is lost" => "Povolení vám umožní znovu získat přístup k vašim zašifrovaným souborům pokud ztratíte heslo",
|
||||
"File recovery settings updated" => "Možnosti obnovy souborů aktualizovány",
|
||||
"Could not update file recovery" => "Nelze aktualizovat obnovu souborů"
|
||||
);
|
||||
|
||||
@ -1,4 +1,17 @@
|
||||
<?php $TRANSLATIONS = array(
|
||||
"Recovery key successfully enabled" => "Wiederherstellungsschlüssel wurde erfolgreich aktiviert",
|
||||
"Could not enable recovery key. Please check your recovery key password!" => "Der Wiederherstellungsschlüssel konnte nicht aktiviert werden. Überprüfen Sie Ihr Wiederherstellungspasswort!",
|
||||
"Recovery key successfully disabled" => "Wiederherstellungsschlüssel deaktiviert.",
|
||||
"Could not disable recovery key. Please check your recovery key password!" => "Der Wiederherstellungsschlüssel konnte nicht deaktiviert werden. Überprüfen Sie Ihr Wiederherstellungspasswort!",
|
||||
"Password successfully changed." => "Dein Passwort wurde geändert.",
|
||||
"Could not change the password. Maybe the old password was not correct." => "Das Passwort konnte nicht geändert werden. Vielleicht war das alte Passwort falsch.",
|
||||
"Saving..." => "Speichern...",
|
||||
"Encryption" => "Verschlüsselung"
|
||||
"Encryption" => "Verschlüsselung",
|
||||
"Recovery account password" => "Password zurücksetzen",
|
||||
"Enabled" => "Aktiviert",
|
||||
"Disabled" => "Deaktiviert",
|
||||
"Change encryption passwords recovery key:" => "Wiederherstellungsschlüssel für Passwörter ändern:",
|
||||
"Change Password" => "Passwort ändern",
|
||||
"Enabling this option will allow you to reobtain access to your encrypted files if your password is lost" => "Wenn Sie diese Einstellung aktivieren, können Sie auch im Falle des Verlustes Ihres Passworts auf verschlüsselte Dateien zugreifen",
|
||||
"File recovery settings updated" => "Einstellungen zur Wiederherstellung von Dateien wurden aktualisiert"
|
||||
);
|
||||
|
||||
@ -1,9 +1,20 @@
|
||||
<?php $TRANSLATIONS = array(
|
||||
"Recovery key successfully enabled" => "Der Wiederherstellungsschlüssel wurde erfolgreich aktiviert.",
|
||||
"Could not enable recovery key. Please check your recovery key password!" => "Der Wiederherstellungsschlüssel konnte nicht aktiviert werden. Bitte überprüfen Sie das Passwort für den Wiederherstellungsschlüssel!",
|
||||
"Recovery key successfully disabled" => "Der Wiederherstellungsschlüssel wurde erfolgreich deaktiviert.",
|
||||
"Could not disable recovery key. Please check your recovery key password!" => "Der Wiederherstellungsschlüssel konnte nicht deaktiviert werden. Bitte überprüfen Sie das Passwort für den Wiederherstellungsschlüssel!",
|
||||
"Password successfully changed." => "Das Passwort wurde erfolgreich geändert.",
|
||||
"Could not change the password. Maybe the old password was not correct." => "Das Passwort konnte nicht geändert werden. Vielleicht war das alte Passwort nicht richtig.",
|
||||
"Saving..." => "Speichern...",
|
||||
"Encryption" => "Verschlüsselung",
|
||||
"Recovery account password" => "Account-Passwort wiederherstellen",
|
||||
"Enabled" => "Aktiviert",
|
||||
"Disabled" => "Deaktiviert",
|
||||
"Change Password" => "Passwort ändern"
|
||||
"Old Recovery account password" => "Altes Passwort für die Account-Wiederherstellung",
|
||||
"New Recovery account password" => "Neues Passwort für die Account-Wiederherstellung",
|
||||
"Change Password" => "Passwort ändern",
|
||||
"Enable password recovery by sharing all files with your administrator:" => "Aktiviere die Wiederherstellung deines Passwortes durch das Teilen aller Dateien mit dem Administrator:",
|
||||
"Enabling this option will allow you to reobtain access to your encrypted files if your password is lost" => "Durch die Aktivierung dieser Option haben Sie die Möglichkeit, wieder auf Ihre verschlüsselten Dateien zugreifen zu können, wenn Sie Ihr Passwort verloren haben.",
|
||||
"File recovery settings updated" => "Die Einstellungen für die Dateiwiederherstellung wurden aktualisiert.",
|
||||
"Could not update file recovery" => "Die Dateiwiederherstellung konnte nicht aktualisiert werden."
|
||||
);
|
||||
|
||||
@ -1,4 +1,22 @@
|
||||
<?php $TRANSLATIONS = array(
|
||||
"Recovery key successfully enabled" => "Se ha habilitado la recuperación de archivos",
|
||||
"Could not enable recovery key. Please check your recovery key password!" => "No se pudo habilitar la clave de recuperación. Por favor compruebe su contraseña.",
|
||||
"Recovery key successfully disabled" => "Clave de recuperación deshabilitada",
|
||||
"Could not disable recovery key. Please check your recovery key password!" => "No se pudo deshabilitar la clave de recuperación. Por favor compruebe su contraseña!",
|
||||
"Password successfully changed." => "Su contraseña ha sido cambiada",
|
||||
"Could not change the password. Maybe the old password was not correct." => "No se pudo cambiar la contraseña. Compruebe que la contraseña actual sea correcta.",
|
||||
"Saving..." => "Guardando...",
|
||||
"Encryption" => "Cifrado"
|
||||
"Encryption" => "Cifrado",
|
||||
"Enable encryption passwords recovery key (allow sharing to recovery key):" => "Habilitar clave de recuperación de contraseñas ():",
|
||||
"Recovery account password" => "Recuperar contraseña",
|
||||
"Enabled" => "Habilitar",
|
||||
"Disabled" => "Deshabilitado",
|
||||
"Change encryption passwords recovery key:" => "Cambiar clave de cifrado de contraseñas:",
|
||||
"Old Recovery account password" => "Contraseña de recuperación actual",
|
||||
"New Recovery account password" => "Contraseña de recuperación nueva",
|
||||
"Change Password" => "Cambiar contraseña",
|
||||
"Enable password recovery by sharing all files with your administrator:" => "Habilitar recuperación de contraseña compartiendo todos los archivos con su administrador",
|
||||
"Enabling this option will allow you to reobtain access to your encrypted files if your password is lost" => "Habilitar esta opción para poder acceder a sus archivos cifrados si pierde su contraseña",
|
||||
"File recovery settings updated" => "Opciones de recuperación de archivos actualizada",
|
||||
"Could not update file recovery" => "No se pudo actualizar la recuperación de archivos"
|
||||
);
|
||||
|
||||
@ -1,4 +1,22 @@
|
||||
<?php $TRANSLATIONS = array(
|
||||
"Recovery key successfully enabled" => "Clé de récupération activée avec succès",
|
||||
"Could not enable recovery key. Please check your recovery key password!" => "Ne peut pas activer la clé de récupération. s'il vous plait vérifiez votre mot de passe de clé de récupération!",
|
||||
"Recovery key successfully disabled" => "Clé de récupération désactivée avc succès",
|
||||
"Could not disable recovery key. Please check your recovery key password!" => "Ne peut pas désactiver la clé de récupération. S'il vous plait vérifiez votre mot de passe de clé de récupération!",
|
||||
"Password successfully changed." => "Mot de passe changé avec succès ",
|
||||
"Could not change the password. Maybe the old password was not correct." => "Ne peut pas changer le mot de passe. L'ancien mot de passe est peut-être incorrect.",
|
||||
"Saving..." => "Enregistrement...",
|
||||
"Encryption" => "Chiffrement"
|
||||
"Encryption" => "Chiffrement",
|
||||
"Enable encryption passwords recovery key (allow sharing to recovery key):" => "Activer la clé de récupération par mots de passe de cryptage (autoriser le partage de la clé de récupération) ",
|
||||
"Recovery account password" => "Rétablissement du compte mot de passe ",
|
||||
"Enabled" => "Activer",
|
||||
"Disabled" => "Désactiver",
|
||||
"Change encryption passwords recovery key:" => "Changer les mots de passe de cryptage par la clé de récupération",
|
||||
"Old Recovery account password" => "Ancien compte de récupération de mots de passe",
|
||||
"New Recovery account password" => "Nouveau compte de récupération de mots de passe",
|
||||
"Change Password" => "Changer de mot de passe",
|
||||
"Enable password recovery by sharing all files with your administrator:" => "Activer la récupération des mots de passe en partageant les fichiers avec votre administrateur:",
|
||||
"Enabling this option will allow you to reobtain access to your encrypted files if your password is lost" => "En activant cette option cela vous autorisera à récupérer votre accès aux fichiers cryptés si votre mot de passe est perdu",
|
||||
"File recovery settings updated" => "Mise à jour des paramètres de récupération de fichiers ",
|
||||
"Could not update file recovery" => "Ne peut pas remettre à jour les fichiers de récupération"
|
||||
);
|
||||
|
||||
@ -1,4 +1,22 @@
|
||||
<?php $TRANSLATIONS = array(
|
||||
"Recovery key successfully enabled" => "Atkūrimo raktas sėkmingai įjungtas",
|
||||
"Could not enable recovery key. Please check your recovery key password!" => "Neišėjo įjungti jūsų atkūrimo rakto. Prašome jį patikrinti!",
|
||||
"Recovery key successfully disabled" => "Atkūrimo raktas sėkmingai išjungtas",
|
||||
"Could not disable recovery key. Please check your recovery key password!" => "Neišėjo išjungti jūsų atkūrimo rakto. Prašome jį patikrinti!",
|
||||
"Password successfully changed." => "Slaptažodis sėkmingai pakeistas",
|
||||
"Could not change the password. Maybe the old password was not correct." => "Slaptažodis nebuvo pakeistas. Gali būti, kad buvo neteisingai suvestas senasis.",
|
||||
"Saving..." => "Saugoma...",
|
||||
"Encryption" => "Šifravimas"
|
||||
"Encryption" => "Šifravimas",
|
||||
"Enable encryption passwords recovery key (allow sharing to recovery key):" => "Įjungti šifravimo slaptažodžio atstatymo raktą (leidžia dalintis su atstatymo raktu):",
|
||||
"Recovery account password" => "Atstatymo vartotojo slaptažodis",
|
||||
"Enabled" => "Įjungta",
|
||||
"Disabled" => "Išjungta",
|
||||
"Change encryption passwords recovery key:" => "Pakeisti šifravimo slaptažodžio atstatymo raktą:",
|
||||
"Old Recovery account password" => "Seno atstatymo vartotojo slaptažodis",
|
||||
"New Recovery account password" => "naujo atstatymo vartotojo slaptažodis",
|
||||
"Change Password" => "Pakeisti slaptažodį",
|
||||
"Enable password recovery by sharing all files with your administrator:" => "Įjungti slaptažodžio atkūrimą dalinantis visais failas su administratoriumi:",
|
||||
"Enabling this option will allow you to reobtain access to your encrypted files if your password is lost" => "Įjungus šią funkciją jums bus suteiktas priėjimas prie šifruotos informacijos ir pamiršus slaptažodį.",
|
||||
"File recovery settings updated" => "Failų atstatymo nustatymai pakeisti",
|
||||
"Could not update file recovery" => "Neišėjo atnaujinti failų atkūrimo"
|
||||
);
|
||||
|
||||
@ -1,4 +1,22 @@
|
||||
<?php $TRANSLATIONS = array(
|
||||
"Recovery key successfully enabled" => "Återställningsnyckeln har framgångsrikt aktiverats",
|
||||
"Could not enable recovery key. Please check your recovery key password!" => "Kunde inte aktivera återställningsnyckeln. Vänligen kontrollera ditt lösenord för återställningsnyckeln!",
|
||||
"Recovery key successfully disabled" => "Återställningsnyckeln har framgångsrikt inaktiverats",
|
||||
"Could not disable recovery key. Please check your recovery key password!" => "Kunde inte inaktivera återställningsnyckeln. Vänligen kontrollera ditt lösenord för återställningsnyckeln!",
|
||||
"Password successfully changed." => "Ändringen av lösenordet lyckades.",
|
||||
"Could not change the password. Maybe the old password was not correct." => "Kunde inte ändra lösenordet. Kanske det gamla lösenordet inte var rätt.",
|
||||
"Saving..." => "Sparar...",
|
||||
"Encryption" => "Kryptering"
|
||||
"Encryption" => "Kryptering",
|
||||
"Enable encryption passwords recovery key (allow sharing to recovery key):" => "Aktivera återställningsnyckel för krypterade lösenord. (tillåt delning till återställningsnyckeln):",
|
||||
"Recovery account password" => "Återställning av kontolösenord",
|
||||
"Enabled" => "Aktiverad",
|
||||
"Disabled" => "Inaktiverad",
|
||||
"Change encryption passwords recovery key:" => "Ändra återställningsnyckeln för krypterade lösenord:",
|
||||
"Old Recovery account password" => "Gamla lösenordet för återställningskontot",
|
||||
"New Recovery account password" => "Nytt återställningslösenord för kontot",
|
||||
"Change Password" => "Byt lösenord",
|
||||
"Enable password recovery by sharing all files with your administrator:" => "Aktivera lösenordsåterställning genom att dela alla filer med din administratör:",
|
||||
"Enabling this option will allow you to reobtain access to your encrypted files if your password is lost" => "Aktivera det här alternativet för att kunna återfå tillgång till dina krypterade filer om du skulle förlora/glömma ditt lösenord",
|
||||
"File recovery settings updated" => "Inställningarna för filåterställning har uppdaterats",
|
||||
"Could not update file recovery" => "Kunde inte uppdatera filåterställning"
|
||||
);
|
||||
|
||||
@ -1,4 +1,10 @@
|
||||
<?php $TRANSLATIONS = array(
|
||||
"Password successfully changed." => "Đã đổi mật khẩu.",
|
||||
"Could not change the password. Maybe the old password was not correct." => "Không thể đổi mật khẩu. Có lẽ do mật khẩu cũ không đúng.",
|
||||
"Saving..." => "Đang lưu...",
|
||||
"Encryption" => "Mã hóa"
|
||||
"Encryption" => "Mã hóa",
|
||||
"Recovery account password" => "Mật khẩu cho tài khoản cứu hộ",
|
||||
"Enabled" => "Bật",
|
||||
"Disabled" => "Tắt",
|
||||
"Change Password" => "Đổi Mật khẩu"
|
||||
);
|
||||
|
||||
@ -1,4 +1,22 @@
|
||||
<?php $TRANSLATIONS = array(
|
||||
"Recovery key successfully enabled" => "恢复密钥成功启用",
|
||||
"Could not enable recovery key. Please check your recovery key password!" => "不能启用恢复密钥。请检查恢复密钥密码!",
|
||||
"Recovery key successfully disabled" => "恢复密钥成功禁用",
|
||||
"Could not disable recovery key. Please check your recovery key password!" => "不能禁用恢复密钥。请检查恢复密钥密码!",
|
||||
"Password successfully changed." => "密码修改成功。",
|
||||
"Could not change the password. Maybe the old password was not correct." => "不能修改密码。旧密码可能不正确。",
|
||||
"Saving..." => "保存中",
|
||||
"Encryption" => "加密"
|
||||
"Encryption" => "加密",
|
||||
"Enable encryption passwords recovery key (allow sharing to recovery key):" => "启用加密密码恢复密钥(允许共享恢复密钥):",
|
||||
"Recovery account password" => "恢复账户密码",
|
||||
"Enabled" => "开启",
|
||||
"Disabled" => "禁用",
|
||||
"Change encryption passwords recovery key:" => "变更加密密码恢复密钥:",
|
||||
"Old Recovery account password" => "旧恢复账号密码",
|
||||
"New Recovery account password" => "新恢复账号密码",
|
||||
"Change Password" => "修改密码",
|
||||
"Enable password recovery by sharing all files with your administrator:" => "通过与系统管理员共享全部文件启用密码恢复:",
|
||||
"Enabling this option will allow you to reobtain access to your encrypted files if your password is lost" => "启用该选项将允许你丢失密码时重新取得加密过的文件。",
|
||||
"File recovery settings updated" => "文件恢复设置已更新",
|
||||
"Could not update file recovery" => "不能更新文件恢复"
|
||||
);
|
||||
|
||||
@ -1,6 +1,9 @@
|
||||
<?php $TRANSLATIONS = array(
|
||||
"Password" => "Slaptažodis",
|
||||
"Submit" => "Išsaugoti",
|
||||
"%s shared the folder %s with you" => "%s pasidalino su jumis %s aplanku",
|
||||
"%s shared the file %s with you" => "%s pasidalino su jumis %s failu",
|
||||
"Download" => "Atsisiųsti",
|
||||
"No preview available for" => "Peržiūra nėra galima",
|
||||
"web services under your control" => "jūsų valdomos web paslaugos"
|
||||
);
|
||||
|
||||
@ -1,9 +1,18 @@
|
||||
<?php $TRANSLATIONS = array(
|
||||
"Couldn't delete %s permanently" => "Nepavyko negrįžtamai ištrinti %s",
|
||||
"Couldn't restore %s" => "Nepavyko atkurti %s",
|
||||
"perform restore operation" => "atkurti",
|
||||
"Error" => "Klaida",
|
||||
"delete file permanently" => "failą ištrinti negrįžtamai",
|
||||
"Delete permanently" => "Ištrinti negrįžtamai",
|
||||
"Name" => "Pavadinimas",
|
||||
"Deleted" => "Ištrinti",
|
||||
"1 folder" => "1 aplankalas",
|
||||
"{count} folders" => "{count} aplankalai",
|
||||
"1 file" => "1 failas",
|
||||
"{count} files" => "{count} failai",
|
||||
"Delete" => "Ištrinti"
|
||||
"Nothing in here. Your trash bin is empty!" => "Nieko nėra. Jūsų šiukšliadėžė tuščia!",
|
||||
"Restore" => "Atstatyti",
|
||||
"Delete" => "Ištrinti",
|
||||
"Deleted Files" => "Ištrinti failai"
|
||||
);
|
||||
|
||||
@ -1,3 +1,11 @@
|
||||
<?php $TRANSLATIONS = array(
|
||||
"Versions" => "גרסאות"
|
||||
"Could not revert: %s" => "לא ניתן להחזיר: %s",
|
||||
"success" => "הושלם",
|
||||
"File %s was reverted to version %s" => "הקובץ %s הוחזר לגרסה %s",
|
||||
"failure" => "נכשל",
|
||||
"File %s could not be reverted to version %s" => "לא ניתן להחזיר את הקובץ %s לגרסה %s",
|
||||
"No old versions available" => "אין גרסאות ישנות זמינות",
|
||||
"No path specified" => "לא צוין נתיב",
|
||||
"Versions" => "גרסאות",
|
||||
"Revert a file to a previous version by clicking on its revert button" => "ניתן להחזיר קובץ לגרסה קודמת על ידי לחיצה על לחצן ההחזרה שלו"
|
||||
);
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
<?php $TRANSLATIONS = array(
|
||||
"Keep settings?" => "Geyma stillingar ?",
|
||||
"Error" => "Villa",
|
||||
"Host" => "Netþjónn",
|
||||
"Password" => "Lykilorð",
|
||||
"Test Configuration" => "Prúfa uppsetningu",
|
||||
"Help" => "Hjálp"
|
||||
);
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
<?php $TRANSLATIONS = array(
|
||||
"WebDAV Authentication" => "WebDAV Auðkenni",
|
||||
"URL: http://" => "Vefslóð: http://"
|
||||
);
|
||||
|
||||
@ -0,0 +1,48 @@
|
||||
.oc-dialog {
|
||||
background: white;
|
||||
color: #333333;
|
||||
border-radius: 3px; box-shadow: 0 0 7px #888888;
|
||||
padding: 15px;
|
||||
z-index: 1000;
|
||||
font-size: 100%;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
min-width: 200px;
|
||||
}
|
||||
.oc-dialog-title {
|
||||
background: white;
|
||||
font-weight: bold;
|
||||
font-size: 110%;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.oc-dialog-content {
|
||||
z-index: 1000;
|
||||
background: white;
|
||||
}
|
||||
.oc-dialog-separator {
|
||||
}
|
||||
.oc-dialog-buttonrow {
|
||||
background: white;
|
||||
float: right;
|
||||
position: relative;
|
||||
bottom: 0;
|
||||
display: block;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.oc-dialog-close {
|
||||
position:absolute;
|
||||
top:7px; right:7px;
|
||||
height:20px; width:20px;
|
||||
background:url('../img/actions/delete.svg') no-repeat center;
|
||||
}
|
||||
|
||||
.oc-dialog-dim {
|
||||
background-color: #000;
|
||||
opacity: .20;filter:Alpha(Opacity=20);
|
||||
z-index: 999;
|
||||
position: absolute;
|
||||
top: 0; left: 0;
|
||||
width: 100%; height: 100%;
|
||||
}
|
||||
@ -0,0 +1,217 @@
|
||||
(function($) {
|
||||
$.widget('oc.ocdialog', {
|
||||
options: {
|
||||
width: 'auto',
|
||||
height: 'auto',
|
||||
closeButton: true,
|
||||
closeOnEscape: true,
|
||||
modal: false
|
||||
},
|
||||
_create: function() {
|
||||
var self = this;
|
||||
|
||||
this.originalCss = {
|
||||
display: this.element[0].style.display,
|
||||
width: this.element[0].style.width,
|
||||
height: this.element[0].style.height,
|
||||
};
|
||||
|
||||
this.originalTitle = this.element.attr('title');
|
||||
this.options.title = this.options.title || this.originalTitle;
|
||||
|
||||
this.$dialog = $('<div class="oc-dialog" />')
|
||||
.attr({
|
||||
// Setting tabIndex makes the div focusable
|
||||
tabIndex: -1,
|
||||
role: 'dialog'
|
||||
})
|
||||
.insertBefore(this.element);
|
||||
this.$dialog.append(this.element.detach());
|
||||
this.element.removeAttr('title').addClass('oc-dialog-content').appendTo(this.$dialog);
|
||||
|
||||
this.$dialog.css({
|
||||
display: 'inline-block',
|
||||
position: 'fixed'
|
||||
});
|
||||
|
||||
$(document).on('keydown keyup', function(event) {
|
||||
if(event.target !== self.$dialog.get(0) && self.$dialog.find($(event.target)).length === 0) {
|
||||
return;
|
||||
}
|
||||
// Escape
|
||||
if(event.keyCode === 27 && self.options.closeOnEscape) {
|
||||
self.close();
|
||||
return false;
|
||||
}
|
||||
// Enter
|
||||
if(event.keyCode === 13) {
|
||||
event.stopImmediatePropagation();
|
||||
if(event.type === 'keyup') {
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
// If no button is selected we trigger the primary
|
||||
if(self.$buttonrow && self.$buttonrow.find($(event.target)).length === 0) {
|
||||
var $button = self.$buttonrow.find('button.primary');
|
||||
if($button) {
|
||||
$button.trigger('click');
|
||||
}
|
||||
} else if(self.$buttonrow) {
|
||||
$(event.target).trigger('click');
|
||||
}
|
||||
return false;
|
||||
}
|
||||
});
|
||||
$(window).resize(function() {
|
||||
self.parent = self.$dialog.parent().length > 0 ? self.$dialog.parent() : $('body');
|
||||
var pos = self.parent.position();
|
||||
self.$dialog.css({
|
||||
left: pos.left + (self.parent.width() - self.$dialog.outerWidth())/2,
|
||||
top: pos.top + (self.parent.height() - self.$dialog.outerHeight())/2
|
||||
});
|
||||
});
|
||||
|
||||
this._setOptions(this.options);
|
||||
$(window).trigger('resize');
|
||||
this._createOverlay();
|
||||
},
|
||||
_init: function() {
|
||||
this.$dialog.focus();
|
||||
this._trigger('open');
|
||||
},
|
||||
_setOption: function(key, value) {
|
||||
var self = this;
|
||||
switch(key) {
|
||||
case 'title':
|
||||
var $title = $('<h3 class="oc-dialog-title">' + this.options.title
|
||||
+ '</h3>'); //<hr class="oc-dialog-separator" />');
|
||||
if(this.$title) {
|
||||
this.$title.replaceWith($title);
|
||||
} else {
|
||||
this.$title = $title.prependTo(this.$dialog);
|
||||
}
|
||||
this._setSizes();
|
||||
break;
|
||||
case 'buttons':
|
||||
var $buttonrow = $('<div class="oc-dialog-buttonrow" />');
|
||||
if(this.$buttonrow) {
|
||||
this.$buttonrow.replaceWith($buttonrow);
|
||||
} else {
|
||||
this.$buttonrow = $buttonrow.appendTo(this.$dialog);
|
||||
}
|
||||
$.each(value, function(idx, val) {
|
||||
var $button = $('<button>').text(val.text);
|
||||
if(val.defaultButton) {
|
||||
$button.addClass('primary');
|
||||
self.$defaultButton = $button;
|
||||
}
|
||||
self.$buttonrow.append($button);
|
||||
$button.click(function() {
|
||||
val.click.apply(self.element[0], arguments);
|
||||
});
|
||||
});
|
||||
this.$buttonrow.find('button')
|
||||
.on('focus', function(event) {
|
||||
self.$buttonrow.find('button').removeClass('primary');
|
||||
$(this).addClass('primary');
|
||||
});
|
||||
this._setSizes();
|
||||
break;
|
||||
case 'closeButton':
|
||||
if(value) {
|
||||
var $closeButton = $('<a class="oc-dialog-close svg"></a>');
|
||||
this.$dialog.prepend($closeButton);
|
||||
$closeButton.on('click', function() {
|
||||
self.close();
|
||||
});
|
||||
}
|
||||
break;
|
||||
case 'width':
|
||||
this.$dialog.css('width', value);
|
||||
break;
|
||||
case 'height':
|
||||
this.$dialog.css('height', value);
|
||||
break;
|
||||
case 'close':
|
||||
this.closeCB = value;
|
||||
break;
|
||||
}
|
||||
//this._super(key, value);
|
||||
$.Widget.prototype._setOption.apply(this, arguments );
|
||||
},
|
||||
_setOptions: function(options) {
|
||||
//this._super(options);
|
||||
$.Widget.prototype._setOptions.apply(this, arguments);
|
||||
},
|
||||
_setSizes: function() {
|
||||
var content_height = this.$dialog.height();
|
||||
if(this.$title) {
|
||||
content_height -= this.$title.outerHeight(true);
|
||||
}
|
||||
if(this.$buttonrow) {
|
||||
content_height -= this.$buttonrow.outerHeight(true);
|
||||
}
|
||||
this.parent = this.$dialog.parent().length > 0 ? this.$dialog.parent() : $('body');
|
||||
content_height = Math.min(content_height, this.parent.height()-20)
|
||||
this.element.css({
|
||||
height: content_height + 'px',
|
||||
width: this.$dialog.innerWidth()-20 + 'px'
|
||||
});
|
||||
},
|
||||
_createOverlay: function() {
|
||||
if(!this.options.modal) {
|
||||
return;
|
||||
}
|
||||
|
||||
var self = this;
|
||||
this.overlay = $('<div>')
|
||||
.addClass('oc-dialog-dim')
|
||||
.appendTo($('#content'));
|
||||
this.overlay.on('click keydown keyup', function(event) {
|
||||
if(event.target !== self.$dialog.get(0) && self.$dialog.find($(event.target)).length === 0) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
return;
|
||||
}
|
||||
});
|
||||
},
|
||||
_destroyOverlay: function() {
|
||||
if (!this.options.modal) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.overlay) {
|
||||
this.overlay.off('click keydown keyup');
|
||||
this.overlay.remove();
|
||||
this.overlay = null;
|
||||
}
|
||||
},
|
||||
widget: function() {
|
||||
return this.$dialog
|
||||
},
|
||||
close: function() {
|
||||
this._destroyOverlay();
|
||||
var self = this;
|
||||
// Ugly hack to catch remaining keyup events.
|
||||
setTimeout(function() {
|
||||
self._trigger('close', self);
|
||||
self.$dialog.hide();
|
||||
}, 200);
|
||||
},
|
||||
destroy: function() {
|
||||
if(this.$title) {
|
||||
this.$title.remove()
|
||||
}
|
||||
if(this.$buttonrow) {
|
||||
this.$buttonrow.remove()
|
||||
}
|
||||
|
||||
if(this.originalTitle) {
|
||||
this.element.attr('title', this.originalTitle);
|
||||
}
|
||||
this.element.removeClass('oc-dialog-content')
|
||||
.css(this.originalCss).detach().insertBefore(this.$dialog);
|
||||
this.$dialog.remove();
|
||||
}
|
||||
});
|
||||
}(jQuery));
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue