polyblock 0.3.5 → 0.3.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: 1957527044b30f80018e7a6deabf57313b4d699e
4
- data.tar.gz: a100ab788b117eb1eb468d5a6a1e7505e8befe06
3
+ metadata.gz: 89cc1b54c98c9cccd0c5376b116d0a570c7377c1
4
+ data.tar.gz: 6a272bab405dd0ab54bacbf77dc973c8da0d655a
5
5
  SHA512:
6
- metadata.gz: 62824ff3418e133b2baa97090b89603125dcbce555f1414642f05b5cbd4bbcbada24ccb27ee95e33bc3f211dd98ac7fa9280694847f4d2041a39cfea1d3c4350
7
- data.tar.gz: ca83b68a305dde35f4b3c61e1e6f2848177a4b49aada50f450d4707b83aebb78e41dda28e18244b2283009319d1df142de5acd88962164633d657a1ed80c20c3
6
+ metadata.gz: 7a9ea4724e71b8c0e50f02f4045395ce2ee9623ba4b65aaf40296512b81eef79f4f7002129c49fc79859a8f94b94e7f1bc4809594f9eb5143e588d5fdef0cdc2
7
+ data.tar.gz: 8d96190c8c82683a1658fd42768abc166caf29c1edbd10ab5c72188a9e1f7e24ffd1d13f92ee2d32af8196611fbc0060470a15b0e62f919b32266e6fc742f5da
@@ -5,7 +5,8 @@ window.onbeforeunload = -> return "Are you sure you want to leave this page? You
5
5
  $ ->
6
6
  $(document).ready ->
7
7
  # Find blocks
8
- blocks = $(".polyblock[contenteditable='true']").not('.polyblock-condensed')
8
+ fetch_blocks = -> $(".polyblock[contenteditable='true']").not('.polyblock-condensed')
9
+ blocks = fetch_blocks()
9
10
  return unless blocks.length
10
11
 
11
12
  # Find switches
@@ -143,7 +144,7 @@ $ ->
143
144
  when "HTML" then convertToTextarea block, html_beautify(content)
144
145
  when "HAML" then $.post "/convert_html_to_haml", {html: content}, (data)=> convertToTextarea(block,data," ")
145
146
  when "Markdown" then convertToTextarea block, html_beautify(content)
146
- blocks = $(".polyblock[contenteditable='true']") if previousMode == "WYSIWYG"
147
+ blocks = fetch_blocks() if previousMode == "WYSIWYG"
147
148
  blocks.each -> changeModes $(@)
148
149
  $(@).siblings().removeClass("active").end().addClass("active")
149
150
 
@@ -1,3 +1,3 @@
1
1
  module Polyblock
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polyblock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - MacKinley Smith