abstracted 0.4.5 → 0.4.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cf6732f8f5b0d977b55623928fd4c597835d84b2
4
- data.tar.gz: cb180722ccb44e23296b3f67eb0fc8e6f7d6871a
3
+ metadata.gz: 1cf82f9a78eb2b9157a9c7e43d1c4dca96c50feb
4
+ data.tar.gz: 289aeb77bdfbdb6e8119b84dc3e7fb79ffc6049e
5
5
  SHA512:
6
- metadata.gz: 4f255f1c62b45a3ebf1089d23aaf53d977c8216930b017737140a7965539f040db7f821aa030dab57efc336f8aac7fa4978e19e83cf32762b49b1891bc38c69d
7
- data.tar.gz: d6c6aae54640fd64f6b4a15514b02390e7c10c091fec8dfb56a830ea4264f51cf86b1d767eecf8572bb8bf4199e72d29c285fc347b34313bc012e9c010eebbef
6
+ metadata.gz: 1ee14facdc1a14a5a62f02ea2eeb45cd6da86b791c88f4bdfee2a976aa149017561077d06e6cd27bda199ea2555c4a5fb48898a5f35f7de62e0fda9b13fa0d67
7
+ data.tar.gz: 074c79200d18fc75ead0c0d3af7218f13f3f0e929ab464c1f0b90b84dbe761f9f26e3017b2f57ffce08747656c601504a80f7bb5c903c1999fa775d8812bb9ed
@@ -13,6 +13,15 @@ class App.ResourcesList
13
13
  App.shared.setLoader( loaded_element,loader )
14
14
  window.location.href= url + '?q=' + encodeURIComponent(query)
15
15
 
16
+ #
17
+ # handleLinkedUrls handles other urls referred by an A tag
18
+ #
19
+ handleLinkedUrls: (e) =>
20
+ loaded_element = $(e.currentTarget)
21
+ App.shared.spinWhileLoading( loaded_element )
22
+ url = '&' + $(e.currentTarget).data('url').split('?')[1]
23
+ window.location.href = App.shared.buildUrl(url,/q=/)
24
+
16
25
  #
17
26
  # handleColumnSort will
18
27
  #
@@ -183,10 +192,12 @@ class App.ResourcesList
183
192
  $(document.body).off('click.activate')
184
193
  $(document.body).off('click.prefer')
185
194
  $(document.body).off('click.sort_on_column')
195
+ $(document.body).off('click.linked_urls')
186
196
  $(document.body).on 'click.attach', 'a.attached, a.detached', @handleAttachLinks
187
197
  $(document.body).on 'click.activate', 'a.activated, a.deactivated', @handleActivateLinks
188
198
  $(document.body).on 'click.prefer', 'a.preferred, a.deferred', @handlePreferredLinks
189
199
  $(document.body).on 'click.sort_on_column', 'th[role="sort"]', @handleColumnSort
200
+ $(document.body).on 'click.linked_urls', 'a.linked_url', @handleLinkedUrls
190
201
 
191
202
  catch error
192
203
  alert 'App.ResourcesList did not prepare!'
@@ -1,3 +1,3 @@
1
1
  module Abstracted
2
- VERSION = "0.4.5"
2
+ VERSION = "0.4.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: abstracted
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Walther H Diechmann