Edit and Copy Assets is now using the new AJAX function

This commit is contained in:
johnnyq
2025-02-15 20:35:35 -05:00
parent 5f02bc07aa
commit ca0b1a1fb7
7 changed files with 931 additions and 415 deletions

View File

@@ -568,10 +568,16 @@ if (mysqli_num_rows($os_sql) > 0) {
<div class="dropdown dropleft text-center">
<button class="btn btn-secondary btn-sm" type="button" data-toggle="dropdown"><i class="fas fa-ellipsis-h"></i></button>
<div class="dropdown-menu">
<a class="dropdown-item" href="#" data-toggle="modal" data-target="#editAssetModal<?php echo $asset_id; ?>">
<a class="dropdown-item" href="#"
data-toggle="ajax-modal"
data-ajax-url="ajax/ajax_asset_edit.php"
data-ajax-id="<?php echo $asset_id; ?>">
<i class="fas fa-fw fa-edit mr-2"></i>Edit
</a>
<a class="dropdown-item" href="#" data-toggle="modal" data-target="#copyAssetModal<?php echo $asset_id; ?>">
<a class="dropdown-item" href="#"
data-toggle="ajax-modal"
data-ajax-url="ajax/ajax_asset_copy.php"
data-ajax-id="<?php echo $asset_id; ?>">
<i class="fas fa-fw fa-copy mr-2"></i>Copy
</a>
<?php if ($session_user_role > 2) { ?>
@@ -597,9 +603,6 @@ if (mysqli_num_rows($os_sql) > 0) {
<?php
require "modals/client_asset_edit_modal.php";
require "modals/client_asset_copy_modal.php";
}
?>