Skip to content
Snippets Groups Projects
Commit 468319fe authored by Robin Appelman's avatar Robin Appelman
Browse files

no need for an ok button for creating folders

parent 23f051cc
No related branches found
No related tags found
No related merge requests found
......@@ -63,10 +63,11 @@ $(document).ready(function() {
data: "dir="+$('#dir').val()+"&foldername="+$('#file_newfolder_name').val(),
complete: function(data){boolOperationFinished(data, function(){
var date=new Date();
FileList.addDir($('#file_newfolder_name').val(),0,date)
FileList.addDir($('#file_newfolder_name').val(),0,date);
$('#file_newfolder_name').val('New Folder');
$('#file_newfolder_name').blur();
});}
});
$('#file_newfolder_submit').fadeOut(250).trigger('vanish');
});
$('#file_newfolder_name').click(function(){
......@@ -75,20 +76,6 @@ $(document).ready(function() {
}
});
$('#file_newfolder_name').bind('keyup', adjustNewFolderSize);
$('#file_newfolder_submit').bind('vanish', function() {
$('#file_newfolder_name').bind('keyup', adjustNewFolderSize);
unsplitSize($('#file_newfolder_name'),$('#file_newfolder_submit'));
});
$('#file_newfolder_name').focusout(function(){
if($('#file_newfolder_name').val() == '') {
$('#file_newfolder_form')[0].reset();
$('#file_newfolder_submit').fadeOut(250).trigger('vanish');
}
});
$('.download').click('click',function(event) {
var files=getSelectedFiles('name').join(';');
......
......@@ -15,7 +15,6 @@
</form>
<form id="file_newfolder_form">
<input type="text" class="prettybutton" name="file_newfolder_name" id="file_newfolder_name" value="New Folder" />&nbsp;
<input class="prettybutton" type="submit" id="file_newfolder_submit" name="file_newfolder_submit" value="OK" />
</form>
</div>
<div id="file_action_panel">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment