Portal: Fixed page scrolling when clicking on FilterBrick's tile on home page.

SVN:trunk[4764]
This commit is contained in:
Guillaume Lajarige
2017-06-20 14:22:18 +00:00
parent 51519a3659
commit 4301a5d39d

View File

@@ -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>