src/cm/media/js/client/c_sync.js
changeset 556 69503659fe8f
parent 553 bf26fb47a14c
child 558 5ba711a2bd06
equal deleted inserted replaced
554:8e116b8ddbc3 556:69503659fe8f
    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 // Are we on Safari mobile ?
    20 var safari_mobile = /iPhone|iPod|iPad/.test(navigator.userAgent);
    20 // made global to be used in templates/site/text_view_comments.html
       
    21 // and in media/js/site/c_text_view_comments.js
       
    22 safari_mobile = /iPhone|iPod|iPad/.test(navigator.userAgent);
    21 // 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
    22 var the_scrolling_part = safari_mobile ? '#maincontainer' : 'document' ;
    24 var the_scrolling_part = safari_mobile ? '#maincontainer' : 'document' ;
    23 
    25 
    24 // "Add comment" height and margin, to offset comments' display
    26 // "Add comment" height and margin, to offset comments' display
    25 var add_comment_offset = 30; // px
    27 var add_comment_offset = 30; // px