From f4fc947c627797c41ec28c0161ff6b96d0cabf7e Mon Sep 17 00:00:00 2001 From: HipsterCat Date: Thu, 25 Oct 2018 12:03:14 +0200 Subject: [PATCH] Removed ID from getpath --- web/static/js/jquery-getpath.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/web/static/js/jquery-getpath.js b/web/static/js/jquery-getpath.js index 6747558..0e4b474 100644 --- a/web/static/js/jquery-getpath.js +++ b/web/static/js/jquery-getpath.js @@ -10,15 +10,9 @@ jQuery.fn.extend({ // Add the element name. var cur = this[0].nodeName.toLowerCase(); - // Determine the IDs and path. - var id = this.attr('id'); + // Determine the path. var cls = this.attr('class'); - - // Add the #id if there is one. - if ( typeof id != 'undefined' ) - cur += '#' + id; - // Add any classes. if ( typeof cls != 'undefined' ) cur += '.' + cls.split(/[\s\n]+/).join('.');