src/cm/media/js/client/c_sync.js
changeset 558 5ba711a2bd06
parent 556 69503659fe8f
child 600 fda73ac53450
equal deleted inserted replaced
557:6005880ca8c7 558:5ba711a2bd06
    14   this._q = null ;
    14   this._q = null ;
    15   
    15   
    16   this._iPreventClick = false ; // oh really ?
    16   this._iPreventClick = false ; // oh really ?
    17 }
    17 }
    18 
    18 
    19 // Are we on Safari mobile ?
    19 // SID: Are we on Safari mobile ?
    20 // made global to be used in templates/site/text_view_comments.html
    20 // made global to be used in templates/site/text_view_comments.html
    21 // and in media/js/site/c_text_view_comments.js
    21 // and in media/js/site/c_text_view_comments.js
    22 safari_mobile = /iPhone|iPod|iPad/.test(navigator.userAgent);
    22 safari_mobile = /iPhone|iPod|iPad/.test(navigator.userAgent);
    23 // If so, we must scroll the jQuery UI pane created for Safari mobile instead of the whole document
    23 // If so, we must scroll the jQuery UI pane created for Safari mobile instead of the whole document
    24 var the_scrolling_part = safari_mobile ? '#maincontainer' : 'document' ;
    24 var the_scrolling_part = safari_mobile ? '#maincontainer' : 'document' ;