mirror of
https://github.com/ansible/awx.git
synced 2026-03-08 05:01:09 -02:30
Cleanup
This commit is contained in:
@@ -49,16 +49,16 @@
|
|||||||
export default function() {
|
export default function() {
|
||||||
return {
|
return {
|
||||||
restrict: 'E',
|
restrict: 'E',
|
||||||
link: function(scope, linkElement) {
|
link: function(scope, linkElement) {
|
||||||
var contents = Array.prototype.slice.apply(linkElement.parent().contents());
|
var contents = Array.prototype.slice.apply(linkElement.parent().contents());
|
||||||
var commentNode = contents.filter(function(node) {
|
var commentNode = contents.filter(function(node) {
|
||||||
// This selects a comment node
|
// This selects a comment node
|
||||||
return node.nodeType === 8;
|
return node.nodeType === 8;
|
||||||
});
|
});
|
||||||
|
|
||||||
var children = linkElement.children();
|
var children = linkElement.children();
|
||||||
$(commentNode[0]).nextAll().remove();
|
$(commentNode[0]).nextAll().remove();
|
||||||
$(commentNode[0]).after(children);
|
$(commentNode[0]).after(children);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user