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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1cf82f9a78eb2b9157a9c7e43d1c4dca96c50feb
|
4
|
+
data.tar.gz: 289aeb77bdfbdb6e8119b84dc3e7fb79ffc6049e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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!'
|
data/lib/abstracted/version.rb
CHANGED