mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-22 10:08:45 +02:00
Portal: Fixed page scrolling when clicking on FilterBrick's tile on home page.
SVN:trunk[4764]
This commit is contained in:
@@ -34,4 +34,15 @@
|
||||
</div>
|
||||
</a>
|
||||
{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
// Preventing click on tile to scroll up
|
||||
$('#brick-{{ brick.GetId }}').on('click', function(oEvent){
|
||||
if(oEvent.target.type !== 'submit'){
|
||||
oEvent.preventDefault();
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user