circle_speech_balloon 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -35,9 +35,10 @@ $ ->
35
35
  ofn = bln.attr('src')
36
36
  if fn == ofn
37
37
  else
38
- bln.attr('src', fn)
39
- balloon_trace = '#panel' + $(bln).attr('panel_id') + 'speech_balloon' + $(bln).attr('element_id') + 'balloon' + $(bln).attr('element_part_id')
40
- $(balloon_trace + 'system_picture_id').val(sp_id)
38
+ if bln.attr('src')
39
+ bln.attr('src', fn)
40
+ balloon_trace = '#panel' + $(bln).attr('panel_id') + 'speech_balloon' + $(bln).attr('element_id') + 'balloon' + $(bln).attr('element_part_id')
41
+ $(balloon_trace + 'system_picture_id').val(sp_id)
41
42
  myform = (input) ->
42
43
  div_trace = '#panel' + $(input).attr('panel_id') + 'speech_balloon' + $(input).attr('element_id') + 'balloon' + $(input).attr('element_part_id')
43
44
  classname = $(div_trace + 'form').attr('classname')
@@ -58,7 +59,9 @@ $ ->
58
59
  refresh_balloon($(balloon_trace), idx)
59
60
  }
60
61
 
61
-
62
+ $('.r-wrap').map ->
63
+ $(@).css('display', 'block')
64
+
62
65
  $('.r-down').map ->
63
66
  $(@).click ->
64
67
  r_step = balloon_r_step()
@@ -66,6 +69,7 @@ $ ->
66
69
  wrapper = $(@).parent()
67
70
  balloon_trace = '#panel' + $(wrapper).attr('panel_id') + 'speech_balloon' + $(wrapper).attr('element_id') + 'balloon' + $(wrapper).attr('element_part_id')
68
71
  refresh_balloon($(balloon_trace), idx)
72
+ false
69
73
  $('.r-up').map ->
70
74
  $(@).click ->
71
75
  r_step = balloon_r_step()
@@ -73,12 +77,14 @@ $ ->
73
77
  wrapper = $(@).parent()
74
78
  balloon_trace = '#panel' + $(wrapper).attr('panel_id') + 'speech_balloon' + $(wrapper).attr('element_id') + 'balloon' + $(wrapper).attr('element_part_id')
75
79
  refresh_balloon($(balloon_trace), idx)
80
+ false
76
81
  $('.r-reset').map ->
77
82
  $(@).click ->
78
83
  wrapper = $(@).parent()
79
84
  balloon_trace = '#panel' + $(wrapper).attr('panel_id') + 'speech_balloon' + $(wrapper).attr('element_id') + 'balloon' + $(wrapper).attr('element_part_id')
80
85
  balloon_input_r($(@)).val(0)
81
86
  refresh_balloon($(balloon_trace), 0)
87
+ false
82
88
 
83
89
  # sync view
84
90
  $('input').map ->
@@ -23,7 +23,7 @@
23
23
  <div class="field">
24
24
  <%= f.label :r %><br />
25
25
  <%= f.number_field :r, :id => balloon.field_tag_id(:r), :panel_id => balloon.tag_panel_id, :element_id => balloon.tag_element_id, :element_type => balloon.tag_element_type, :element_part_id => balloon.tag_element_part_id, :element_part_type => balloon.tag_element_part_type, :column => :r, :tree => balloon.field_tree(:r) %>
26
- <div class="r-wrap" panel_id="<%= balloon.tag_panel_id -%>" element_id="<%= balloon.tag_element_id -%>" element_type="<%= balloon.tag_element_type -%>" element_part_id="<%= balloon.tag_element_part_id -%>" element_part_type="<%= balloon.tag_element_part_type -%>" r_step="<%= balloon.r_step -%>">
26
+ <div class="r-wrap" style="display: none;" panel_id="<%= balloon.tag_panel_id -%>" element_id="<%= balloon.tag_element_id -%>" element_type="<%= balloon.tag_element_type -%>" element_part_id="<%= balloon.tag_element_part_id -%>" element_part_type="<%= balloon.tag_element_part_type -%>" r_step="<%= balloon.r_step -%>">
27
27
  <button class="r-down" value="0"><</button>
28
28
  <button class="r-up" value="0">></button>
29
29
  <button class="r-reset" value="0">reset</button>
@@ -1,3 +1,3 @@
1
1
  module CircleSpeechBalloon
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.14"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: circle_speech_balloon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-11 00:00:00.000000000 Z
12
+ date: 2013-07-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails