Commit 8f1a9290 by Dányi Bence

one: new-folder input focus added

parent d526372b
......@@ -84,6 +84,9 @@ $(function() {
console.log(s, parseFloat(w));
return '1px solid hsla('+(120-parseFloat(w)/438*120).toFixed(0)+',100%,30%,0.4)';
}($(this).css('width')));
});
$('#new-folder').click(function(){
$('#new-folder-form input')[0].focus();
})
/**
......
......@@ -74,7 +74,7 @@
</div>
</li>
<li class="wm small-row">
<div class="summary">
<div class="summary" id="new-folder">
<div class="name filetype-new-folder">{% trans "Create folder" %}</div>
<div id="new-folder-form">
<input type="text" placeholder="{% trans "Name of new folder" %}" data-bind="value: newFolderName, click: function(m,e){console.log(arguments); e.preventDefault(); e.stopPropagation(); return false;}" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment