diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-05-13 23:23:08 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-05-13 23:23:08 +0000 |
commit | d3103f6c5dba11a8a82faac6efccf46ca65150a6 (patch) | |
tree | 47723213c4e8462670088cac68ea2e341142b9ff /core/js/albums_form_add.js | |
parent | daebdab0c6a96b8fabc12b5bbbb438a134e4226d (diff) |
Add a little JS sugar to set the album directory name to the same as
the album title.
Diffstat (limited to 'core/js/albums_form_add.js')
-rw-r--r-- | core/js/albums_form_add.js | 5 |
1 files changed, 5 insertions, 0 deletions
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")); + }); |