1
0
mirror of https://github.com/owncloud/bookmarks.git synced 2024-12-01 05:24:11 +01:00

Hide also the delete action on rename tag. focus on input

This commit is contained in:
Brice Maron 2012-08-08 22:10:31 +00:00
parent 1bf1ca39a2
commit 811a863ef7

View File

@ -328,9 +328,9 @@ function renameTag(event) {
if($('input[name="tag_new_name"]').length) return; // Do nothing if a tag is currenlty edited
tag_el = $(this).closest('li');
tag_el.append('<input name="tag_new_name" type="text">');
tag_el.find('.tag_edit').hide();
tag_el.find('.tags_actions').hide();
tag_name = tag_el.find('.tag').hide().text();
tag_el.find('input').val(tag_name).bind('blur',submitTagName);
tag_el.find('input').val(tag_name).focus().bind('blur',submitTagName);
}
@ -339,6 +339,7 @@ function submitTagName(event) {
new_tag_name = tag_el.find('input').val();
old_tag_name = tag_el.find('.tag').show().text();
tag_el.find('.tag_edit').show();
tag_el.find('.tags_actions').show();
tag_el.find('input').remove();
//submit