From: Fabrixxm Date: Wed, 17 Sep 2014 06:57:53 +0000 (+0200) Subject: remove dollar sign X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5bc69ccc70394fae541e44ed59ff6d989d0de77e;p=friendica.git remove dollar sign --- diff --git a/js/main.js b/js/main.js index 87b95d62ff..43d37a99bf 100644 --- a/js/main.js +++ b/js/main.js @@ -81,22 +81,22 @@ } $('a[rel^=#]').click(function(e){ e.preventDefault(); - var $parent = $(this).parent(); - var isSelected = (last_popup_button && $parent.attr('id') == last_popup_button.attr('id')); + var parent = $(this).parent(); + var isSelected = (last_popup_button && parent.attr('id') == last_popup_button.attr('id')); close_last_popup_menu(); if(isSelected) return false; menu = $( $(this).attr('rel') ); e.preventDefault(); e.stopPropagation(); if (menu.attr('popup')=="false") return false; - $parent.toggleClass("selected"); + parent.toggleClass("selected"); menu.toggle(); if (menu.css("display") == "none") { last_popup_menu = null; last_popup_button = null; } else { last_popup_menu = menu; - last_popup_button = $parent; + last_popup_button = parent; } return false; });