Change tooltip css class to item_image (bootstrap conflict)

This commit is contained in:
slawkens 2020-02-28 21:50:21 +01:00
parent 8c680608ff
commit 7424901aca
3 changed files with 5 additions and 5 deletions

View File

@ -151,7 +151,7 @@ function getItemImage($id, $count = 1)
$name = getItemNameById($id);
if(!empty($name)) {
$tooltip = ' class="tooltip" title="' . $name . '"';
$tooltip = ' class="item_image" title="' . $name . '"';
}
$file_name = $id;
@ -159,7 +159,7 @@ function getItemImage($id, $count = 1)
$file_name .= '-' . $count;
global $config;
return '<img src="' . $config['item_images_url'] . $file_name . '.gif"' . $tooltip . ' width="32" height="32" border="0" alt=" ' .$id . '" />';
return '<img src="' . $config['item_images_url'] . $file_name . '.gif"' . $tooltip . ' width="32" height="32" border="0" alt="' .$id . '" />';
}
function getFlagImage($country)

View File

@ -18,7 +18,7 @@ $title = "Creatures";
<script>
$(document).ready(function () {
Tipped.create('.tooltip');
Tipped.create('.item_image');
});
</script>
@ -146,7 +146,7 @@ if (empty($_REQUEST['creature'])) {
$name = getItemNameById($item['id']);
$tooltip = $name . '<br/>Chance: ' . round($item['chance'] / 1000, 2) . '%<br/>Max count: ' . $item['count'];
echo '<img src="' . $config['item_images_url'] . $item['id'] . '.gif" class="tooltip" title="' . $tooltip . '" width="32" height="32" border="0" alt=" ' . $name . '" />';
echo getItemImage($item['id']);
$i++;
}

View File

@ -2,7 +2,7 @@
<link rel="stylesheet" type="text/css" href="tools/css/tipped.css"/>
<script>
$(document).ready(function() {
Tipped.create('.tooltip');
Tipped.create('.item_image');
});
</script>
{% set rows = 0 %}