Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #12048 from arcturus/bug-914130
Browse files Browse the repository at this point in the history
Bug 914130 - Exporting contacts keeps the previous state
  • Loading branch information
arcturus committed Sep 10, 2013
2 parents 83c9eb8 + 1071cce commit 30ccc73
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions apps/communications/contacts/js/views/list.js
Expand Up @@ -1397,9 +1397,6 @@ contacts.List = (function() {

selectActionButton = document.getElementById('select-action');
selectActionButton.disabled = true;
selectActionButton.addEventListener('click', function onSelected(evt) {
selectAction(action);
});
selectAll = document.getElementById('select-all');
selectAll.addEventListener('click', handleSelection);
deselectAll = document.getElementById('deselect-all');
Expand All @@ -1418,6 +1415,10 @@ contacts.List = (function() {

selectActionButton.classList.remove('hide');
selectActionButton.textContent = title;
// Clear any previous click action and setup the current one
selectActionButton.removeEventListener('click', selectAction);
selectActionButton.addEventListener('click',
selectAction.bind(null, action));

// Show the select all/ deselecta ll butons
selectForm.classList.remove('hide');
Expand Down

0 comments on commit 30ccc73

Please sign in to comment.