Skip to content

Commit aed03f4

Browse files
committed
Update jBox.js
1 parent 5766b57 commit aed03f4

File tree

4 files changed

+111
-3
lines changed

4 files changed

+111
-3
lines changed

Source/jBox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ function jBox(type, options) {
396396
if (this.options.draggable) {
397397

398398
// Get the handle where jBox will be dragged with
399-
var handle = (this.options.draggable == 'title') && this.titleContainer ? this.titleContainer : (this.options.draggable.length ? this.options.draggable : this.wrapper);
399+
var handle = (this.options.draggable == 'title') && this.titleContainer ? this.titleContainer : ($(this.options.draggable).length ? $(this.options.draggable) : this.wrapper);
400400

401401
// Add mouse events
402402
handle.addClass('jBox-draggable').on('mousedown', function (ev)

Source/jBox.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Source/themes/TooltipSmall.css

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
2+
/* jBox theme: TooltipSmall */
3+
4+
.jBox-TooltipSmall {
5+
pointer-events: none;
6+
}
7+
8+
.jBox-TooltipSmall .jBox-content {
9+
padding: 0 10px;
10+
line-height: 28px;
11+
}
12+
13+
.jBox-TooltipSmall .jBox-container {
14+
border-radius: 2px;
15+
}
16+
17+
.jBox-TooltipSmall .jBox-pointer-top,
18+
.jBox-TooltipSmall .jBox-pointer-bottom {
19+
width: 22px;
20+
height: 8px;
21+
}
22+
23+
.jBox-TooltipSmall .jBox-pointer-right,
24+
.jBox-TooltipSmall .jBox-pointer-left {
25+
width: 8px;
26+
height: 22px;
27+
}
28+
29+
.jBox-TooltipSmall .jBox-pointer:after {
30+
width: 20px;
31+
height: 20px;
32+
}
33+
34+
.jBox-TooltipSmall .jBox-pointer-top:after {
35+
left: 1px;
36+
top: 6px;
37+
}
38+
39+
.jBox-TooltipSmall .jBox-pointer-bottom:after {
40+
left: 1px;
41+
bottom: 6px;
42+
}
43+
44+
.jBox-TooltipSmall .jBox-pointer-right:after {
45+
top: 1px;
46+
right: 6px;
47+
}
48+
49+
.jBox-TooltipSmall .jBox-pointer-left:after {
50+
top: 1px;
51+
left: 6px;
52+
}

Source/themes/TooltipSmallGray.css

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
2+
/* jBox theme: TooltipSmall */
3+
4+
.jBox-TooltipSmallGray {
5+
pointer-events: none;
6+
}
7+
8+
.jBox-TooltipSmallGray .jBox-content {
9+
padding: 0 10px;
10+
}
11+
12+
.jBox-TooltipSmallGray .jBox-container {
13+
font-size: 13px;
14+
line-height: 24px;
15+
border-radius: 12px;
16+
background-image: linear-gradient(to bottom, #fafafa, #f2f2f2);
17+
}
18+
19+
.jBox-TooltipSmallGray .jBox-pointer-top,
20+
.jBox-TooltipSmallGray .jBox-pointer-bottom {
21+
width: 22px;
22+
height: 8px;
23+
}
24+
25+
.jBox-TooltipSmallGray .jBox-pointer-right,
26+
.jBox-TooltipSmallGray .jBox-pointer-left {
27+
width: 8px;
28+
height: 22px;
29+
}
30+
31+
.jBox-TooltipSmallGray .jBox-pointer:after {
32+
width: 20px;
33+
height: 20px;
34+
}
35+
36+
.jBox-TooltipSmallGray .jBox-pointer-top:after {
37+
background: #fafafa;
38+
left: 1px;
39+
top: 6px;
40+
}
41+
42+
.jBox-TooltipSmallGray .jBox-pointer-bottom:after {
43+
background: #f2f2f2;
44+
left: 1px;
45+
bottom: 6px;
46+
}
47+
48+
.jBox-TooltipSmallGray .jBox-pointer-right:after {
49+
top: 1px;
50+
right: 6px;
51+
}
52+
53+
.jBox-TooltipSmallGray .jBox-pointer-left:after {
54+
top: 1px;
55+
left: 6px;
56+
}

0 commit comments

Comments
 (0)