burp_cms 1.5.3 → 1.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 47b6f91432f8c34fcf2ac27e740fee561e8e33b9
4
- data.tar.gz: d0fbf177bc6dc9b205bb1f9949d29798a72beb65
3
+ metadata.gz: 6c245a07ab3e7d61e998392882ff7796abe1f9a3
4
+ data.tar.gz: 96224cf1e3d17fb9a06fecc50bf8133688434616
5
5
  SHA512:
6
- metadata.gz: 7a3d0a97199f1721d461de2c172d000b032e432b61fe4a23ac371f6a136875ac45b494bf5b9a8f4fa48bce8f646522da31a6a4fa81d9325108692b5b210c8dc4
7
- data.tar.gz: b60992cbab905fce560c2d9395b3d56ec4f62d81514029582e2a27bed96c1df5b45e05a2eecd883fdfcb156f1f74ba700abfa2a0779bc43ac4ba5faad689e959
6
+ metadata.gz: ff15a3894891d54709fd4fcff5bea05d87e08ba364fc7746a23b52a6a0f104c7e245b3c219e8f429236c51806e1ef84a888a9b567256f3e4d254528db7db0e6f
7
+ data.tar.gz: 800b5dbbd16174e30dfba506d9b792f3a6bdd67ce63d88a58ac3435567b9da7917a2a6b2441e8b31df0130aacccfb55f1f1cf2b38ac3f86732acb707e4cf33f9
data/README.markdown CHANGED
@@ -65,6 +65,10 @@ To use snippets on pages not cought by the CatchAllController. The or part is to
65
65
  ## Title
66
66
 
67
67
  <title><%= @cms_page.title %></title>
68
+
69
+ ## Meta description
70
+
71
+ <meta name="description" content="<%= @cms_page.meta_description %>" >
68
72
 
69
73
  ## Menu
70
74
 
@@ -221,7 +221,10 @@
221
221
  // },
222
222
 
223
223
  makeDroppable: function(elements, cloneImage) {
224
- initializeMovable(this, elements, cloneImage);
224
+ var contentEditor = this;
225
+ $(elements).one('mouseover', function() {
226
+ initializeMovable(contentEditor, this, cloneImage);
227
+ });
225
228
  },
226
229
 
227
230
  addRemoveZone: function(element) {
@@ -158,7 +158,8 @@ $(function() {
158
158
  }
159
159
 
160
160
  var lastChange = 0;
161
- var maxUpdatesPerSec = 2;
161
+ var maxUpdatesPerSec = 4;
162
+ var timeoutID;
162
163
 
163
164
  function addEditor() {
164
165
 
@@ -172,16 +173,19 @@ $(function() {
172
173
  lineWrapping: true,
173
174
  theme: "default",
174
175
  onChange:function(editor, changes) {
175
- snippetEditorState[snippetName] = editor.getValue();
176
- var timeToWait = lastChange + (1000 / maxUpdatesPerSec) - new Date().getTime();
177
- lastChange = new Date().getTime();
178
- if(timeToWait > 0) {
179
- setTimeout(function() {
180
- console.debug("waiting for: " + timeToWait);
176
+ if(typeof(timeoutID) === "undefined") {
177
+ var timeToWait = lastChange + (1000 / maxUpdatesPerSec) - new Date().getTime();
178
+ lastChange = new Date().getTime();
179
+ if(timeToWait > 0) {
180
+ timeoutID = setTimeout(function() {
181
+ timeoutID = undefined;
182
+ snippetEditorState[snippetName] = editor.getValue();
183
+ updateSnippetWithMarkdown(snippetName, snippetEditorState[snippetName]);
184
+ }, timeToWait);
185
+ } else {
186
+ snippetEditorState[snippetName] = editor.getValue();
181
187
  updateSnippetWithMarkdown(snippetName, snippetEditorState[snippetName]);
182
- }, timeToWait);
183
- } else {
184
- updateSnippetWithMarkdown(snippetName, snippetEditorState[snippetName]);
188
+ }
185
189
  }
186
190
  }
187
191
  });
data/lib/burp/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Burp
2
- VERSION = "1.5.3"
2
+ VERSION = "1.5.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: burp_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.3
4
+ version: 1.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darwin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-11 00:00:00.000000000 Z
11
+ date: 2014-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jquery-rails