Removed ID from getpath
This commit is contained in:
parent
72e06e2c26
commit
f4fc947c62
8
web/static/js/jquery-getpath.js
vendored
8
web/static/js/jquery-getpath.js
vendored
@ -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('.');
|
||||
|
Loading…
Reference in New Issue
Block a user