diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/Controller/LostController.php | 2 | ||||
-rw-r--r-- | core/css/inputs.scss | 2 | ||||
-rw-r--r-- | core/js/jquery.ocdialog.js | 2 | ||||
-rw-r--r-- | core/js/oc-dialogs.js | 29 | ||||
-rw-r--r-- | core/l10n/he.js | 7 | ||||
-rw-r--r-- | core/l10n/he.json | 7 |
6 files changed, 38 insertions, 11 deletions
diff --git a/core/Controller/LostController.php b/core/Controller/LostController.php index eacd5847c6c..ab5a10b8035 100644 --- a/core/Controller/LostController.php +++ b/core/Controller/LostController.php @@ -187,7 +187,7 @@ class LostController extends Controller { throw new \Exception($this->l10n->t('Couldn\'t reset password because the token is invalid')); } - if ($splittedToken[0] < ($this->timeFactory->getTime() - 60*60*12) || + if ($splittedToken[0] < ($this->timeFactory->getTime() - 60*60*24*7) || $user->getLastLogin() > $splittedToken[0]) { throw new \Exception($this->l10n->t('Couldn\'t reset password because the token is expired')); } diff --git a/core/css/inputs.scss b/core/css/inputs.scss index 365a7c9c426..1b9eae628b1 100644 --- a/core/css/inputs.scss +++ b/core/css/inputs.scss @@ -192,7 +192,7 @@ button, .button { } textarea, div[contenteditable=true] { - color: var(--color-text-lighter); + color: var(--color-main-text); cursor: text; font-family: inherit; height: auto; diff --git a/core/js/jquery.ocdialog.js b/core/js/jquery.ocdialog.js index f3a54119e78..02bd3069c59 100644 --- a/core/js/jquery.ocdialog.js +++ b/core/js/jquery.ocdialog.js @@ -64,7 +64,7 @@ self.$buttonrow.find($(event.target)).length === 0 ) { var $button = self.$buttonrow.find('button.primary'); - if($button) { + if($button && !$button.prop('disabled')) { $button.trigger('click'); } } else if(self.$buttonrow) { diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js index d346b5231d1..7369298b8d5 100644 --- a/core/js/oc-dialogs.js +++ b/core/js/oc-dialogs.js @@ -175,6 +175,14 @@ var OCdialogs = { }, /** * show a file picker to pick a file from + * + * In order to pick several types of mime types they need to be passed as an + * array of strings. + * + * When no mime type filter is given only files can be selected. In order to + * be able to select both files and folders "['*', 'httpd/unix-directory']" + * should be used instead. + * * @param title dialog title * @param callback which will be triggered when user presses Choose * @param multiselect whether it should be possible to select multiple files @@ -206,6 +214,14 @@ var OCdialogs = { if(self.$filePicker) { self.$filePicker.ocdialog('close'); } + + if (mimetypeFilter === undefined || mimetypeFilter === null) { + mimetypeFilter = []; + } + if (typeof(mimetypeFilter) === "string") { + mimetypeFilter = [mimetypeFilter]; + } + self.$filePicker = $tmpl.octemplate({ dialog_name: dialogName, title: title, @@ -218,9 +234,6 @@ var OCdialogs = { if (multiselect === undefined) { multiselect = false; } - if (mimetypeFilter === undefined) { - mimetypeFilter = ''; - } $('body').append(self.$filePicker); @@ -315,7 +328,7 @@ var OCdialogs = { // Hence this is one of the approach to get the choose button. var getOcDialog = self.$filePicker.closest('.oc-dialog'); var buttonEnableDisable = getOcDialog.find('.primary'); - if (self.$filePicker.data('mimetype') === "httpd/unix-directory") { + if (self.$filePicker.data('mimetype').indexOf("httpd/unix-directory") !== -1) { buttonEnableDisable.prop("disabled", false); } else { buttonEnableDisable.prop("disabled", true); @@ -841,9 +854,9 @@ var OCdialogs = { filter = [filter]; } self.filepicker.filesClient.getFolderContents(dir).then(function(status, files) { - if (filter) { + if (filter && filter.length > 0 && filter.indexOf('*') === -1) { files = files.filter(function (file) { - return filter == [] || file.type === 'dir' || filter.indexOf(file.mimetype) !== -1; + return file.type === 'dir' || filter.indexOf(file.mimetype) !== -1; }); } files = files.sort(function(a, b) { @@ -939,7 +952,7 @@ var OCdialogs = { var getOcDialog = (event.target).closest('.oc-dialog'); var buttonEnableDisable = $('.primary', getOcDialog); this._changeButtonsText(type, dir.split(/[/]+/).pop()); - if (this.$filePicker.data('mimetype') === "httpd/unix-directory") { + if (this.$filePicker.data('mimetype').indexOf("httpd/unix-directory") !== -1) { buttonEnableDisable.prop("disabled", false); } else { buttonEnableDisable.prop("disabled", true); @@ -960,7 +973,7 @@ var OCdialogs = { } else if ( $element.data('type') === 'dir' ) { this._fillFilePicker(this.$filePicker.data('path') + '/' + $element.data('entryname')); this._changeButtonsText(type, $element.data('entryname')); - if (this.$filePicker.data('mimetype') === "httpd/unix-directory") { + if (this.$filePicker.data('mimetype').indexOf("httpd/unix-directory") !== -1) { buttonEnableDisable.prop("disabled", false); } else { buttonEnableDisable.prop("disabled", true); diff --git a/core/l10n/he.js b/core/l10n/he.js index 3ef4002f424..a0ee664be96 100644 --- a/core/l10n/he.js +++ b/core/l10n/he.js @@ -143,6 +143,7 @@ OC.L10N.register( "This is particularly recommended when using the desktop client for file synchronisation." : "מצב זה מומלץ במיוחד כאשר מריצים את לקוח שולחן העבודה לסנכרון קבצים.", "To migrate to another database use the command line tool: 'occ db:convert-type', or see the <a target=\"_blank\" rel=\"noreferrer noopener\" href=\"{docLink}\">documentation ↗</a>." : "כדי להגר למסד נתונים אחר יש להשתמש בכלי שורת הפקודה: ‚occ db:convert-type’, או לעיין ב<a target=\"_blank\" rel=\"noreferrer noopener\" href=\"{docLink}\">תיעוד ↖️</a>.", "Use of the the built in php mailer is no longer supported. <a target=\"_blank\" rel=\"noreferrer noopener\" href=\"{docLink}\">Please update your email server settings ↗<a/>." : "השימוש בתכונת הדוא״ל המובנית של php אינה נתמכת עוד. <a target=\"_blank\" rel=\"noreferrer noopener\" href=\"{docLink}\">נא לעדכן את הגדרות שרת הדוא״ל שלך ↖<a/>.", + "The PHP memory limit is below the recommended value of 512MB." : "מגבלת הזיכרון של ה־PHP היא מתחת לערך המומלץ על סך 512 מ״ב.", "Error occurred while checking server setup" : "שגיאה אירעה בזמן בדיקת התקנת השרת", "Your data directory and files are probably accessible from the Internet. The .htaccess file is not working. It is strongly recommended that you configure your web server so that the data directory is no longer accessible, or move the data directory outside the web server document root." : "תיקיית הנתונים והקבצים שלך כנראה נגישים דרך האינטרנט. קובץ ה־.htaccess אינו עובד. מומלץ בחום להגדיר את השרת שלך כך שתיקיית הנתונים אינה נגישה עוד או לחלופין להעביר את תיקיית הנתונים אל מחוץ לתיקיית השורש של שירות אירוח האתרים.", "The \"{header}\" HTTP header is not set to \"{expected}\". This is a potential security or privacy risk, as it is recommended to adjust this setting accordingly." : "כותרת ה־HTTP „{header}” אינה מוגדרת לערך „{expected}”. מדובר בפרצת אבטחה או פרטיות, מומלץ להתאים את ההגדרה הזאת בהתאם.", @@ -174,13 +175,16 @@ OC.L10N.register( "Expiration" : "תפוגה", "Expiration date" : "תאריך התפוגה", "Share link" : "קישור לשיתוף", + "Enable" : "הפעלה", "Shared with you and the group {group} by {owner}" : "שותף אתך ועם הקבוצה {group} שבבעלות {owner}", "Shared with you by {owner}" : "שותף אתך על ידי {owner}", "Choose a password for the mail share" : "נא לבחור ססמה עבור השיתוף בדוא״ל", "{{shareInitiatorDisplayName}} shared via link" : "{{shareInitiatorDisplayName}} שותף על ידי קישור", "group" : "קבוצה", "remote" : "נשלט מרחוק", + "remote group" : "קבוצה מרוחקת", "email" : "דוא״ל", + "conversation" : "דיון", "shared by {sharer}" : "שותף ע״י {sharer}", "Unshare" : "הסר שיתוף", "Can reshare" : "ניתן לשתף מחדש", @@ -188,6 +192,7 @@ OC.L10N.register( "Can create" : "ניתן ליצור", "Can change" : "ניתן לשנות", "Can delete" : "ניתן למחוק", + "Password protect by Talk" : "הגנה בססמה על ידי Talk", "Access control" : "בקרת גישה", "Could not unshare" : "לא ניתן לבטל שיתוף", "Error while sharing" : "שגיאה במהלך השיתוף", @@ -200,8 +205,10 @@ OC.L10N.register( "An error occurred. Please try again" : "אירעה שגיאה. יש לנסות שנית", "{sharee} (group)" : "{sharee} (קבוצה)", "{sharee} (remote)" : "{sharee} (מרוחק)", + "{sharee} (remote group)" : "{sharee} (קבוצה מרוחקת)", "{sharee} (email)" : "{sharee} (דוא״ל)", "{sharee} ({type}, {owner})" : "{sharee} ({type}, {owner})", + "{sharee} (conversation)" : "{sharee} (דיון)", "Share" : "שתף", "Name or email address..." : "שם או כתובת דוא״ל…", "Name or federated cloud ID..." : "שם או מזהה ענן מאוגד…", diff --git a/core/l10n/he.json b/core/l10n/he.json index ca851aaa2a2..a19d38e1dd3 100644 --- a/core/l10n/he.json +++ b/core/l10n/he.json @@ -141,6 +141,7 @@ "This is particularly recommended when using the desktop client for file synchronisation." : "מצב זה מומלץ במיוחד כאשר מריצים את לקוח שולחן העבודה לסנכרון קבצים.", "To migrate to another database use the command line tool: 'occ db:convert-type', or see the <a target=\"_blank\" rel=\"noreferrer noopener\" href=\"{docLink}\">documentation ↗</a>." : "כדי להגר למסד נתונים אחר יש להשתמש בכלי שורת הפקודה: ‚occ db:convert-type’, או לעיין ב<a target=\"_blank\" rel=\"noreferrer noopener\" href=\"{docLink}\">תיעוד ↖️</a>.", "Use of the the built in php mailer is no longer supported. <a target=\"_blank\" rel=\"noreferrer noopener\" href=\"{docLink}\">Please update your email server settings ↗<a/>." : "השימוש בתכונת הדוא״ל המובנית של php אינה נתמכת עוד. <a target=\"_blank\" rel=\"noreferrer noopener\" href=\"{docLink}\">נא לעדכן את הגדרות שרת הדוא״ל שלך ↖<a/>.", + "The PHP memory limit is below the recommended value of 512MB." : "מגבלת הזיכרון של ה־PHP היא מתחת לערך המומלץ על סך 512 מ״ב.", "Error occurred while checking server setup" : "שגיאה אירעה בזמן בדיקת התקנת השרת", "Your data directory and files are probably accessible from the Internet. The .htaccess file is not working. It is strongly recommended that you configure your web server so that the data directory is no longer accessible, or move the data directory outside the web server document root." : "תיקיית הנתונים והקבצים שלך כנראה נגישים דרך האינטרנט. קובץ ה־.htaccess אינו עובד. מומלץ בחום להגדיר את השרת שלך כך שתיקיית הנתונים אינה נגישה עוד או לחלופין להעביר את תיקיית הנתונים אל מחוץ לתיקיית השורש של שירות אירוח האתרים.", "The \"{header}\" HTTP header is not set to \"{expected}\". This is a potential security or privacy risk, as it is recommended to adjust this setting accordingly." : "כותרת ה־HTTP „{header}” אינה מוגדרת לערך „{expected}”. מדובר בפרצת אבטחה או פרטיות, מומלץ להתאים את ההגדרה הזאת בהתאם.", @@ -172,13 +173,16 @@ "Expiration" : "תפוגה", "Expiration date" : "תאריך התפוגה", "Share link" : "קישור לשיתוף", + "Enable" : "הפעלה", "Shared with you and the group {group} by {owner}" : "שותף אתך ועם הקבוצה {group} שבבעלות {owner}", "Shared with you by {owner}" : "שותף אתך על ידי {owner}", "Choose a password for the mail share" : "נא לבחור ססמה עבור השיתוף בדוא״ל", "{{shareInitiatorDisplayName}} shared via link" : "{{shareInitiatorDisplayName}} שותף על ידי קישור", "group" : "קבוצה", "remote" : "נשלט מרחוק", + "remote group" : "קבוצה מרוחקת", "email" : "דוא״ל", + "conversation" : "דיון", "shared by {sharer}" : "שותף ע״י {sharer}", "Unshare" : "הסר שיתוף", "Can reshare" : "ניתן לשתף מחדש", @@ -186,6 +190,7 @@ "Can create" : "ניתן ליצור", "Can change" : "ניתן לשנות", "Can delete" : "ניתן למחוק", + "Password protect by Talk" : "הגנה בססמה על ידי Talk", "Access control" : "בקרת גישה", "Could not unshare" : "לא ניתן לבטל שיתוף", "Error while sharing" : "שגיאה במהלך השיתוף", @@ -198,8 +203,10 @@ "An error occurred. Please try again" : "אירעה שגיאה. יש לנסות שנית", "{sharee} (group)" : "{sharee} (קבוצה)", "{sharee} (remote)" : "{sharee} (מרוחק)", + "{sharee} (remote group)" : "{sharee} (קבוצה מרוחקת)", "{sharee} (email)" : "{sharee} (דוא״ל)", "{sharee} ({type}, {owner})" : "{sharee} ({type}, {owner})", + "{sharee} (conversation)" : "{sharee} (דיון)", "Share" : "שתף", "Name or email address..." : "שם או כתובת דוא״ל…", "Name or federated cloud ID..." : "שם או מזהה ענן מאוגד…", |