Commit
…rs. [#1013]
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -219,7 +219,7 @@ Document.implement({ | |
var types = { | ||
|
||
string: function(id, nocash, doc){ | ||
id = Slick.find(doc, '#' + id); | ||
id = Slick.find(doc, '#' + id.replace(/(\W)/g, '\\$1')); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
istrasoft
|
||
return (id) ? types.element(id, nocash) : null; | ||
}, | ||
|
||
|
@@ -606,7 +606,7 @@ Element.implement({ | |
}, | ||
|
||
getElementById: function(id){ | ||
return document.id(Slick.find(this, '#' + id)); | ||
return document.id(Slick.find(this, '#' + ('' + id).replace(/(\W)/g, '\\$1'))); | ||
This comment has been minimized.
Sorry, something went wrong.
digitarald
Contributor
|
||
}, | ||
|
||
getSelected: function(){ | ||
|
+33 −0 | 1.3client/Element/Element.js |
I was thinking, we could use Element.getElementById(doc, id) here cant we?