GiveToken / GiftBox

Repository for Sizzle
0 stars 0 forks source link

[1052] Fixes iOS Polymer Pop-up Bug #1058

Closed shreydesai closed 8 years ago

shreydesai commented 8 years ago

Wrote a function called closeInterestDialog() that closes the interest dialog box and applied to the _on---Click functions. Tested on the Xcode iPhone 6S simulator and it seems to work.

shreydesai commented 8 years ago

Added the following to document.ready() - on each click, the dialog will be closed, similar to what happens in the _closeInterestDialog function. An additional remove() method is added to ensure the element is removed from the DOM.

  // closes dialog box on click (iOS patch)
  $(this).click(function() {
    $('.interest-dialog').each(function(i, dialog) {
      dialog.close();
      $(this).remove();
    });
  });
wogsland commented 8 years ago

Did you mean to delete the branch & close the request?

shreydesai commented 8 years ago

Yeah, there were some issues with this branch. I'm going to send in another pull request once I fix the merge conflicts with the develop branch.