From a83bd6e800d633770d35ed787e0ea1f7c2091b53 Mon Sep 17 00:00:00 2001 From: Godwin Date: Sun, 17 Jan 2016 16:50:46 -0800 Subject: [PATCH] Removed old files and fixed asset precompilation --- .gitignore | 1 + Gemfile | 8 +- app/assets/javascripts/application.js.coffee | 217 -- app/assets/javascripts/buoy-settings.json | 12 - app/assets/javascripts/event_types.js.coffee | 3 - app/assets/javascripts/events.js.coffee | 3 - app/assets/javascripts/oauths.js.coffee | 3 - app/assets/javascripts/translate.js.coffee | 121 - app/assets/javascripts/translations.js | 75 - .../workshop_facilitators.js.coffee | 3 - .../workshop_requested_resources.js.coffee | 3 - app/assets/javascripts/workshops.js.coffee | 3 - .../stylesheets/bumbleberry-settings.json | 4 - .../stylesheets/translations/and_chr-40.scss | 241 -- .../stylesheets/translations/and_chr-42.scss | 279 -- .../stylesheets/translations/and_ff-33.scss | 241 -- .../stylesheets/translations/and_ff-39.scss | 279 -- .../stylesheets/translations/and_uc-9.9.scss | 8 - .../stylesheets/translations/android-2.1.scss | 4 - .../stylesheets/translations/android-2.2.scss | 4 - .../stylesheets/translations/android-2.3.scss | 8 - .../stylesheets/translations/android-3.scss | 4 - .../stylesheets/translations/android-37.scss | 241 -- .../stylesheets/translations/android-4.1.scss | 8 - .../translations/android-4.2-4.3.scss | 8 - .../translations/android-4.4.3-4.4.4.scss | 8 - .../stylesheets/translations/android-4.4.scss | 8 - .../stylesheets/translations/android-4.scss | 8 - .../stylesheets/translations/android-40.scss | 279 -- .../stylesheets/translations/bb-10.scss | 4 - app/assets/stylesheets/translations/bb-7.scss | 8 - .../stylesheets/translations/chrome-10.scss | 4 - .../stylesheets/translations/chrome-11.scss | 4 - .../stylesheets/translations/chrome-12.scss | 4 - .../stylesheets/translations/chrome-13.scss | 4 - .../stylesheets/translations/chrome-14.scss | 4 - .../stylesheets/translations/chrome-15.scss | 4 - .../stylesheets/translations/chrome-16.scss | 8 - .../stylesheets/translations/chrome-17.scss | 4 - .../stylesheets/translations/chrome-18.scss | 4 - .../stylesheets/translations/chrome-19.scss | 8 - .../stylesheets/translations/chrome-20.scss | 8 - .../stylesheets/translations/chrome-21.scss | 12 - .../stylesheets/translations/chrome-22.scss | 8 - .../stylesheets/translations/chrome-23.scss | 8 - .../stylesheets/translations/chrome-24.scss | 12 - .../stylesheets/translations/chrome-25.scss | 8 - .../stylesheets/translations/chrome-26.scss | 8 - .../stylesheets/translations/chrome-27.scss | 12 - .../stylesheets/translations/chrome-28.scss | 8 - .../stylesheets/translations/chrome-29.scss | 8 - .../stylesheets/translations/chrome-30.scss | 12 - .../stylesheets/translations/chrome-31.scss | 12 - .../stylesheets/translations/chrome-32.scss | 12 - .../stylesheets/translations/chrome-33.scss | 12 - .../stylesheets/translations/chrome-34.scss | 12 - .../stylesheets/translations/chrome-35.scss | 12 - .../stylesheets/translations/chrome-36.scss | 12 - .../stylesheets/translations/chrome-37.scss | 12 - .../stylesheets/translations/chrome-38.scss | 8 - .../stylesheets/translations/chrome-39.scss | 8 - .../stylesheets/translations/chrome-4.scss | 8 - .../stylesheets/translations/chrome-40.scss | 8 - .../stylesheets/translations/chrome-41.scss | 8 - .../stylesheets/translations/chrome-42.scss | 8 - .../stylesheets/translations/chrome-43.scss | 8 - .../stylesheets/translations/chrome-44.scss | 8 - .../stylesheets/translations/chrome-45.scss | 8 - .../stylesheets/translations/chrome-46.scss | 8 - .../stylesheets/translations/chrome-47.scss | 8 - .../stylesheets/translations/chrome-5.scss | 4 - .../stylesheets/translations/chrome-6.scss | 4 - .../stylesheets/translations/chrome-7.scss | 4 - .../stylesheets/translations/chrome-8.scss | 4 - .../stylesheets/translations/chrome-9.scss | 4 - .../stylesheets/translations/edge-1.scss | 279 -- .../stylesheets/translations/firefox-10.scss | 4 - .../stylesheets/translations/firefox-11.scss | 4 - .../stylesheets/translations/firefox-12.scss | 8 - .../stylesheets/translations/firefox-13.scss | 4 - .../stylesheets/translations/firefox-14.scss | 4 - .../stylesheets/translations/firefox-15.scss | 4 - .../stylesheets/translations/firefox-16.scss | 4 - .../stylesheets/translations/firefox-17.scss | 4 - .../stylesheets/translations/firefox-18.scss | 4 - .../stylesheets/translations/firefox-19.scss | 4 - .../stylesheets/translations/firefox-2.scss | 4 - .../stylesheets/translations/firefox-20.scss | 4 - .../stylesheets/translations/firefox-21.scss | 4 - .../stylesheets/translations/firefox-22.scss | 4 - .../stylesheets/translations/firefox-23.scss | 4 - .../stylesheets/translations/firefox-24.scss | 8 - .../stylesheets/translations/firefox-25.scss | 8 - .../stylesheets/translations/firefox-26.scss | 8 - .../stylesheets/translations/firefox-27.scss | 8 - .../stylesheets/translations/firefox-28.scss | 4 - .../stylesheets/translations/firefox-29.scss | 4 - .../stylesheets/translations/firefox-3.5.scss | 4 - .../stylesheets/translations/firefox-3.6.scss | 4 - .../stylesheets/translations/firefox-3.scss | 4 - .../stylesheets/translations/firefox-30.scss | 8 - .../stylesheets/translations/firefox-31.scss | 8 - .../stylesheets/translations/firefox-32.scss | 8 - .../stylesheets/translations/firefox-33.scss | 4 - .../stylesheets/translations/firefox-34.scss | 4 - .../stylesheets/translations/firefox-35.scss | 8 - .../stylesheets/translations/firefox-36.scss | 8 - .../stylesheets/translations/firefox-37.scss | 8 - .../stylesheets/translations/firefox-38.scss | 8 - .../stylesheets/translations/firefox-39.scss | 8 - .../stylesheets/translations/firefox-4.scss | 4 - .../stylesheets/translations/firefox-40.scss | 8 - .../stylesheets/translations/firefox-41.scss | 8 - .../stylesheets/translations/firefox-42.scss | 8 - .../stylesheets/translations/firefox-5.scss | 4 - .../stylesheets/translations/firefox-6.scss | 4 - .../stylesheets/translations/firefox-7.scss | 4 - .../stylesheets/translations/firefox-8.scss | 4 - .../stylesheets/translations/firefox-9.scss | 4 - .../stylesheets/translations/ie-10.scss | 8 - .../stylesheets/translations/ie-11.scss | 8 - .../stylesheets/translations/ie-5.5.scss | 4 - app/assets/stylesheets/translations/ie-6.scss | 8 - app/assets/stylesheets/translations/ie-7.scss | 4 - app/assets/stylesheets/translations/ie-8.scss | 8 - app/assets/stylesheets/translations/ie-9.scss | 8 - .../stylesheets/translations/ie_mob-10.scss | 8 - .../stylesheets/translations/ie_mob-11.scss | 8 - .../stylesheets/translations/ios_saf-3.2.scss | 4 - .../translations/ios_saf-4.0-4.1.scss | 4 - .../translations/ios_saf-4.2-4.3.scss | 4 - .../translations/ios_saf-5.0-5.1.scss | 4 - .../translations/ios_saf-6.0-6.1.scss | 8 - .../translations/ios_saf-7.0-7.1.scss | 8 - .../translations/ios_saf-8.1-8.4.scss | 8 - .../stylesheets/translations/ios_saf-8.1.scss | 241 -- .../stylesheets/translations/ios_saf-8.scss | 8 - .../stylesheets/translations/ios_saf-9.scss | 309 -- .../translations/op_mini-5.0-8.0.scss | 8 - .../stylesheets/translations/op_mob-10.scss | 4 - .../stylesheets/translations/op_mob-11.1.scss | 4 - .../stylesheets/translations/op_mob-11.5.scss | 4 - .../stylesheets/translations/op_mob-11.scss | 4 - .../stylesheets/translations/op_mob-12.1.scss | 8 - .../stylesheets/translations/op_mob-12.scss | 8 - .../stylesheets/translations/op_mob-24.scss | 241 -- .../stylesheets/translations/op_mob-30.scss | 309 -- .../translations/opera-10.0-10.1.scss | 8 - .../stylesheets/translations/opera-10.5.scss | 4 - .../stylesheets/translations/opera-10.6.scss | 4 - .../stylesheets/translations/opera-11.1.scss | 4 - .../stylesheets/translations/opera-11.5.scss | 4 - .../stylesheets/translations/opera-11.6.scss | 4 - .../stylesheets/translations/opera-11.scss | 4 - .../stylesheets/translations/opera-12.1.scss | 4 - .../stylesheets/translations/opera-12.scss | 8 - .../stylesheets/translations/opera-15.scss | 8 - .../stylesheets/translations/opera-16.scss | 8 - .../stylesheets/translations/opera-17.scss | 8 - .../stylesheets/translations/opera-18.scss | 8 - .../stylesheets/translations/opera-19.scss | 8 - .../stylesheets/translations/opera-20.scss | 8 - .../stylesheets/translations/opera-21.scss | 8 - .../stylesheets/translations/opera-22.scss | 8 - .../stylesheets/translations/opera-23.scss | 8 - .../stylesheets/translations/opera-24.scss | 8 - .../stylesheets/translations/opera-25.scss | 4 - .../stylesheets/translations/opera-26.scss | 4 - .../stylesheets/translations/opera-27.scss | 4 - .../stylesheets/translations/opera-28.scss | 4 - .../stylesheets/translations/opera-29.scss | 8 - .../stylesheets/translations/opera-30.scss | 8 - .../stylesheets/translations/opera-31.scss | 8 - .../stylesheets/translations/opera-32.scss | 8 - .../translations/opera-9.5-9.6.scss | 4 - .../stylesheets/translations/opera-9.scss | 4 - .../stylesheets/translations/safari-3.1.scss | 4 - .../stylesheets/translations/safari-3.2.scss | 4 - .../stylesheets/translations/safari-4.scss | 8 - .../stylesheets/translations/safari-5.1.scss | 8 - .../stylesheets/translations/safari-5.scss | 4 - .../stylesheets/translations/safari-6.1.scss | 8 - .../stylesheets/translations/safari-6.scss | 4 - .../stylesheets/translations/safari-7.1.scss | 8 - .../stylesheets/translations/safari-7.scss | 8 - .../stylesheets/translations/safari-8.scss | 8 - .../stylesheets/translations/safari-9.scss | 8 - app/helpers/conference_admins_helper.rb | 2 - .../conference_host_organizations_helper.rb | 2 - ...onference_registration_responses_helper.rb | 2 - .../conference_registrations_helper.rb | 2 - ...nference_registraton_form_fields_helper.rb | 2 - app/helpers/conference_types_helper.rb | 2 - app/helpers/conferences_helper.rb | 4 - app/helpers/event_types_helper.rb | 2 - app/helpers/events_helper.rb | 2 - app/helpers/locations_helper.rb | 2 - app/helpers/oauths_helper.rb | 2 - app/helpers/organization_statuses_helper.rb | 2 - app/helpers/organizations_helper.rb | 3 - app/helpers/pages_helper.rb | 3 - .../registration_form_fields_helper.rb | 2 - .../user_organization_relationships_helper.rb | 2 - app/helpers/user_sessions_helper.rb | 2 - app/helpers/users_helper.rb | 2 - app/helpers/versions_helper.rb | 2 - app/helpers/workshop_facilitators_helper.rb | 2 - .../workshop_presentation_styles_helper.rb | 2 - .../workshop_requested_resources_helper.rb | 2 - app/helpers/workshop_resources_helper.rb | 2 - app/helpers/workshop_streams_helper.rb | 2 - app/helpers/workshops_helper.rb | 4 - app/views/conference_admins/_form.html.haml | 16 - app/views/conference_admins/edit.html.haml | 7 - app/views/conference_admins/index.html.haml | 21 - app/views/conference_admins/new.html.haml | 5 - app/views/conference_admins/show.html.haml | 12 - .../_form.html.haml | 19 - .../edit.html.haml | 7 - .../index.html.haml | 23 - .../new.html.haml | 5 - .../show.html.haml | 15 - .../conference_registrations/_form.html.haml | 5 - .../conference_registrations/edit.html.haml | 7 - .../conference_registrations/index.html.haml | 23 - .../conference_registrations/new.html.haml | 5 - .../conference_registrations/show.html.haml | 15 - app/views/conference_types/_form.html.haml | 16 - app/views/conference_types/edit.html.haml | 7 - app/views/conference_types/index.html.haml | 21 - app/views/conference_types/new.html.haml | 5 - app/views/conference_types/show.html.haml | 12 - app/views/event_locations/edit.html.haml | 23 - app/views/event_types/_form.html.haml | 16 - app/views/event_types/edit.html.haml | 7 - app/views/event_types/index.html.haml | 21 - app/views/event_types/new.html.haml | 5 - app/views/event_types/show.html.haml | 12 - app/views/layouts/application.html.haml | 37 - app/views/oauths/callback.html.haml | 2 - app/views/oauths/oauth.html.haml | 2 - .../_form.html.haml | 19 - .../edit.html.haml | 7 - .../index.html.haml | 23 - .../new.html.haml | 5 - .../show.html.haml | 15 - app/views/user_sessions/_form.html.haml | 4 - app/views/user_sessions/create.html.haml | 2 - app/views/user_sessions/destroy.html.haml | 2 - app/views/user_sessions/new.html.haml | 11 - config/locales/data/translation-info.yml | 3114 ----------------- 251 files changed, 2 insertions(+), 8086 deletions(-) delete mode 100644 app/assets/javascripts/application.js.coffee delete mode 100644 app/assets/javascripts/buoy-settings.json delete mode 100644 app/assets/javascripts/event_types.js.coffee delete mode 100644 app/assets/javascripts/events.js.coffee delete mode 100644 app/assets/javascripts/oauths.js.coffee delete mode 100644 app/assets/javascripts/translate.js.coffee delete mode 100644 app/assets/javascripts/translations.js delete mode 100644 app/assets/javascripts/workshop_facilitators.js.coffee delete mode 100644 app/assets/javascripts/workshop_requested_resources.js.coffee delete mode 100644 app/assets/javascripts/workshops.js.coffee delete mode 100644 app/assets/stylesheets/translations/and_chr-40.scss delete mode 100644 app/assets/stylesheets/translations/and_chr-42.scss delete mode 100644 app/assets/stylesheets/translations/and_ff-33.scss delete mode 100644 app/assets/stylesheets/translations/and_ff-39.scss delete mode 100644 app/assets/stylesheets/translations/android-37.scss delete mode 100644 app/assets/stylesheets/translations/android-40.scss delete mode 100644 app/assets/stylesheets/translations/edge-1.scss delete mode 100644 app/assets/stylesheets/translations/ios_saf-8.1.scss delete mode 100644 app/assets/stylesheets/translations/ios_saf-9.scss delete mode 100644 app/assets/stylesheets/translations/op_mob-24.scss delete mode 100644 app/assets/stylesheets/translations/op_mob-30.scss delete mode 100644 app/helpers/conference_admins_helper.rb delete mode 100644 app/helpers/conference_host_organizations_helper.rb delete mode 100644 app/helpers/conference_registration_responses_helper.rb delete mode 100644 app/helpers/conference_registrations_helper.rb delete mode 100644 app/helpers/conference_registraton_form_fields_helper.rb delete mode 100644 app/helpers/conference_types_helper.rb delete mode 100644 app/helpers/conferences_helper.rb delete mode 100644 app/helpers/event_types_helper.rb delete mode 100644 app/helpers/events_helper.rb delete mode 100644 app/helpers/locations_helper.rb delete mode 100644 app/helpers/oauths_helper.rb delete mode 100644 app/helpers/organization_statuses_helper.rb delete mode 100644 app/helpers/organizations_helper.rb delete mode 100644 app/helpers/pages_helper.rb delete mode 100644 app/helpers/registration_form_fields_helper.rb delete mode 100644 app/helpers/user_organization_relationships_helper.rb delete mode 100644 app/helpers/user_sessions_helper.rb delete mode 100644 app/helpers/users_helper.rb delete mode 100644 app/helpers/versions_helper.rb delete mode 100644 app/helpers/workshop_facilitators_helper.rb delete mode 100644 app/helpers/workshop_presentation_styles_helper.rb delete mode 100644 app/helpers/workshop_requested_resources_helper.rb delete mode 100644 app/helpers/workshop_resources_helper.rb delete mode 100644 app/helpers/workshop_streams_helper.rb delete mode 100644 app/helpers/workshops_helper.rb delete mode 100644 app/views/conference_admins/_form.html.haml delete mode 100644 app/views/conference_admins/edit.html.haml delete mode 100644 app/views/conference_admins/index.html.haml delete mode 100644 app/views/conference_admins/new.html.haml delete mode 100644 app/views/conference_admins/show.html.haml delete mode 100644 app/views/conference_host_organizations/_form.html.haml delete mode 100644 app/views/conference_host_organizations/edit.html.haml delete mode 100644 app/views/conference_host_organizations/index.html.haml delete mode 100644 app/views/conference_host_organizations/new.html.haml delete mode 100644 app/views/conference_host_organizations/show.html.haml delete mode 100644 app/views/conference_registrations/_form.html.haml delete mode 100644 app/views/conference_registrations/edit.html.haml delete mode 100644 app/views/conference_registrations/index.html.haml delete mode 100644 app/views/conference_registrations/new.html.haml delete mode 100644 app/views/conference_registrations/show.html.haml delete mode 100644 app/views/conference_types/_form.html.haml delete mode 100644 app/views/conference_types/edit.html.haml delete mode 100644 app/views/conference_types/index.html.haml delete mode 100644 app/views/conference_types/new.html.haml delete mode 100644 app/views/conference_types/show.html.haml delete mode 100644 app/views/event_locations/edit.html.haml delete mode 100644 app/views/event_types/_form.html.haml delete mode 100644 app/views/event_types/edit.html.haml delete mode 100644 app/views/event_types/index.html.haml delete mode 100644 app/views/event_types/new.html.haml delete mode 100644 app/views/event_types/show.html.haml delete mode 100644 app/views/oauths/callback.html.haml delete mode 100644 app/views/oauths/oauth.html.haml delete mode 100644 app/views/user_organization_relationships/_form.html.haml delete mode 100644 app/views/user_organization_relationships/edit.html.haml delete mode 100644 app/views/user_organization_relationships/index.html.haml delete mode 100644 app/views/user_organization_relationships/new.html.haml delete mode 100644 app/views/user_organization_relationships/show.html.haml delete mode 100644 app/views/user_sessions/_form.html.haml delete mode 100644 app/views/user_sessions/create.html.haml delete mode 100644 app/views/user_sessions/destroy.html.haml delete mode 100644 app/views/user_sessions/new.html.haml diff --git a/.gitignore b/.gitignore index d6a0269..2685fea 100644 --- a/.gitignore +++ b/.gitignore @@ -72,6 +72,7 @@ brakeman.html /app/assets/stylesheets/email-example/* /app/assets/stylesheets/translations/* /app/assets/stylesheets/web-fonts/* +/app/assets/stylesheets/translations/* # Ignore test artifacts /config/locales/data/html_records/* diff --git a/Gemfile b/Gemfile index 60aeb12..db27375 100644 --- a/Gemfile +++ b/Gemfile @@ -13,14 +13,8 @@ else gem 'lingua_franca', :git => 'git://github.com/lingua-franca/lingua_franca.git' end -#if Dir.exists?('../lingua_franca_commit_and_deploy') -# gem 'lingua_franca_commit_and_deploy', :path => '../lingua_franca_commit_and_deploy' -#else -# gem 'lingua_franca_commit_and_deploy', :git => 'git://github.com/lingua-franca/lingua_franca_commit_and_deploy.git' -#end - gem 'tzinfo-data' -gem 'sass'#, '~> 3.4.13' +gem 'sass' gem 'sass-rails' if Dir.exists?('../bumbleberry') diff --git a/app/assets/javascripts/application.js.coffee b/app/assets/javascripts/application.js.coffee deleted file mode 100644 index 8dc28be..0000000 --- a/app/assets/javascripts/application.js.coffee +++ /dev/null @@ -1,217 +0,0 @@ -#= require froala_editor.min.js - -# I18n - -'use strict' - -startSpinner = -> - $('#loading-spinner').show() - -stopSpinner = -> - $('#loading-spinner').fadeOut() - -# Turbolinks Spinner -document.addEventListener 'page:fetch', startSpinner -document.addEventListener 'page:receive', stopSpinner - -readURL = (input) -> - reader = null - if input.files && input.files[0] - reader = new FileReader() - reader.readAsDataURL input.files[0] - reader.onload = (e) -> - $(input).prev().attr('src', e.target.result) - -createOverlay = () -> - if $('#overlay').length > 0 - $('#overlay').remove() - $('body').append('
') - $('#overlay-dlg') - -setOverlayHTML = (html) -> - $('#overlay-inner').append('
' + html + '
'); - $('#overlay').removeAttr('class').click(destroyOverlay) - -destroyOverlay = () -> - $('#overlay').remove() - -selectA = (type, event, $emptyObj) -> - event.preventDefault() - # = $(this) - $overlay = createOverlay() - objs = [] - $('.' + type + '-select-field.added input.' + type + '-id').each () -> obj.push($(this).val()) - $.post window.location.href.replace(/^(.*\/)(.+?)$/, '$1non$2'), {added: objs}, - (html) -> - setOverlayHTML(html).addClass('' + type + '-select') - $('#select-' + type + '-list a').click (event) -> - event.preventDefault() - - $this = $(this) - $old_field = $emptyObj.closest('.field') - $field = $old_field.clone() - - oldID = parseInt($old_field.find('input[type="hidden"]').attr('name').match(/\[(\d+)\]\[id\]/)[1]) - newID = oldID + 1 - - $field.find('input.' + type + '-id').val($this.data().id) - $field.find('.' + type + 'name').html($this.find('.' + type + 'name').html()).before('') - $field.find('.select-' + type + '').remove() - $field.removeClass('new').addClass('added') - $old_field.html (i, html) -> - pregex = new RegExp('\\[' + oldID + '\\]', 'g'); - aregex = new RegExp('_' + oldID + '_', 'g'); - html.replace(pregex, '[' + newID + ']').replace(aregex, '_' + newID + '_') - $field.insertBefore($old_field) - $('a.select-' + type + '').click (event) -> selectA(type, event, $(this)) - - destroyOverlay() - return - , 'html' - -updateFormField = () -> - $form = $('form#new_registration_form_field') - $field_type = $form.find('#registration_form_field_field_type') - field_type = $field_type.val() - $form.find('.registration-form-field-field').hide() - $form.find('.registration-form-field-field.field-type-' + field_type).show() - -updateFormFieldForm = () -> - $('form #registration_form_field_field_type').change updateFormField - updateFormField() - $('form#new_registration_form_field').submit (event) -> - event.preventDefault() - $form = $(this) - serialized = $form.serialize() - $.post $form.attr('action'), serialized, - (json) -> - $form.replaceWith(json.form) - $('#registration-form-field-list').html(json.list) - updateFormFieldForm() - , 'json' -updateFormFieldList = () -> - $('#registration-form-field-list .add-form-field').click () -> - $.post 'form/add-field', {field: $(this).data().id}, - (json) -> - $('#conference-form').html(json.form) - $('#registration-form-field-list').html(json.list) - updateFormFieldList() - return - $('#conference-form .remove-form-field').click () -> - $.post 'form/remove-field', {field: $(this).data().id}, - (json) -> - $('#conference-form').html(json.form) - $('#registration-form-field-list').html(json.list) - updateFormFieldList() - return - -saveTranslation = ($td, $move_to, auto_translate) -> - val = '' - do_auto_translate = true - if typeof auto_translate == "undefined" || !auto_translate - val = $td.find('textarea').val() - do_auto_translate = false - key = $td.parent().data().key - params = {translationkey: key, translationvalue: val, translationlang: window.location.href.replace(/^.*\/(\w+)\/$/, '$1')} - if do_auto_translate - params['auto_translate'] = true - $.post '/translate/', params, - (json) -> - #console.log json - $td.html(json.translation) - if $td.parent().hasClass('not-exists') - $td.parent().removeClass('not-exists') - $td.parent().addClass('exists') - $('.translation-form').remove() - if typeof $move_to != "undefined" && $move_to - startTranslating $move_to - return - return - -stopTranslating = () -> $('.translation-form').remove() - -startTranslating = ($td) -> - stopTranslating() - value = if $td.parent().hasClass('not-exists') then '' else $td.html().trim() - $tr = $td.parent() - key = $tr.data().key - $td.append('