Changeset - 21f80c6cdf0c
[Not reviewed]
default
0 1 0
Takumi IINO - 10 years ago 2015-10-25 19:32:18
trot.thunder@gmail.com
js: wrap repo_switcher setup code in $(document).ready

Without wrapping in a function, some variables were made global, such as cache,
format, visual_show_public_icon.
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
kallithea/templates/base/base.html
Show inline comments
 
@@ -353,6 +353,7 @@
 
    </li>
 

	
 
    <script type="text/javascript">
 
        $(document).ready(function(){
 
        var visual_show_public_icon = "${c.visual.show_public_icon}" == "True";
 
        var cache = {}
 
        /*format the look of items in the list*/
 
@@ -443,6 +444,7 @@
 
            e.preventDefault();
 
            window.location = pyroutes.url('summary_home', {'repo_name': e.val});
 
        });
 
        });
 

	
 
        ## Global mouse bindings ##
 

	
0 comments (0 inline, 0 general)