git.cweiske.de
/
phorkie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into remotefork
[phorkie.git]
/
data
/
templates
/
edit-add.htm
diff --git
a/data/templates/edit-add.htm
b/data/templates/edit-add.htm
index 8435852d8ebea2f8336ce54413394e40f6a36c1a..d86b2c52dff7fe585590a42bfe4cf09725010707 100644
(file)
--- a/
data/templates/edit-add.htm
+++ b/
data/templates/edit-add.htm
@@
-5,7
+5,7
@@
</a>
</div>
</a>
</div>
- {% include 'edit-file.htm' with {'file':
'', 'fileid': 'new'
} %}
+ {% include 'edit-file.htm' with {'file':
null, 'fileid': 'new', 'newfile': true
} %}
<script type="application/javascript">
$(document).ready(function() {
<script type="application/javascript">
$(document).ready(function() {
@@
-13,10
+13,16
@@
$(document).ready(function() {
$('#filegroupnew').hide();
$('#add-button a').bind('click', function() {
$('#add-button').before("{% filter escape('js') %}
$('#filegroupnew').hide();
$('#add-button a').bind('click', function() {
$('#add-button').before("{% filter escape('js') %}
- {% include 'edit-file.htm' with {'file':
'', 'fileid': '###'
} %}
+ {% include 'edit-file.htm' with {'file':
null, 'fileid': '###', 'newfile': true
} %}
{% endfilter %}"
.replace(/###/g, $('.filegroup').length)
);
{% 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;
});
});
return false;
});
});