add composing mobile classes if composing on mobile

v1.18.x
psychobunny 10 years ago
parent 7282bbafb2
commit 7227dfd704

@ -254,9 +254,9 @@ define('composer', [
isGuestPost = composer.posts[post_uuid] ? parseInt(composer.posts[post_uuid].uid, 10) === 0 : null;
composer.bsEnvironment = utils.findBootstrapEnvironment();
var data = {
mobile: template === (composer.bsEnvironment === 'xs' || composer.bsEnvironment === 'sm'),
mobile: composer.bsEnvironment === 'xs' || composer.bsEnvironment === 'sm',
allowTopicsThumbnail: allowTopicsThumbnail,
showTags: isTopic || isMain,
minimumTagLength: config.minimumTagLength,

@ -34,8 +34,7 @@ define('composer/resize', function() {
// todo, lump in browsers that don't support transform (ie8) here
// at this point we should use modernizr
if (env === 'sm' || env === 'xs' || window.innerHeight < 480) {
app.toggleNavbar(false);
postContainer.find('textarea').css('height', $(window).height());
$('html').addClass('composing mobile');
}
if (config.hasImageUploadPlugin) {

Loading…
Cancel
Save