quocvuongdn

#bootstrap3 : fixed overlay effect in WindowsPhone8 #js

Jan 7th, 2014
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function initPopupSummary(){
  2. var scrollDiv = $('.table-container .col-xs-10').length;
  3.  
  4. if(scrollDiv < 0){ return false; }
  5.  
  6. $('.modal').on('show.bs.modal', function(){
  7. $('.table-container .col-xs-10').addClass('hiddenScroll');
  8. $('.modal').appendTo("body").removeClass('face');
  9. $(".modal").css({
  10. "z-index": "1500",
  11. "overflow-y": "auto",
  12. '-ms-scroll-chaining':'chained',
  13. '-ms-overflow-style': 'none'
  14. });
  15. $('body').addClass('bodyModal');
  16.  
  17. if(isMobile.Windows()){
  18. var heightOfModal = $('body').height();
  19. }
  20. });
  21. $('.modal').on('hidden.bs.modal', function(){
  22. $('.table-container .col-xs-10').removeClass('hiddenScroll');
  23. $('body').css('height', 'auto');
  24. $('body').removeClass('bodyModal');
  25. });
  26. }
Advertisement
Add Comment
Please, Sign In to add comment