Ignoring child element while triggering parent

Ignoring child element while triggering parent

I faced interesting problem. I'm using jquery mobile for my project, and i have footer with navbar inside. I wrote script to toggle it when i click/tap on it. But tap/click executes when i click on any element inside navbar, that is inside footer. I tried to use stopPropagation, but that disabled ajax page loading aswell. Is there any ways to ignore element only for certain script?
Here is example of my code:

  1. <div data-role="footer" data-id="main_footer" data-position="fixed" data-fullscreen="true" data-visible-on-page-show="false" data-tap-toggle="false" >
  2.                 <div data-role="navbar" data-iconpos="top" id="nav-bar">
  3.                     <ul>
  4.                         <li><a id="menu-item-home" data-icon="custom" href="index.html" class="ui-btn-active ui-state-persist">&nbsp;</a></li>
  5.                         <li><a id="menu-item-near-me" data-icon="custom" href="near-me.html">&nbsp;</a></li>
  6.                         <li><a id="menu-item-rewards" data-icon="custom" href="rewards.html">&nbsp;</a></li>
  7.                         <li><a id="menu-item-invite" data-icon="custom" href="invite.html">&nbsp;</a></li>
  8.                         <li><a id="menu-item-profile" data-icon="custom" href="profile.html">&nbsp;</a></li>
  9.                     </ul>
  10.                 </div><!-- /navbar -->
  11.             </div>
ANd here is my js:
  1. $("#index").live('pagecreate', function(e) {
  2. $(document).on("click", "[data-role='footer']", function(e) {
  3.    if(e.target != this){
  4. return;
  5.    }

  6.    if ($("[data-role='footer']").hasClass('ui-fixed-hidden'))
  7.    {
  8.       $("[data-role='footer']").removeClass('ui-fixed-hidden');
  9.    }
  10.    else
  11.    {
  12.        $("[data-role='footer']").addClass('ui-fixed-hidden');
  13.    }

  14. }); });
This almost works, but i want to make my footer not to hide when i click on link in navbar. Any ideas how to do this?