]> source.dussan.org Git - gitea.git/commitdiff
Add app sub url for color picker js lib inclusion
authormrburns <m.cramet@gmail.com>
Fri, 8 May 2015 08:20:27 +0000 (10:20 +0200)
committermrburns <m.cramet@gmail.com>
Fri, 8 May 2015 08:20:27 +0000 (10:20 +0200)
Currently, the js file doesn't take into account the possibility of a sub url being used (wich is my case :) wich prevents its inclusion.

templates/repo/issue/list.tmpl

index 0c817bc1d8102d132a8f21b8aa284c40d3db6791..b64d8b81d7a4386e9c990010dc0f97a9851bb016 100644 (file)
@@ -96,7 +96,7 @@
         </div>
     </div>
 </div>
-<script src="/js/bootstrap-colorpicker.min.js"></script>
+<script src="{{AppSubUrl}}/js/bootstrap-colorpicker.min.js"></script>
 <script>
     $(function(){
         $('.label-color-picker').colorpicker({