Skip to content

Commit

Permalink
refs #1659 : bugfix - old embed code page is not parsable on jquery
Browse files Browse the repository at this point in the history
mobile.

 -
  • Loading branch information
inureyes committed Mar 14, 2014
1 parent c29d54e commit 4543ce8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions library/view/iphoneView.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
function printMobileEntryContentView($blogid, $entry, $keywords = array()) {
$context = Model_Context::getInstance();
if (doesHaveOwnership() || ($entry['visibility'] >= 2) || (isset($_COOKIE['GUEST_PASSWORD']) && (trim($_COOKIE['GUEST_PASSWORD']) == trim($entry['password'])))) {
$content = getEntryContentView($blogid, $entry['id'], $entry['content'], $entry['contentformatter'], $keywords, 'Post', false);
$content = getEntryContentView($blogid, $entry['id'], $entry['content'], $entry['contentformatter'], $keywords, 'Post', true);
print '<div class="entry_body" data-role="content" data-theme="d">' . printMobileFreeImageResizer($content) . '</div>';
} else {
?>
Expand Down Expand Up @@ -232,7 +232,8 @@ function printMobileHTMLHeader($title = '') {
<link rel="stylesheet" type="text/css" href="<?php echo $context->getProperty('service.path');?>/resources/style/iphone/jquery.mobile-<?php echo JQUERYMOBILE_VERSION;?>.css" />
<script type="application/x-javascript" src="<?php echo $context->getProperty('service.path');?>/resources/script/jquery/jquery-<?php echo JQUERY_VERSION;?>.js"></script>
<script type="application/x-javascript" src="<?php echo $context->getProperty('service.path');?>/resources/script/jquery.mobile/jquery.mobile-<?php echo JQUERYMOBILE_VERSION;?>.js"></script>
<!--<script>
<script type="application/x-javascript" src="<?php echo $context->getProperty('service.path');?>/resources/script/common2.js"></script>
<!--<script>
$(document).bind("mobileinit", function(){$.mobile.touchOverflowEnabled = true;});
</script>-->
<?php
Expand Down

0 comments on commit 4543ce8

Please sign in to comment.