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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c245a07ab3e7d61e998392882ff7796abe1f9a3
|
4
|
+
data.tar.gz: 96224cf1e3d17fb9a06fecc50bf8133688434616
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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 =
|
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
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
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
|
-
}
|
183
|
-
} else {
|
184
|
-
updateSnippetWithMarkdown(snippetName, snippetEditorState[snippetName]);
|
188
|
+
}
|
185
189
|
}
|
186
190
|
}
|
187
191
|
});
|
data/lib/burp/version.rb
CHANGED
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.
|
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
|
+
date: 2014-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jquery-rails
|