burp_cms 1.5.6 → 1.5.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/packages/burp/editing/js/content-decorator.js +9 -6
- data/lib/burp/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c220c0e50311c071596a17943c5c614bcac8abd
|
4
|
+
data.tar.gz: 8c4cf745cb22c1b50a6a414288cc79bd4e375bde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40d3a726d4f5826db4dabc98758df85aa824834a44d5d70df3c72bf2bde4f455526f757abacbcc0d7b6db528a6b0d7abdef0b8fc6f49a9e0cfa5d85c0ae26562
|
7
|
+
data.tar.gz: cd5132641c770fa567d05ea34b146b897e4f79116c116a64a7a19f8362ae74a4a63d89e7afcf4c5747beb533595211acf29280d99b96384ec49b5cace6972c32
|
@@ -100,12 +100,15 @@
|
|
100
100
|
|
101
101
|
// Add empty area dropbox
|
102
102
|
if(wrappers.length === 0) {
|
103
|
-
|
104
|
-
var
|
103
|
+
|
104
|
+
var comment = snippets().snippets.footer.comment;
|
105
|
+
var aElement = comment.previousElementSibling || comment.nextElementSibling || comment.parentElement;
|
106
|
+
var position = $(aElement).offset();
|
107
|
+
var size = {width:$(aElement).outerWidth(),height:$(aElement).outerHeight()};
|
105
108
|
if(navigator.userAgent.match(/Firefox|Safari/)) {
|
106
|
-
position.left = $(
|
109
|
+
position.left = $(aElement)[0].offsetLeft;
|
107
110
|
} else {
|
108
|
-
position.left -= $(
|
111
|
+
position.left -= $(aElement).offsetParent().offset().left;
|
109
112
|
}
|
110
113
|
|
111
114
|
if(size.height < 20) {
|
@@ -118,9 +121,9 @@
|
|
118
121
|
|
119
122
|
var element2 = $('<div class="dropbox"></div>');
|
120
123
|
wrappers.push(element2[0]);
|
121
|
-
|
124
|
+
|
122
125
|
element2.addClass("bottom-dropbox");
|
123
|
-
|
126
|
+
|
124
127
|
element2.css(size);
|
125
128
|
element2.css(position);
|
126
129
|
element2.css({'position':'absolute'});
|
data/lib/burp/version.rb
CHANGED