summaryrefslogtreecommitdiff
path: root/core/js
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-05-14 04:23:15 +0000
committerBharat Mediratta <bharat@menalto.com>2009-05-14 04:23:15 +0000
commit555ee41474de5c518fad6d62869f3b14bd8cfef6 (patch)
tree60526f37954d47729ac1a51851e12c9bbf480261 /core/js
parent59798360066ad341534fcd77b5fefb5adc52b6e6 (diff)
Bind to the change() event also so that we can pick up autocompletions in the title box.
Diffstat (limited to 'core/js')
-rw-r--r--core/js/albums_form_add.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/js/albums_form_add.js b/core/js/albums_form_add.js
index 5516a468..fb9e57be 100644
--- a/core/js/albums_form_add.js
+++ b/core/js/albums_form_add.js
@@ -1,3 +1,8 @@
+$("#gAddAlbumForm input[name=title]").change(
+ function() {
+ $("#gAddAlbumForm input[name=name]").attr(
+ "value", $("#gAddAlbumForm input[name=title]").attr("value"));
+ });
$("#gAddAlbumForm input[name=title]").keyup(
function() {
$("#gAddAlbumForm input[name=name]").attr(