mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-29 19:20:52 -04:00
Add a little JS sugar to set the album directory name to the same as
the album title.
This commit is contained in:
@@ -112,7 +112,7 @@ class Albums_Controller extends Items_Controller {
|
||||
} else {
|
||||
print json_encode(
|
||||
array("result" => "error",
|
||||
"form" => $form->__toString()));
|
||||
"form" => $form->__toString() . html::script("core/js/albums_form_add.js")));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -189,7 +189,8 @@ class Albums_Controller extends Items_Controller {
|
||||
|
||||
switch ($this->input->get("type")) {
|
||||
case "album":
|
||||
print album::get_add_form($album);
|
||||
print album::get_add_form($album) .
|
||||
html::script("core/js/albums_form_add.js");
|
||||
break;
|
||||
|
||||
case "photo":
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
$("#gAddAlbumForm input[name=title]").keyup(
|
||||
function() {
|
||||
$("#gAddAlbumForm input[name=name]").attr(
|
||||
"value", $("#gAddAlbumForm input[name=title]").attr("value"));
|
||||
});
|
||||
Reference in New Issue
Block a user