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
- NzE1N2MxMDAwNzFiMGEyY2JlODNhMWNhNWUyYzQ1MDQ5ZGEyOGNhNQ==
4
+ NWVmNjEzNGNiNGJlM2M4NjAyZjQ4OWI0ZGI2YjI0Zjk5YTNlYWQzOQ==
5
5
  data.tar.gz: !binary |-
6
- OTUwYTdhZmM0ODg0YzhmNDAxZjhhYjAyNGZjNTA5NmI2ZTY4ZjFlYw==
6
+ YThkMjFhNDNkMGI4MWQ5OWM5ZWE1ZjI5MThmYTZkMjU3YmZiZjBiNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MTBiNTg0MTc3YzJmMWIyOWY0MzM0MDAzZmFjODExZGM3NGFmMmIyOWZhYjUw
10
- MmNkZTIzY2Y4NzM2NjY3YjlkMzE3OWQ3MjZmMTJhNTdkYjczMzhiNmI5YWFl
11
- YjU4ODI1MWYzNDAyYTQ2ZmQ2MzM3MjQ1OTc2N2FmNTM5MDMyNmI=
9
+ MWMxODc0OTA4MWU1ZTI2YTdkOWM0NDU4MjQ2ZTkxNmY3NzRmY2I4YWQ0YTI3
10
+ ODQ5NWUwMmFjYTYxODIzNGM5MzlmOTdkZmUzMGEwYTlhYjM0NDY2ZjRkM2Mx
11
+ ZGY2MDJhZjRjMWJmZTc0NzgxOWFjOWU3NjVmZjg1Mjc2NGVlZGU=
12
12
  data.tar.gz: !binary |-
13
- OTM5MDkyMWRjOTQ2OWMxMzViZjJkNjk0YzU3MzgzMGFlNjlkMDQ4ZGYxZWZm
14
- NzNjNTQ0YzZhZGE4M2Y4OWVhMGJlMmMzNzQ0ZTcyZDAxYTcxYTYyZmM2Y2U1
15
- YTY1NjBiYTIwMGM5ZjQwOTA1NTA0YjI5MzUzMmZlNTMwY2M4YmU=
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, 100, offset: -75, onAfter: ->
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
@@ -1,3 +1,3 @@
1
1
  module Tawork
2
- VERSION = '0.0.41'
2
+ VERSION = '0.0.42'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tawork
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.41
4
+ version: 0.0.42
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adnan Ali