aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
Diffstat (limited to 'admin')
-rw-r--r--admin/themes/default/template/photos_add_direct.tpl6
1 files changed, 6 insertions, 0 deletions
diff --git a/admin/themes/default/template/photos_add_direct.tpl b/admin/themes/default/template/photos_add_direct.tpl
index f5a8c7f53..ffa5e2415 100644
--- a/admin/themes/default/template/photos_add_direct.tpl
+++ b/admin/themes/default/template/photos_add_direct.tpl
@@ -49,6 +49,12 @@ jQuery(document).ready(function(){
}
+ if ($("select[name=category] option").length == 0) {
+ $('input[name=category_type][value=existing]').attr('disabled', true);
+ $('input[name=category_type]').attr('checked', false);
+ $('input[name=category_type][value=new]').attr('checked', true);
+ }
+
$("input[name=category_type]").click(function () {
$("[id^=category_type_]").hide();
$("#category_type_"+$(this).attr("value")).show();