Sha256: cd1c1174371ef063768b8af311b6315e35c9b6f6cdbb5b97338c72c2583c8641

Contents?: true

Size: 774 Bytes

Versions: 1

Compression:

Stored size: 774 Bytes

Contents

@edited_rows = {}
$(document).ready ->
  $('td.localization_row[data-editing=0]').on 'click', ->
    $this = $(this)
    edited_rows[$this.data('id')] = $this.html()
    unless parseInt($this.data('editing'))
      $this.data('editing', '1')
      $.get $this.data('edit')
  $('td.localization_row').on 'click', 'form button.cancel', (e)->
    $this = $(this)
    if $this[0].localName=='button'
      $this = $this.parents('td.localization_row')
    $this.data('editing', 0)
    $this.html edited_rows[$this.data('id')]
    e.preventDefault()
    false
  $('tr.localization_versions_row').on 'click', '.close_versions', (e)->
    $this = $(this)
    $parent = $this.parents('tr.localization_versions_row')
    $parent.addClass('hidden')
    $parent.children('td').html('')

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lit-0.1.0 app/assets/javascripts/lit/localizations.js.coffee