Commit 2fce2408134f8ba28bf6f42efa10abe41b9156cf

Authored by Rafael Manzo
Committed by Heitor
1 parent 64135a3f

Better variable name for Repository.Branch fetch var

app/assets/javascripts/repository/branch.js.coffee
@@ -37,11 +37,11 @@ class Repository.Branch @@ -37,11 +37,11 @@ class Repository.Branch
37 if address == "" 37 if address == ""
38 return 38 return
39 39
40 - el = $("#repository_branch")  
41 - el.empty() # remove old options 40 + branches_select_box = $("#repository_branch")
  41 + branches_select_box.empty() # remove old options
42 42
43 if @names[address]? 43 if @names[address]?
44 - @fill_options(@names[address], el) 44 + @fill_options(@names[address], branches_select_box)
45 return 45 return
46 46
47 scm_type = $("#repository_scm_type").val() 47 scm_type = $("#repository_scm_type").val()
@@ -54,4 +54,4 @@ class Repository.Branch @@ -54,4 +54,4 @@ class Repository.Branch
54 options = data["branches"] 54 options = data["branches"]
55 if options != null 55 if options != null
56 context.names[address] = options 56 context.names[address] = options
57 - context.fill_options(options, el) 57 + context.fill_options(options, branches_select_box)