add query string utility function

This commit is contained in:
Brian Gough 2016-06-16 14:03:42 +01:00
parent 8a0fa1321d
commit f045eb65d3

View file

@ -19,6 +19,11 @@ define [
else
$scope.modifierKey = "Ctrl"
# utility for making a query string from a hash, could use jquery $.param
createQueryString = (args) ->
qs_args = ("#{k}=#{v}" for k, v of args)
if qs_args.length then "?" + qs_args.join("&") else ""
$scope.$on "project:joined", () ->
return if !autoCompile
autoCompile = false