Skip to content
Browse files

Bug 823370 - [FTU] Hit Import SIM contacts multiple time will create …

…duplicate contacts
  • Loading branch information...
1 parent 5212c03 commit fdd5c2127fd281f3297ba823ed0d42c725bd6530 @jmcanterafonseca jmcanterafonseca committed with samjoch Dec 20, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 apps/communications/ftu/js/sim_manager.js
View
4 apps/communications/ftu/js/sim_manager.js
@@ -23,10 +23,11 @@ var SimManager = {
importContacts: function sm_importContacts() {
var feedback = UIManager.simImportFeedback;
-
feedback.innerHTML = _('simContacts-importing');
UIManager.navBar.setAttribute('aria-disabled', 'true');
UIManager.loadingOverlay.classList.add('show-overlay');
+ var importButton = UIManager.simImportButton;
+ importButton.classList.add('disabled');
importSIMContacts(
function() {
@@ -39,6 +40,7 @@ var SimManager = {
feedback.innerHTML = _('simContacts-error');
UIManager.navBar.removeAttribute('aria-disabled');
UIManager.loadingOverlay.classList.remove('show-overlay');
+ importButton.classList.remove('disabled');
}.bind(this));
},

0 comments on commit fdd5c21

Please sign in to comment.
Something went wrong with that request. Please try again.