wootook-reloaded/application/design/frontend/base/default/scripts/empire/planet/buildings.phtml
Gregory PLANCHAT 66805034a6 Configuration & Layout architecture updates
Fixed production bug
Fixed styles
Updated Action Controller

Signed-off-by: Gregory PLANCHAT <g.planchat@gmail.com>
2012-01-13 23:36:03 +01:00

28 lines
No EOL
918 B
PHTML

<div id="buildings" class="buildings item-list">
<h1><?php echo $this->__('Buildings')?></h1>
<?php echo $this->getPartial('item-list.items')->render()?>
<div class="clear"></div>
</div>
<script type="text/javascript">
/*<![CDATA[*/
(function($){
jQuery(document).ready(function(){
var items = jQuery('#buildings .item');
jQuery('.image', items).hover(function(e){
jQuery('.details', jQuery(this).parent()).show();
}, function(e){
jQuery('.details', jQuery(this).parent()).hide();
});
jQuery('.buy', items).hover(function(e){
jQuery('.details', jQuery(this)).addClass('hover');
}, function(e){
jQuery('.details', jQuery(this)).removeClass('hover');
});
jQuery('.buy', items).click(function(e){
e.preventDefault();
document.location.href = jQuery('a', jQuery(this)).attr('href');
});
});
})(jQuery);
/*]]>*/
</script>