Skip to content

Commit b4f436f

Browse files
committed
Fix center
1 parent a7ccea2 commit b4f436f

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

main/document/showinframes.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,10 +271,12 @@ function init() {
271271
supplied: "'.$extension.'",
272272
useStateClassSkin: true,
273273
autoBlur: false,
274-
smoothPlayBar: true,
275274
keyEnabled: false,
276275
remainingDuration: true,
277-
toggleDuration: true
276+
toggleDuration: true,
277+
solution: "html, flash",
278+
errorAlerts: false,
279+
warningAlerts: false
278280
});
279281
';
280282

@@ -361,9 +363,11 @@ function init() {
361363
echo '</div>';
362364

363365
if ($jplayer_supported) {
364-
echo '<br /><div align="center">';
366+
echo '<br />';
367+
echo '<div class="col-md-3 col-md-offset-3">';
365368
echo DocumentManager::generate_video_preview($document_data);
366369
echo '</div>';
370+
367371
// media_element blocks jplayer disable it
368372
Display::$global_template->assign('show_media_element', 0);
369373
}

main/inc/lib/document.lib.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3208,7 +3208,6 @@ public static function generate_video_preview($document_data = array())
32083208
<div id="jquery_jplayer_1" class="jp-jplayer"></div>
32093209
<div class="jp-gui">
32103210
<div class="jp-video-play">
3211-
32123211
</div>
32133212
<div class="jp-interface">
32143213
<div class="jp-progress">
@@ -3226,9 +3225,9 @@ public static function generate_video_preview($document_data = array())
32263225
<div class="jp-volume-controls">
32273226
<button class="jp-mute" role="button" tabindex="0">mute</button>
32283227
<button class="jp-volume-max" role="button" tabindex="0">max volume</button>
3229-
<div class="jp-volume-bar">
3230-
<div class="jp-volume-bar-value"></div>
3231-
</div>
3228+
<div class="jp-volume-bar">
3229+
<div class="jp-volume-bar-value"></div>
3230+
</div>
32323231
</div>
32333232
<div class="jp-toggles">
32343233
<button class="jp-repeat" role="button" tabindex="0">repeat</button>

0 commit comments

Comments
 (0)