Fix embed DOM classes
Classes, IDs and Names in the DOM have to begin with a letter. The $$hashKey however might not, so prefix it with embed_. This also makes the classes more unique, which is a good thing. Additionally, don't scroll on undefined should that ever happen. Fixes #45
This commit is contained in:
parent
2e963da581
commit
93f40c64e9
2 changed files with 5 additions and 3 deletions
|
@ -4,7 +4,7 @@
|
|||
Hide {{ plugin.name }}
|
||||
</button>
|
||||
|
||||
<div ng-bind-html="displayedContent" bo-class="plugin.$$hashKey"></div>
|
||||
<div ng-bind-html="displayedContent" bo-class="'embed_' + plugin.$$hashKey"></div>
|
||||
</div>
|
||||
|
||||
<div ng-hide="plugin.visible">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue