From d3103f6c5dba11a8a82faac6efccf46ca65150a6 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 13 May 2009 23:23:08 +0000 Subject: Add a little JS sugar to set the album directory name to the same as the album title. --- core/js/albums_form_add.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 core/js/albums_form_add.js (limited to 'core/js') diff --git a/core/js/albums_form_add.js b/core/js/albums_form_add.js new file mode 100644 index 00000000..5516a468 --- /dev/null +++ b/core/js/albums_form_add.js @@ -0,0 +1,5 @@ +$("#gAddAlbumForm input[name=title]").keyup( + function() { + $("#gAddAlbumForm input[name=name]").attr( + "value", $("#gAddAlbumForm input[name=title]").attr("value")); + }); -- cgit v1.2.3