mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-14 04:04:03 +00:00
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-datatables
|
||||
//= require osem-tickets
|
||||
//= require transifex-live
|
||||
|
||||
$(document).ready(function() {
|
||||
$('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 "splash" if content_for :splash
|
||||
= javascript_include_tag "application"
|
||||
= javascript_include_tag "//cdn.transifex.com/live.js"
|
||||
= csrf_meta_tags
|
||||
:javascript
|
||||
$(function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue