aboutsummaryrefslogtreecommitdiff
path: root/data/templates/edit-add.htm
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2012-06-06 11:32:10 +0200
committerChristian Weiske <cweiske@cweiske.de>2012-06-06 11:32:10 +0200
commitcceda6a059b90c8e7e1319529f3fe686b16dfcf3 (patch)
treedfa30c1faba3a15e1da71555dc561d274d052930 /data/templates/edit-add.htm
parentff7a7fed31ec57d3a3222c1aff2084f85786976f (diff)
downloadphorkie-cceda6a059b90c8e7e1319529f3fe686b16dfcf3.tar.gz
phorkie-cceda6a059b90c8e7e1319529f3fe686b16dfcf3.zip
hide additional fields and add button to show them
Diffstat (limited to 'data/templates/edit-add.htm')
-rw-r--r--data/templates/edit-add.htm6
1 files changed, 6 insertions, 0 deletions
diff --git a/data/templates/edit-add.htm b/data/templates/edit-add.htm
index e504deb..d86b2c5 100644
--- a/data/templates/edit-add.htm
+++ b/data/templates/edit-add.htm
@@ -17,6 +17,12 @@ $(document).ready(function() {
{% endfilter %}"
.replace(/###/g, $('.filegroup').length)
);
+ toggleAdditional($('.filegroup:visible .additional-btn:last')[0], 0);
+
+ $('html, body').animate({
+ scrollTop: $('.filegroup:visible:last').offset().top
+ });
+ $('.filegroup:visible:last textarea').focus();
return false;
});
});