Sha256: c7ae8d6b138cc9a5c0108b06426bb51192a09d90a0f5243c173c04ca5532c2f4

Contents?: true

Size: 304 Bytes

Versions: 1

Compression:

Stored size: 304 Bytes

Contents

Harpiya.fetchAccount = function () {
  return $.ajax({
    url: Harpiya.localizedPathFor('account_link')
  }).done(function (data) {
    Harpiya.accountFetched = true
    return $('#link-to-account').html(data)
  })
}

Harpiya.ready(function () {
  if (!Harpiya.accountFetched) Harpiya.fetchAccount()
})

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
harpiya_frontend-4.3.0.alpha app/assets/javascripts/harpiya/frontend/account.js