From: <hn...@us...> - 2016-02-10 16:38:05
|
Author: hnategh Date: Wed Feb 10 17:37:57 2016 New Revision: 54973 URL: http://svn.stylite.de/viewvc/egroupware?rev=54973&view=rev Log: Mobile theme W.I.P.: - Add orientation class in DOM Modified: trunk/jdots/js/fw_mobile.js Modified: trunk/jdots/js/fw_mobile.js URL: http://svn.stylite.de/viewvc/egroupware/trunk/jdots/js/fw_mobile.js?rev=54973&r1=54972&r2=54973&view=diff ============================================================================== --- trunk/jdots/js/fw_mobile.js (original) +++ trunk/jdots/js/fw_mobile.js Wed Feb 10 17:37:57 2016 @@ -343,7 +343,17 @@ */ orientation: function () { - if (!this.isLandscape()) this.toggleMenu('on'); + var $body = jQuery('body'); + if (!this.isLandscape()){ + this.toggleMenu('on'); + $body.removeClass('landscape').addClass('portrait'); + } + else + { + + $body.removeClass('portrait').addClass('landscape'); + } + }, /** |