mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
samba: Fix javascript constant redeclaration error
Related to #1715 Signed-off-by: Veiko Aasa <veiko17@disroot.org> Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
This commit is contained in:
parent
06b4a447c6
commit
9d20875b03
@ -21,10 +21,13 @@
|
|||||||
* in this page.
|
* in this page.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const share_checkbox = $(".shareform > input[type='checkbox']");
|
|
||||||
|
|
||||||
share_checkbox.change(function(event) {
|
$(document).on('turbolinks:load', function() {
|
||||||
|
const share_checkbox = $(".shareform > input[type='checkbox']");
|
||||||
|
|
||||||
|
share_checkbox.change(function(event) {
|
||||||
this.disabled=true;
|
this.disabled=true;
|
||||||
this.style.cursor='wait';
|
this.style.cursor='wait';
|
||||||
this.form.submit();
|
this.form.submit();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user