changed templates to use script tag rather than div tag and that way browsers don't try and read them as html

This commit is contained in:
Connor Turland 2014-05-17 07:32:52 -04:00
parent f62107ba43
commit 53544e05a9

View file

@ -5,7 +5,7 @@
<div class="templates"> <div class="templates">
<div class="topicTemplate"> <script type="text/template" class="topicTemplate">
<div class="result{{rtype}}"> <div class="result{{rtype}}">
<div class="topicMetacode"> <div class="topicMetacode">
<img src="{{typeImageURL}}" class="topicIcon" /> <img src="{{typeImageURL}}" class="topicIcon" />
@ -42,9 +42,9 @@
</div> </div>
<div class="clearfloat"></div> <div class="clearfloat"></div>
</div> </div>
</div> </script>
<div class="mapTemplate"> <script type="text/template" class="mapTemplate">
<div class="result{{rtype}}"> <div class="result{{rtype}}">
<img class="icon" src="/assets/map.png"> <img class="icon" src="/assets/map.png">
<div class="resultText"> <div class="resultText">
@ -73,9 +73,9 @@
</div> </div>
<div class="clearfloat"></div> <div class="clearfloat"></div>
</div> </div>
</div> </script>
<div class="mapperTemplate"> <script type="text/template" class="mapperTemplate">
<div class="result{{rtype}}"> <div class="result{{rtype}}">
<img class="icon" width="28" height="28" src="/assets/MMCCicon_mapper.png"> <img class="icon" width="28" height="28" src="/assets/MMCCicon_mapper.png">
<div class="resultText"> <div class="resultText">
@ -92,9 +92,9 @@
</div> </div>
<div class="clearfloat"></div> <div class="clearfloat"></div>
</div> </div>
</div> </script>
<div class="synapseTemplate"> <script type="text/template" class="synapseTemplate">
<div class="result{{rtype}}"> <div class="result{{rtype}}">
<p class="autocompleteSection synapseDesc">{{label}}</p> <p class="autocompleteSection synapseDesc">{{label}}</p>
<div class="autocompleteSection synapsePermission {{permission}}"></div> <div class="autocompleteSection synapsePermission {{permission}}"></div>
@ -103,6 +103,6 @@
</div> </div>
<div class="clearfloat"></div> <div class="clearfloat"></div>
</div> </div>
</div> </script>
</div> </div>