|
@@ -323,7 +323,7 @@ Source: <input type="text" value="<?=Users::get_upload_sources()[0]?>" size="20"
|
323
|
323
|
}
|
324
|
324
|
?>
|
325
|
325
|
</select>
|
326
|
|
- <input type="text" id="resolution" name="resolution" size="10" class="hidden tooltip" title='Enter "Other" resolutions in the form ###x###' value="<?=$Torrent['Resolution']?>" readonly></input>
|
|
326
|
+ <input type="text" id="resolution" name="resolution" size="10" class="hidden tooltip" pattern="[0-9]+x[0-9]+" title='Enter "Other" resolutions in the form ###x###' value="<?=$Torrent['Resolution']?>" readonly></input>
|
327
|
327
|
<script>
|
328
|
328
|
if ($('#ressel').raw().value == "Other") {
|
329
|
329
|
$('#resolution').raw().readOnly = false
|
|
@@ -573,7 +573,7 @@ Source: <input type="text" value="<?=Users::get_upload_sources()[0]?>" size="20"
|
573
|
573
|
<?
|
574
|
574
|
foreach($this->Resolutions as $Res) {
|
575
|
575
|
echo "\t\t\t\t\t\t<option value=\"$Res\"";
|
576
|
|
- if ($Res == $Torrent['Resolution'] || (!isset($FoundRes) && isset($Torrent ['Resolution']) && $Res == "Other")) {
|
|
576
|
+ if ($Res == $Torrent['Resolution'] || (!isset($FoundRes) && isset($Torrent['Resolution']) && $Res == "Other")) {
|
577
|
577
|
echo " selected";
|
578
|
578
|
$FoundRes = true;
|
579
|
579
|
}
|