Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…duplicate contacts
  • Loading branch information...
commit fdd5c2127fd281f3297ba823ed0d42c725bd6530 1 parent 5212c03
@jmcanterafonseca jmcanterafonseca authored samjoch committed
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));
},
Please sign in to comment.
Something went wrong with that request. Please try again.