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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5056e14bbfa659de799cfc6b68446377eccfd0c0
4
- data.tar.gz: d3911f893c4b6c20c82b1bf13ee8e7c552ac1429
3
+ metadata.gz: 1c220c0e50311c071596a17943c5c614bcac8abd
4
+ data.tar.gz: 8c4cf745cb22c1b50a6a414288cc79bd4e375bde
5
5
  SHA512:
6
- metadata.gz: 850cd9d7c07654d0e43822b0002b6bba74619043b7457dbfc49a963d4907214a1a332b3769967e5c1bd0b2e563da7757874799563f20a1f537cb7d0f8f130689
7
- data.tar.gz: 69bae840ea3a77d5740f272c88b85b964e5ae4c0ed888f02bd83a7ae2f1d2f5330481e6b665e5ac412572af0729653a4d9630d0e190fdf6891289a8b61c92f49
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
- var position = $(contentEditor.element).offset();
104
- var size = {width:$(contentEditor.element).outerWidth(),height:$(contentEditor.element).outerHeight()};
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 = $(contentEditor.element)[0].offsetLeft;
109
+ position.left = $(aElement)[0].offsetLeft;
107
110
  } else {
108
- position.left -= $(contentEditor.element).offsetParent().offset().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
@@ -1,3 +1,3 @@
1
1
  module Burp
2
- VERSION = "1.5.6"
2
+ VERSION = "1.5.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: burp_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.6
4
+ version: 1.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darwin