Fix aspect renaming after a regression caused by jquery upgrade, close #4822

This commit is contained in:
flaburgan 2014-03-05 23:03:48 +01:00
parent f12546bb78
commit 2c4dc830fc
2 changed files with 12 additions and 1 deletions

View file

@ -17,7 +17,7 @@ function updatePageAspectName( an_id, new_name) {
}
$(document).ready(function() {
$('#aspect_name_title').on('click', '#rename_aspect_link', function(){
$(document).on('click', '#rename_aspect_link', function(){
toggleAspectTitle();
});

View file

@ -53,6 +53,17 @@ Feature: User manages contacts
When I uncheck the first contact list button
Then I should have 0 contacts in "Cat People"
Scenario: Renaming an aspect
Given I am signed in
And I have an aspect called "Cat People"
When I am on the contacts page
And I follow "Cat People"
And I follow "Manage" within "#aspect_controls"
And I follow "rename"
And I fill in "aspect_name" with "Unicorn People"
And I press "update"
Then I should see "Unicorn People" within "#aspect_name_title"
Scenario: infinite scroll on contacts index
Given I am signed in