This commit is contained in:
Stella Rouzi 2015-01-19 16:38:54 +00:00
commit e9bcfc1af4
4 changed files with 11 additions and 10 deletions

View file

@ -34,6 +34,7 @@
//= require osem-datepickers //= require osem-datepickers
//= require osem-datatables //= require osem-datatables
//= require osem-tickets //= require osem-tickets
//= require osem-translation
$(document).ready(function() { $(document).ready(function() {
$('a[disabled=disabled]').click(function(event){ $('a[disabled=disabled]').click(function(event){

View file

@ -0,0 +1,6 @@
window.liveSettings = {
api_key: "CONFIG['transifex_live_api_key']",
picker: "bottom-right",
detectlang: true,
autocollect: true
};

View file

@ -8,15 +8,8 @@
= stylesheet_link_tag "application", :media => "all" = stylesheet_link_tag "application", :media => "all"
= javascript_include_tag "application" = javascript_include_tag "application"
= csrf_meta_tags = csrf_meta_tags
:javascript
window.liveSettings = {
api_key: "<%= CONFIG['transifex_live_api_key'] %>",
picker: "bottom-right",
detectlang: true,
autocollect: true
};
= content_for(:script_head) = content_for(:script_head)
=# javascript_include_tag "//cdn.transifex.com/live.js" = javascript_include_tag "//cdn.transifex.com/live.js"
= yield(:head) = yield(:head)
%body %body

View file

@ -21,6 +21,9 @@ defaults: &defaults
ichain: ichain:
enabled: false enabled: false
# Enter your key, provided by transifex live settings, in the quotes
transifex_live_api_key: ''
development: development:
<<: *defaults <<: *defaults
@ -31,5 +34,3 @@ production:
<<: *defaults <<: *defaults
# If you add more providers that do not require a key, you still have to create the 2 variables with sample data # If you add more providers that do not require a key, you still have to create the 2 variables with sample data
transifex_live_api_key: ''