Move edit button out of dropdown menu

Closes #976
This commit is contained in:
Eric Allen 2010-03-07 16:54:17 -05:00
parent ec68e04f27
commit 42c4c199a9
3 changed files with 20 additions and 11 deletions

View file

@ -310,6 +310,17 @@ $(document).ready(function() {
$.post(this.value, params, null, 'script');
});
/* set behavior for edit icon */
$(".item-container a.edit_item").live('click', function (ev){
itemContainer = $(this).parents(".item-container");
$.ajax({
url: this.href,
beforeSend: function() { itemContainer.block({message: null});},
complete: function() { itemContainer.unblock();},
dataType: 'script'});
return false;
});
setup_container_toggles();
$('#toggle_action_new').click(function(){