Clickable panel titles at Metronic theme

I wanted the panel titles to be clickable as well, instead of just the little icon on the far right side of the panel. This is easy with just a little javascript.

This is specific for the Metronic theme. This code was placed in the /assets/scripts/core/app.js ..

Comments

3 responses to “Clickable panel titles at Metronic theme”

  1. David Avatar
    David

    This works like a charm! Just replaced jQuery with “$”
    :)

  2. David Avatar
    David

    You have to add the stopPropogation, otherwise you cannot click the up down arrow

    $(“.portlet > .portlet-title”).click(function (e) {
    e.stopPropagation();

  3. Rengga Avatar

    Can’t believe I found a specific code that I need, thanks!

Leave a Reply

Your email address will not be published. Required fields are marked *