I am trying to disable the click and the addition of a class to navbar items in JQM. The click behavior is easy to prevent but I am having a brain fart trying to figure out how to prevent the ui-btn-active class from being applied to the clicked element. I only need the click behavior prevented when current === "Enter New" or current === "Enter Stats"

Preventing the click is easy, but I can't seem to figure out how to prevent the class being added even though the click and navigation is prevented. 

```
$(document).on("pageshow", "[data-role='page']", function () {
    var current = $(this).jqmData('title');
    $("[data-role='header'] h1").text(current);
    $("[data-role='navbar'] a.ui-btn-active").removeClass("ui-btn-active");

    // Add active class to current nav button

    $("[data-role='navbar'] a").each(function () {
        if ($(this).attr('data-id') === current || $(this).attr('data-alt') === current) {
            $(this).addClass('ui-btn-active');
        }
    });

    if (current === "Enter New" || current === "Enter Stats") {
        $("[data-role='navbar'] a").click(function () {
            event.preventDefault();
        });
    };
});

```