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

Commit

Permalink
Bug 1221476 - [Contacts]When user taps "Cancel"or"Retry" button while…
Browse files Browse the repository at this point in the history
… importing Gmail contact, device will be stuck. r=ferjm, a=mahe
  • Loading branch information
Francisco Jordano authored and BavarianTomcat committed Nov 24, 2015
1 parent 74e7bee commit 24e351a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions shared/pages/import/js/curtain.js
Expand Up @@ -204,6 +204,7 @@ var Curtain = (function() {
*/
set oncancel(cancelCb) {
if (typeof cancelCb === 'function') {
delete cancelButton.onclick;
cancelButton.onclick = function on_cancel(e) {
delete cancelButton.onclick;
cancelCb();
Expand All @@ -221,6 +222,7 @@ var Curtain = (function() {
*/
set onretry(retryCb) {
if (typeof retryCb === 'function') {
delete retryButton.onclick;
retryButton.onclick = function on_retry(e) {
delete retryButton.onclick;
retryCb();
Expand All @@ -238,6 +240,7 @@ var Curtain = (function() {
*/
set onok(okCb) {
if (typeof okCb === 'function') {
delete okButton.onclick;
okButton.onclick = function on_ok(e) {
delete okButton.onclick;
okCb();
Expand Down

0 comments on commit 24e351a

Please sign in to comment.