removing composer-mobile.tpl

was totally a bad idea.
v1.18.x
psychobunny 10 years ago
parent 8234e4cc07
commit 7282bbafb2

@ -254,11 +254,9 @@ define('composer', [
isGuestPost = composer.posts[post_uuid] ? parseInt(composer.posts[post_uuid].uid, 10) === 0 : null; isGuestPost = composer.posts[post_uuid] ? parseInt(composer.posts[post_uuid].uid, 10) === 0 : null;
composer.bsEnvironment = utils.findBootstrapEnvironment(); composer.bsEnvironment = utils.findBootstrapEnvironment();
var template = (composer.bsEnvironment === 'xs' || composer.bsEnvironment === 'sm') ? 'composer-mobile' : 'composer';
var data = { var data = {
mobile: template === 'composer-mobile', mobile: template === (composer.bsEnvironment === 'xs' || composer.bsEnvironment === 'sm'),
allowTopicsThumbnail: allowTopicsThumbnail, allowTopicsThumbnail: allowTopicsThumbnail,
showTags: isTopic || isMain, showTags: isTopic || isMain,
minimumTagLength: config.minimumTagLength, minimumTagLength: config.minimumTagLength,
@ -269,7 +267,7 @@ define('composer', [
formatting: composer.formatting formatting: composer.formatting
}; };
parseAndTranslate(template, data, function(composerTemplate) { parseAndTranslate('composer', data, function(composerTemplate) {
if ($('#cmp-uuid-' + post_uuid).length) { if ($('#cmp-uuid-' + post_uuid).length) {
return; return;
} }

Loading…
Cancel
Save