changeCodec no longer needs to be passed this

pull/2714/head^2
Isaac Connor 2019-10-18 13:40:29 -04:00
parent 6a56de41f0
commit 524a39a224
2 changed files with 3 additions and 3 deletions

View File

@ -182,7 +182,7 @@ if ( canEdit('Events') ) {
</div>
<div id="codecControl">
<label for="codec"><?php echo translate('Codec') ?></label>
<?php echo htmlSelect('codec', $codecs, $codec, array('data-on-change-this'=>'changeCodec')); ?>
<?php echo htmlSelect('codec', $codecs, $codec, array('data-on-change'=>'changeCodec')); ?>
</div>
</div>
</div>

View File

@ -143,8 +143,8 @@ function setButtonState( element, butClass ) {
}
}
function changeCodec(element) {
location.replace(thisUrl + '?view=event&eid=' + eventData.Id + filterQuery + sortQuery+'&codec='+element.value);
function changeCodec() {
location.replace(thisUrl + '?view=event&eid=' + eventData.Id + filterQuery + sortQuery+'&codec='+$j('#codec').val());
}
function changeScale() {