new finctions and fixes
This commit is contained in:
@@ -5433,4 +5433,4 @@ dialog::backdrop {
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
+15
-10
@@ -125,8 +125,9 @@
|
||||
aria-hidden="true"></span><span id="authorship-colors-label">Colors
|
||||
on</span></label>
|
||||
<div class="authorship-mode-control" role="group" aria-label="Authorship display"><button
|
||||
type="button" data-authorship-mode="simple" class="active" disabled>Simple</button><button
|
||||
type="button" data-authorship-mode="full" disabled>Full</button></div>
|
||||
type="button" data-authorship-mode="simple" class="active"
|
||||
disabled>Simple</button><button type="button" data-authorship-mode="full"
|
||||
disabled>Full</button></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="participant-badges" class="participant-badges" aria-label="Participants"></div>
|
||||
@@ -218,9 +219,9 @@
|
||||
guest</button><button id="show-register" class="text-button" type="button">Register</button><button
|
||||
id="show-login" class="text-button" type="button">Log in</button></div>
|
||||
<section id="auth-panel" class="auth-panel" hidden>
|
||||
<h3 id="auth-mode-title">Log in</h3><label id="auth-email-field">E-mail / organization login<input
|
||||
<h3 id="auth-mode-title">Log in</h3><label id="auth-email-field">E-mail / LDAP or AD Username<input
|
||||
id="auth-email" name="username" type="email" maxlength="320" autocomplete="username"
|
||||
placeholder="you@example.com"></label><label>Password<input
|
||||
placeholder="you@example.com or name.second-name"></label><label>Password<input
|
||||
id="auth-password" name="password" type="password" minlength="8" maxlength="128"
|
||||
autocomplete="current-password"></label><button id="auth-submit" class="primary-button"
|
||||
type="submit">Log in and continue</button>
|
||||
@@ -234,8 +235,8 @@
|
||||
</dialog>
|
||||
<dialog id="password-dialog">
|
||||
<form id="password-form" class="dialog-panel">
|
||||
<h2>Protected __PROTECTED_RESOURCE_LABEL__</h2><input id="open-password" type="password" autocomplete="current-password" required
|
||||
placeholder="Password">
|
||||
<h2>Protected __PROTECTED_RESOURCE_LABEL__</h2><input id="open-password" type="password"
|
||||
autocomplete="current-password" required placeholder="Password">
|
||||
<p id="password-error" class="form-message error"></p><button class="primary-button">Open</button><a
|
||||
class="dialog-link" href="/">Cancel</a>
|
||||
</form>
|
||||
@@ -261,10 +262,14 @@
|
||||
<option value="20">20</option>
|
||||
<option value="22">22</option>
|
||||
</select></label>
|
||||
<label class="public-task-toggle mobile-option-check"><input id="mobile-line-numbers-toggle" type="checkbox"> Editor lines</label>
|
||||
<label class="public-task-toggle mobile-option-check"><input id="mobile-preview-line-numbers-toggle" type="checkbox"> Preview lines</label>
|
||||
<label class="public-task-toggle mobile-option-check"><input id="mobile-compact-toggle" type="checkbox"> Compact view</label>
|
||||
<label class="public-task-toggle mobile-option-check"><input id="mobile-line-links-toggle" type="checkbox"> Line links</label>
|
||||
<label class="public-task-toggle mobile-option-check"><input id="mobile-line-numbers-toggle"
|
||||
type="checkbox"> Editor lines</label>
|
||||
<label class="public-task-toggle mobile-option-check"><input id="mobile-preview-line-numbers-toggle"
|
||||
type="checkbox"> Preview lines</label>
|
||||
<label class="public-task-toggle mobile-option-check"><input id="mobile-compact-toggle" type="checkbox">
|
||||
Compact view</label>
|
||||
<label class="public-task-toggle mobile-option-check"><input id="mobile-line-links-toggle"
|
||||
type="checkbox"> Line links</label>
|
||||
</div>
|
||||
</details>
|
||||
<label id="mobile-color-button" class="mobile-color-button" title="Editor color"
|
||||
|
||||
+1
-1
@@ -101,7 +101,7 @@
|
||||
<div class="identity-fields">
|
||||
<label>Nickname<input id="nickname" name="nickname" maxlength="40" autocomplete="off" data-bwignore="true"
|
||||
placeholder="Your nickname"></label>
|
||||
<label id="auth-email-field">E-mail / LDAP Username<input id="auth-email" name="username" type="email"
|
||||
<label id="auth-email-field">E-mail / LDAP or AD Username<input id="auth-email" name="username" type="email"
|
||||
maxlength="320" autocomplete="username" required placeholder="you@example.com or name.second-name"></label>
|
||||
<label>Password<input id="auth-password" name="password" type="password" minlength="8" maxlength="128"
|
||||
autocomplete="current-password" required placeholder="At least 8 characters"></label>
|
||||
|
||||
@@ -75,7 +75,10 @@ export function bindNoteFiles({ editor, endpoints, getAccessToken, canDelete, to
|
||||
}
|
||||
|
||||
document.querySelector("#upload-button").addEventListener("click", () => {
|
||||
if (!getAuthToken()) { toast("Log in to upload files."); return; }
|
||||
if (!getAuthToken() && !getAccessToken()) {
|
||||
toast("Log in or use a read-write share link to upload files.");
|
||||
return;
|
||||
}
|
||||
input.click();
|
||||
});
|
||||
input.addEventListener("change", async event => {
|
||||
|
||||
Reference in New Issue
Block a user