mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
Change tooltip css class to item_image (bootstrap conflict)
This commit is contained in:
parent
8c680608ff
commit
7424901aca
@ -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)
|
||||
|
@ -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++;
|
||||
}
|
||||
|
||||
|
@ -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 %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user