mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-27 02:51:57 +02:00
add query string utility function
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user