mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-05-08 11:22:10 +00:00
improve UI on new file
This commit is contained in:
parent
b99d58a35b
commit
01c4a28dcc
2
assets/css/main.min.css
vendored
2
assets/css/main.min.css
vendored
File diff suppressed because one or more lines are too long
2
assets/js/app.min.js
vendored
2
assets/js/app.min.js
vendored
File diff suppressed because one or more lines are too long
@ -329,13 +329,17 @@ fieldset h3 {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
input[type="text"] {
|
||||
input {
|
||||
border: 0;
|
||||
outline: 0;
|
||||
background-color: transparent;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
input[type="submit"] {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
fieldset input {
|
||||
width: calc(100% - 1.57em);
|
||||
margin: 0.5em 0;
|
||||
|
@ -89,6 +89,14 @@ $(document).on('page:browse', function() {
|
||||
$('.new').data("opened", false);
|
||||
});
|
||||
|
||||
$('#new-file-name').off('keypress').keypress(function(event) {
|
||||
if (event.keyCode == 13) {
|
||||
event.preventDefault();
|
||||
$('#new-file-form').submit();
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
$('#new-file-form').submit(function(event) {
|
||||
event.preventDefault();
|
||||
var value = $('#new-file-name').val(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user