diff --git a/src/scripts/album.js b/src/scripts/album.js index 8a68b68..b3a4244 100644 --- a/src/scripts/album.js +++ b/src/scripts/album.js @@ -376,11 +376,36 @@ album.setPublic = function(albumID, e) { }; - msg = "

This album will be shared with the following properties:

"; - msg += "

Listed to visitors of your Lychee.

"; - msg += "

Visitors of your Lychee can download this album.

"; - msg += "

Only accessible with a valid password.

"; - msg += "
" + msg = ` +

This album will be shared with the following properties:

+
+
+ +

Listed to visitors of your Lychee.

+
+
+ +

Visitors of your Lychee can download this album.

+
+
+ +

Only accessible with a valid password.

+ +
+
+ ` basicModal.show({ body: msg, @@ -410,7 +435,7 @@ album.setPublic = function(albumID, e) { if (basicModal.visible()) { if ($('.basicModal .choice input[name="password"]:checked').length===1) { - password = md5($('.basicModal .choice input[name="password"]').val()); + password = md5($('.basicModal .choice input[data-name="password"]').val()); album.json.password = 1; } else { password = '';