Fix javascript errors with invalid json because of commas

This commit is contained in:
Felipe Artur 2016-04-19 17:54:20 -03:00
parent 6a19467c41
commit 97b5e49d30
1 changed files with 1 additions and 1 deletions

View File

@ -151,6 +151,6 @@
:javascript
new MilestoneSelect('{"namespace":"#{@project.namespace.path}","path":"#{@project.path}"}');
new LabelsSelect();
new IssuableContext('#{current_user.to_json(only: [:username, :id, :name])}');
new IssuableContext('#{escape_javascript(current_user.to_json(only: [:username, :id, :name]))}');
new Subscription('.subscription')
new Sidebar();