tawork 0.0.41 → 0.0.42
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NWVmNjEzNGNiNGJlM2M4NjAyZjQ4OWI0ZGI2YjI0Zjk5YTNlYWQzOQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YThkMjFhNDNkMGI4MWQ5OWM5ZWE1ZjI5MThmYTZkMjU3YmZiZjBiNw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MWMxODc0OTA4MWU1ZTI2YTdkOWM0NDU4MjQ2ZTkxNmY3NzRmY2I4YWQ0YTI3
|
10
|
+
ODQ5NWUwMmFjYTYxODIzNGM5MzlmOTdkZmUzMGEwYTlhYjM0NDY2ZjRkM2Mx
|
11
|
+
ZGY2MDJhZjRjMWJmZTc0NzgxOWFjOWU3NjVmZjg1Mjc2NGVlZGU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NzMxZWNmNmJhYThiZmIzNGFkY2VjOTYyYzRiYjZlYjNjZjYwNGUyMDU4Y2Zj
|
14
|
+
OTNlMjc4OWM4MzM0ZWRjYzcwZjJjMDlmYWFjOGMyMzdlZjQ3NTM2M2I2YWZl
|
15
|
+
OTdhMDY3NWIyYzUyNzVhOWRiZTZhN2Y0Njk0MmJhYTkwMTJlNGQ=
|
@@ -7,6 +7,7 @@ class Tawork.Views.CompareView extends Backbone.View
|
|
7
7
|
e.preventDefault()
|
8
8
|
$(this).tab('show')
|
9
9
|
@setup_change_list()
|
10
|
+
@$("[data-toggle=tooltip]").tooltip()
|
10
11
|
|
11
12
|
setup_change_list: ->
|
12
13
|
$changes = $("[changeid][id]")
|
@@ -37,6 +38,13 @@ class Tawork.Views.CompareView extends Backbone.View
|
|
37
38
|
$link = $(event.target).closest("a")
|
38
39
|
$change = $("#" + $link.attr("data-id"))
|
39
40
|
$changes = $("[changeid=" + $link.attr("data-id") + "], [changeid=" + $link.attr("data-id") + "] img")
|
40
|
-
$(document).scrollTo $change,
|
41
|
+
$(document).scrollTo $change, 150, offset: -100, onAfter: ->
|
42
|
+
if $change.find("img[changetype]").length > 0
|
43
|
+
$tooltip = $change.find("img[changetype]")
|
44
|
+
else
|
45
|
+
$tooltip = $change
|
46
|
+
|
47
|
+
$tooltip.tooltip("show")
|
48
|
+
setTimeout( (-> $tooltip.tooltip('hide')), 300)
|
41
49
|
$changes.effect("highlight", {}, 500)
|
42
50
|
false
|
@@ -46,6 +46,12 @@ class Wiki::PagesController < ApplicationController
|
|
46
46
|
@diff_html.xpath('//@onload').remove
|
47
47
|
@diff_html.xpath('//@onerror').remove
|
48
48
|
@diff_html.xpath('//@onabort').remove
|
49
|
+
|
50
|
+
@diff_html.css("[changeid][id], img[changetype]").each do |element|
|
51
|
+
element['data-toggle'] = "tooltip"
|
52
|
+
element['data-title'] = "Here!"
|
53
|
+
element['data-trigger'] = "manual"
|
54
|
+
end
|
49
55
|
end
|
50
56
|
|
51
57
|
def combined
|
data/lib/tawork/version.rb
CHANGED