src/cm/media/js/site/text_view_to_frame.js
author Production Moz <dev@sopinspace.com>
Fri, 18 May 2012 00:07:32 +0200
changeset 437 dec07877fd39
parent 341 053551f213fb
permissions -rw-r--r--
Avoids HTTP 403 on login and reset/change password, seehttps://docs.djangoproject.com/en/dev/ref/contrib/csrf/#ref-contrib-csrf.

v_toggleFrameSize = function() {
  if (gInFullScreen)
    _toNormalSize() ;
  else 
    _toFullScreenSize() ;
}

//v_toNormalSize = function() {
//  _toNormalSize() ;
//}
//
v_toInitialSize = function() {
  _toInitialSize() ;
  $(window).resize(function(){
//    console.log('before setFramesize in top resize winwidth' +  frames['text_view_frame'].frames['text_view_comments'].CY.DOM.winWidth()) ;
    _setFrameSize();
//    console.log('after setFramesize in top resize winwidth' +   frames['text_view_frame'].frames['text_view_comments'].CY.DOM.winWidth()) ;
  });
}