Fix dropdown and rename

pull/1/head
Victor Dubiniuk 10 years ago
parent d167089c16
commit f1c4721ea0

@ -122,6 +122,7 @@
#odf-toolbar #dropdown{
right: auto;
top: 66px;
}
#body-user #document-title #header{
@ -144,12 +145,13 @@
width: 80px;
margin: 3px;
background-size:80px 24px;
z-index: 110;
}
#document-title div{
position: relative;
}
#document-title>input {
#document-title #header input {
height:14px;
margin: 0;
padding:3px 6px;

@ -581,15 +581,15 @@ var documentsMain = {
var extension = name.substr(lastPos + 1);
name = name.substr(0, lastPos);
var input = $('<input type="text" class="filename"/>').val(name);
$('#document-title').append(input);
$('#document-title>div').hide();
$('#header').append(input);
$('#document-title-container').hide();
input.on('blur', function(){
var newName = input.val();
if (!newName || newName === name) {
input.tipsy('hide');
input.remove();
$('#document-title>div').show();
$('#document-title-container').show();
return;
}
else {
@ -600,7 +600,7 @@ var documentsMain = {
if (Files.isFileNameValid(newName)) {
input.tipsy('hide');
input.remove();
$('#document-title>div').show();
$('#document-title-container').show();
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-invite', documentsMain.onInvite);

Loading…
Cancel
Save