mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 12:20:51 +08:00
Fix: Patch querySelector with numeric IDs
This commit is contained in:
parent
d47027ad6c
commit
39ffda345d
|
@ -1037,7 +1037,7 @@ Patch.prototype.togglePatchActive = function(oEvent, elClicked, elCorrespondingL
|
||||||
Patch.prototype.togglePatchActiveForClassLink = function(oEvent, elClicked, oClassCombination) {
|
Patch.prototype.togglePatchActiveForClassLink = function(oEvent, elClicked, oClassCombination) {
|
||||||
|
|
||||||
var sCorrespondingLinkId = this.getCorrespodingLinkId(elClicked.id, oClassCombination);
|
var sCorrespondingLinkId = this.getCorrespodingLinkId(elClicked.id, oClassCombination);
|
||||||
var elCorrespondingLink = document.querySelector('#' + this.escape(sCorrespondingLinkId));
|
var elCorrespondingLink = document.querySelector('[ID="' + this.escape(sCorrespondingLinkId) + '"]');
|
||||||
|
|
||||||
this.togglePatchActive(oEvent, elClicked, elCorrespondingLink);
|
this.togglePatchActive(oEvent, elClicked, elCorrespondingLink);
|
||||||
};
|
};
|
||||||
|
@ -1065,7 +1065,7 @@ Patch.prototype.patchLinkClickAll = function(oClassCombination) {
|
||||||
return function(oEvent) {
|
return function(oEvent) {
|
||||||
|
|
||||||
var sTableId = oEvent.srcElement.parentElement.parentElement.parentElement.parentElement.id;
|
var sTableId = oEvent.srcElement.parentElement.parentElement.parentElement.parentElement.id;
|
||||||
var elAddAll = document.querySelectorAll('#' + this.escape(sTableId) + ' a.' + oClassCombination.sClassLinkClicked);
|
var elAddAll = document.querySelectorAll('[ID="' + this.escape(sTableId) + '"] a.' + oClassCombination.sClassLinkClicked);
|
||||||
|
|
||||||
[].forEach.call(elAddAll,function(elem){
|
[].forEach.call(elAddAll,function(elem){
|
||||||
this.togglePatchActiveForClassLink(oEvent, elem, oClassCombination);
|
this.togglePatchActiveForClassLink(oEvent, elem, oClassCombination);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user