mirror of
https://github.com/Nereziel/cs2-WeaponPaints.git
synced 2026-02-18 10:43:22 +00:00
Button Update
the button will not work if the skin is not selected which fixes possible bugs in the plugin.
This commit is contained in:
@@ -136,9 +136,20 @@ if (isset($_SESSION['steamid'])) {
|
|||||||
?>
|
?>
|
||||||
</select>
|
</select>
|
||||||
<br></br>
|
<br></br>
|
||||||
|
<?php if ($selectedSkinInfo !== null): ?>
|
||||||
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#weaponModal<?php echo $defindex ?>">
|
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#weaponModal<?php echo $defindex ?>">
|
||||||
Settings
|
Settings
|
||||||
</button>
|
</button>
|
||||||
|
<?php else: ?>
|
||||||
|
<button type="button" class="btn btn-primary" onclick="showSkinSelectionAlert()">
|
||||||
|
Settings
|
||||||
|
</button>
|
||||||
|
<script>
|
||||||
|
function showSkinSelectionAlert() {
|
||||||
|
alert("You need to select a skin first.");
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
Reference in New Issue
Block a user