Skip to content

Commit 2497186

Browse files
committed
Update jBox.js
1 parent 84b37df commit 2497186

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

Source/jBox.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function jBox(type, options) {
3737
responsiveMinHeight: 100, // Don't adjust height below this value (in pixel)
3838

3939
// Attach
40-
attach: null, // A set of jQuery elements that will open and close your jBox, e.g. $('.tooltip')
40+
attach: null, // A jQuery selector to elements that will open and close your jBox, e.g. '.tooltip'
4141
trigger: 'click', // The event to open or close your jBox, use 'click', 'touchclick' or 'mouseenter'
4242
preventDefault: false, // Prevent default event when opening jBox, e.g. don't follow the href in a link when clicking on it
4343

@@ -62,7 +62,7 @@ function jBox(type, options) {
6262
},
6363

6464
// Position
65-
target: null, // The target element where jBox will be opened (if no element is provided, jBox will use the attached element as target)
65+
target: null, // The jQuery selector to the target element where jBox will be opened (if no element is provided, jBox will use the attached element as target)
6666
position: {
6767
x: 'center', // Horizontal position, use a number, 'left', 'right' or 'center'
6868
y: 'center' // Vertical position, use a number, 'top', 'bottom' or 'center'

Source/plugins/Confirm/jBox.Confirm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jQuery(document).ready(function () {
2121
confirm: null, // Function to execute when clicking the submit button. By default jBox will use the onclick or the href attribute in that order if found
2222
cancel: null, // Function to execute when clicking the cancel button
2323
closeOnConfirm: true, // Close jBox when the user clicks the confirm button
24-
target: jQuery(window),
24+
target: window,
2525
addClass: 'jBox-Modal',
2626
fixed: true,
27-
attach: jQuery('[data-confirm]'),
27+
attach: '[data-confirm]',
2828
getContent: 'data-confirm',
2929
content: 'Do you really want to do this?',
3030
minWidth: 360,

Source/plugins/Confirm/jBox.Confirm.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Source/plugins/Image/jBox.Image.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ jQuery(document).ready(function () {
2121
imageLabel: 'title', // The attribute where jBox gets the image label from, e.g. title="My label"
2222
imageFade: 360, // The fade duration for images
2323
imageSize: 'contain', // How to display the images: Use CSS background-position values, e.g. 'cover', 'contain', 'auto', 'initial', '50% 50%'
24-
target: jQuery(window),
25-
attach: jQuery('[data-jbox-image]'),
24+
target: window,
25+
attach: '[data-jbox-image]',
2626
fixed: true,
2727
blockScroll: true,
2828
closeOnEsc: true,

Source/plugins/Image/jBox.Image.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Source/plugins/Notice/jBox.Notice.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jQuery(document).ready(function () {
3838
y: 10
3939
}
4040
},
41-
target: jQuery(window),
41+
target: window,
4242
fixed: true,
4343
animation: 'zoomIn',
4444
closeOnClick: 'box',

Source/plugins/Notice/jBox.Notice.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)