Fix dropdown and rename
This commit is contained in:
parent
d167089c16
commit
f1c4721ea0
@ -122,6 +122,7 @@
|
|||||||
|
|
||||||
#odf-toolbar #dropdown{
|
#odf-toolbar #dropdown{
|
||||||
right: auto;
|
right: auto;
|
||||||
|
top: 66px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#body-user #document-title #header{
|
#body-user #document-title #header{
|
||||||
@ -144,12 +145,13 @@
|
|||||||
width: 80px;
|
width: 80px;
|
||||||
margin: 3px;
|
margin: 3px;
|
||||||
background-size:80px 24px;
|
background-size:80px 24px;
|
||||||
|
z-index: 110;
|
||||||
}
|
}
|
||||||
|
|
||||||
#document-title div{
|
#document-title div{
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
#document-title>input {
|
#document-title #header input {
|
||||||
height:14px;
|
height:14px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding:3px 6px;
|
padding:3px 6px;
|
||||||
|
@ -581,15 +581,15 @@ var documentsMain = {
|
|||||||
var extension = name.substr(lastPos + 1);
|
var extension = name.substr(lastPos + 1);
|
||||||
name = name.substr(0, lastPos);
|
name = name.substr(0, lastPos);
|
||||||
var input = $('<input type="text" class="filename"/>').val(name);
|
var input = $('<input type="text" class="filename"/>').val(name);
|
||||||
$('#document-title').append(input);
|
$('#header').append(input);
|
||||||
$('#document-title>div').hide();
|
$('#document-title-container').hide();
|
||||||
|
|
||||||
input.on('blur', function(){
|
input.on('blur', function(){
|
||||||
var newName = input.val();
|
var newName = input.val();
|
||||||
if (!newName || newName === name) {
|
if (!newName || newName === name) {
|
||||||
input.tipsy('hide');
|
input.tipsy('hide');
|
||||||
input.remove();
|
input.remove();
|
||||||
$('#document-title>div').show();
|
$('#document-title-container').show();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -600,7 +600,7 @@ var documentsMain = {
|
|||||||
if (Files.isFileNameValid(newName)) {
|
if (Files.isFileNameValid(newName)) {
|
||||||
input.tipsy('hide');
|
input.tipsy('hide');
|
||||||
input.remove();
|
input.remove();
|
||||||
$('#document-title>div').show();
|
$('#document-title-container').show();
|
||||||
documentsMain.renameDocument(newName);
|
documentsMain.renameDocument(newName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -797,7 +797,7 @@ $(document).ready(function() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$(document.body).on('click', '#document-title>div', documentsMain.onRenamePrompt);
|
$(document.body).on('click', '#document-title-container', documentsMain.onRenamePrompt);
|
||||||
$(document.body).on('click', '#odf-close', documentsMain.onClose);
|
$(document.body).on('click', '#odf-close', documentsMain.onClose);
|
||||||
$(document.body).on('click', '#odf-invite', documentsMain.onInvite);
|
$(document.body).on('click', '#odf-invite', documentsMain.onInvite);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user