add js code for live translation feature of transifex
This commit is contained in:
parent
08a47339a4
commit
fcfe1a4df1
3 changed files with 8 additions and 0 deletions
|
|
@ -30,6 +30,7 @@
|
||||||
//= require osem-datepickers
|
//= require osem-datepickers
|
||||||
//= require osem-datatables
|
//= require osem-datatables
|
||||||
//= require osem-tickets
|
//= require osem-tickets
|
||||||
|
//= require transifex-live
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('a[disabled=disabled]').click(function(event){
|
$('a[disabled=disabled]').click(function(event){
|
||||||
|
|
|
||||||
6
app/assets/javascripts/transifex-live.js
Normal file
6
app/assets/javascripts/transifex-live.js
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
window.liveSettings = {
|
||||||
|
api_key: "cf866a61277842b39c897c5a0b5ec075",
|
||||||
|
picker: "bottom-right",
|
||||||
|
detectlang: true,
|
||||||
|
autocollect: true
|
||||||
|
};
|
||||||
|
|
@ -8,6 +8,7 @@
|
||||||
= stylesheet_link_tag "application", :media => "all"
|
= stylesheet_link_tag "application", :media => "all"
|
||||||
= stylesheet_link_tag "splash" if content_for :splash
|
= stylesheet_link_tag "splash" if content_for :splash
|
||||||
= javascript_include_tag "application"
|
= javascript_include_tag "application"
|
||||||
|
= javascript_include_tag "//cdn.transifex.com/live.js"
|
||||||
= csrf_meta_tags
|
= csrf_meta_tags
|
||||||
:javascript
|
:javascript
|
||||||
$(function() {
|
$(function() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue