Add translates for analyse button. Fixup styles
This commit is contained in:
parent
a679455a0b
commit
71ff1e3cea
|
@ -664,9 +664,13 @@ function initPage() {
|
||||||
console.log(analyse_frames);
|
console.log(analyse_frames);
|
||||||
analyse_frames = !analyse_frames;
|
analyse_frames = !analyse_frames;
|
||||||
if (analyse_frames) {
|
if (analyse_frames) {
|
||||||
analyseBtn.toggleClass('btn-primary');
|
analyseBtn.addClass('btn-primary');
|
||||||
|
analyseBtn.removeClass('btn-secondary');
|
||||||
|
analyseBtn.attr('title', translate['Showing Analysis']);
|
||||||
} else {
|
} else {
|
||||||
analyseBtn.toggleClass('btn-secondary');
|
analyseBtn.removeClass('btn-primaryary');
|
||||||
|
analyseBtn.addClass('btn-secondary');
|
||||||
|
analyseBtn.attr('title', translate['Not Showing Analysis']);
|
||||||
}
|
}
|
||||||
for ( var i = 0, length = monitors.length; i < length; i++ ) {
|
for ( var i = 0, length = monitors.length; i < length; i++ ) {
|
||||||
monitors[i].show_analyse_frames(analyse_frames);
|
monitors[i].show_analyse_frames(analyse_frames);
|
||||||
|
|
|
@ -122,3 +122,7 @@ var canStreamNative = <?php echo canStreamNative()?'true':'false' ?>;
|
||||||
var refreshApplet = <?php echo (canStreamApplet() && $streamMode == "jpeg")?'true':'false' ?>;
|
var refreshApplet = <?php echo (canStreamApplet() && $streamMode == "jpeg")?'true':'false' ?>;
|
||||||
var appletRefreshTime = <?php echo ZM_RELOAD_CAMBOZOLA ?>;
|
var appletRefreshTime = <?php echo ZM_RELOAD_CAMBOZOLA ?>;
|
||||||
|
|
||||||
|
var translate = {
|
||||||
|
"Showing Analysis": '<?php echo translate('Showing Analysis'); ?>',
|
||||||
|
"Not Showing Analysis": '<?php echo translate('Not Showing Analysis'); ?>'
|
||||||
|
};
|
||||||
|
|
|
@ -169,13 +169,13 @@ if ( count($other_zones) ) {
|
||||||
<?php echo translate('State') ?>: <span id="stateValue<?php echo $monitor->Id() ?>"></span> - <span id="fpsValue<?php echo $monitor->Id() ?>"></span> fps
|
<?php echo translate('State') ?>: <span id="stateValue<?php echo $monitor->Id() ?>"></span> - <span id="fpsValue<?php echo $monitor->Id() ?>"></span> fps
|
||||||
</div>
|
</div>
|
||||||
<div id="StreamControlButtons">
|
<div id="StreamControlButtons">
|
||||||
<button type="button" id="analyseBtn" class="btn btn-primary" title="<?php echo translate('Show Analysis') ?>">
|
<button type="button" id="analyseBtn" class="btn btn-primary" title="<?php echo translate('Showing Analysis') ?>">
|
||||||
<i class="material-icons md-18">assessment</i>
|
<i class="material-icons md-18">assessment</i>
|
||||||
</button>
|
</button>
|
||||||
<button type="button" id="pauseBtn" title="<?php echo translate('Pause') ?>">
|
<button type="button" id="pauseBtn" class="btn btn-primary" title="<?php echo translate('Pause') ?>">
|
||||||
<i class="material-icons md-18">pause</i>
|
<i class="material-icons md-18">pause</i>
|
||||||
</button>
|
</button>
|
||||||
<button type="button" id="playBtn" title="<?php echo translate('Play') ?>">
|
<button type="button" id="playBtn" class="btn btn-primary" title="<?php echo translate('Play') ?>">
|
||||||
<i class="material-icons md-18">play_arrow</i>
|
<i class="material-icons md-18">play_arrow</i>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue