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.
|
// Add the element name.
|
||||||
var cur = this[0].nodeName.toLowerCase();
|
var cur = this[0].nodeName.toLowerCase();
|
||||||
|
|
||||||
// Determine the IDs and path.
|
// Determine the path.
|
||||||
var id = this.attr('id');
|
|
||||||
var cls = this.attr('class');
|
var cls = this.attr('class');
|
||||||
|
|
||||||
|
|
||||||
// Add the #id if there is one.
|
|
||||||
if ( typeof id != 'undefined' )
|
|
||||||
cur += '#' + id;
|
|
||||||
|
|
||||||
// Add any classes.
|
// Add any classes.
|
||||||
if ( typeof cls != 'undefined' )
|
if ( typeof cls != 'undefined' )
|
||||||
cur += '.' + cls.split(/[\s\n]+/).join('.');
|
cur += '.' + cls.split(/[\s\n]+/).join('.');
|
||||||
|
Loading…
Reference in New Issue
Block a user