Skip to content
This repository was archived by the owner on Jan 29, 2026. It is now read-only.

Commit dd69c77

Browse files
committed
update to version 2.6.1
1 parent 3f588eb commit dd69c77

File tree

7 files changed

+25
-22
lines changed

7 files changed

+25
-22
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
## CHANGELOG
22

3+
### Version 2.6.1
4+
5+
+ **bugfix in option.position** when using the number **0** as value for either left or top
6+
7+
---
8+
39
### Version 2.6.0
410

511
+ **new option.onbeforeclose** takes a function to execute before the jsPanel closes. If function returns *false* panel will not close.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## [jsPanel 2.6.0 released 2015-12-04](#)
1+
## [jsPanel 2.6.1 released 2016-01-22](#)
22

33
**A jQuery plugin to create multifunctional floating panels.**
44

@@ -11,11 +11,11 @@ Various options allow for a flexible way to add content to a jsPanel, including
1111
Existing jsPanel sections and contents are easily accessed via various properties. Methods and events offer interaction with it.
1212

1313
### NEWS:
14-
jsPanel version 3 is in developement. It uses some ES6 features, css flexbox for header and footer sections, a new positioning
14+
jsPanel version 3 now in beta status. It uses some ES6 features, css flexbox for header and footer sections, a new positioning
1515
system and a lot more improvements. The preview version incorporates a few polyfills and is transpiled to ES5 using BABEL. So
1616
it should work with the current versions of EDGE, FF, Chrome, Opera and with IE11/IE10.
1717

18-
Take a look at the beta preview at [http://beta.jspanel.de](http://beta.jspanel.de/)
18+
Take a look at the alpha preview at [http://beta.jspanel.de](http://beta.jspanel.de/)
1919

2020
![jsPanel jQuery Plugin](https://github.com/Flyer53/jsPanel/raw/master/jsPanel-comp.png)
2121

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jspanel",
3-
"version": "v2.6.0",
3+
"version": "v2.6.1",
44
"description": "A jQuery Plugin to create highly configurable multifunctional floating panels for use in backend solutions and other web applications. Also usable as modal panel, tooltip or hint. With built in support for bootstrap, right-to-left text direction and more ...",
55
"keywords": [
66
"jQuery",

jsPanel.jquery.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"hint",
1616
"bootstrap"
1717
],
18-
"version": "2.6.0",
18+
"version": "2.6.1",
1919
"author": {
2020
"name": "Stefan Straesser",
2121
"url": "http://jspanel.de/",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jspanel",
3-
"version": "2.6.0",
3+
"version": "2.6.1",
44
"description": "A jQuery Plugin to create highly configurable floating panels for use in a backend solution and other web applications",
55
"main": [
66
"source/jquery.jspanel.js",

source/jquery.jspanel.js

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,8 @@
2727
2828
<http://opensource.org/licenses/MIT>.
2929
30-
CHANGES IN 2.6.0:
31-
+ new options onbeforeclose, onclosed
32-
+ new options onbeforemaximize, onmaximized
33-
+ new options onbeforeminimize, onminimized
34-
+ new options onbefornormalize, onnormalized
30+
CHANGES IN 2.6.1:
31+
+ bugfix in positioning when using left or top with 0
3532
*/
3633

3734
"use strict";
@@ -45,7 +42,7 @@ if (!$.fn.jquery || !$.fn.uniqueId || !$.widget || !$.ui.mouse || !$.ui.draggabl
4542
}
4643

4744
var jsPanel = {
48-
version: '2.6.0 2015-12-04 14:15',
45+
version: '2.6.1 2016-01-22 16:57',
4946
device: (function(){
5047
try {
5148
// requires "mobile-detect.js" to be loaded
@@ -197,12 +194,12 @@ var jsPanel = {
197194
panelpos.left = this.calcPos('left', jsP); // change in 2.5.4
198195
}
199196
}
200-
if (jsP.option.position.top) {
197+
if (jsP.option.position.top || jsP.option.position.top === 0) { // bugfix in 2.6.1
201198
panelpos.top = parseInt(jsP.option.position.top, 10) + jsP.option.offset.top;
202199
} else {
203200
panelpos.bottom = parseInt(jsP.option.position.bottom, 10) + jsP.option.offset.top;
204201
}
205-
if (jsP.option.position.left) {
202+
if (jsP.option.position.left || jsP.option.position.left === 0) { // bugfix in 2.6.1
206203
panelpos.left = parseInt(jsP.option.position.left, 10) + jsP.option.offset.left;
207204
} else {
208205
panelpos.right = parseInt(jsP.option.position.right, 10) + jsP.option.offset.left;

source/jquery.jspanel.min.js

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

0 commit comments

Comments
 (0)