Commit 2c9d94351180f42059c13543e17c24d98c58ede1

Authored by Gustavo
1 parent 71483900

Included contrast url in the base template

Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
amadeus/templates/base.html
@@ -145,7 +145,7 @@ @@ -145,7 +145,7 @@
145 </ul> 145 </ul>
146 </li> 146 </li>
147 <li style="width:40px;"> 147 <li style="width:40px;">
148 - <a href="" id="contrast_button"> 148 + <a href="{% url 'themes:contrast' %}" id="contrast_button">
149 <i style="font-size:15px;right: 150%;" class="glyphicon glyphicon-adjust"></i> 149 <i style="font-size:15px;right: 150%;" class="glyphicon glyphicon-adjust"></i>
150 </a> 150 </a>
151 151
@@ -209,11 +209,11 @@ @@ -209,11 +209,11 @@
209 $("#contrast_button" ).click(function() { 209 $("#contrast_button" ).click(function() {
210 if (Cookies.get('contrast_check')) { 210 if (Cookies.get('contrast_check')) {
211 Cookies.remove('contrast_check') 211 Cookies.remove('contrast_check')
212 - location.reload() 212 + //location.reload()
213 } 213 }
214 else { 214 else {
215 Cookies.set('contrast_check','contrast') 215 Cookies.set('contrast_check','contrast')
216 - location.reload() 216 + //location.reload()
217 } 217 }
218 218
219 }); 219 });