Skip to content

Commit 0970c9f

Browse files
committed
version 2.6.2
update to version 2.6.2 with a fix in jsPanel.exportPanels() when exporting minimized jsPanels.
1 parent e0850e3 commit 0970c9f

File tree

7 files changed

+31
-19
lines changed

7 files changed

+31
-19
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.2
4+
5+
+ **fix in jsPanel.exportPanels()** when exporting minimized jsPanels
6+
7+
---
8+
39
### Version 2.6.1
410

511
+ **bugfix in option.position** when using the number **0** as value for either left or top

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
![travis.ci build](https://travis-ci.org/Flyer53/jsPanel.svg?branch=master) [![npm version](https://badge.fury.io/js/jspanel.svg)](https://badge.fury.io/js/jspanel) [![Bower version](https://badge.fury.io/bo/jspanel.svg)](https://badge.fury.io/bo/jspanel) ![license MIT](https://img.shields.io/badge/license-MIT-blue.svg)
2-
## [jsPanel 2.6.1 released 2016-01-22](#)
2+
## [jsPanel 2.6.2 released 2016-03-19](#)
33

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

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.1",
3+
"version": "v2.6.2",
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.1",
18+
"version": "2.6.2",
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.1",
3+
"version": "2.6.2",
44
"description": "A jQuery Plugin to create highly configurable multifunctional floating panels",
55
"dependencies": {
66
"jquery": ">=1.9.1",

source/jquery.jspanel.js

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ if (!$.fn.jquery || !$.fn.uniqueId || !$.widget || !$.ui.mouse || !$.ui.draggabl
4242
}
4343

4444
var jsPanel = {
45-
version: '2.6.1 2016-01-22 16:57',
45+
version: '2.6.2 2016-03-18 08:17',
4646
device: (function(){
4747
try {
4848
// requires "mobile-detect.js" to be loaded
@@ -492,6 +492,16 @@ var jsPanel = {
492492
var elmtOffset, elmtPosition, elmtTop, elmtLeft, elmtWidth, elmtHeight, elmtStatus, panelParent,
493493
panelArr = [], exportedPanel,
494494
panels = $(".jsPanel").not(".jsPanel-tt, .jsPanel-hint, .jsPanel-modal");
495+
496+
// normalize minimized/maximized panels before export
497+
// status to restore is saved in exportedPanel.panelstatus
498+
panels.each(function(index, elmt) {
499+
// for some reason this does not work properly inside the following .each() block
500+
if ($(elmt).data("panelstatus") !== "normalized") {
501+
$(".jsPanel-btn-norm", elmt).trigger("click");
502+
}
503+
});
504+
495505
panels.each(function(index, elmt){
496506
exportedPanel = {
497507
panelstatus: $(elmt).data("panelstatus"),
@@ -501,11 +511,7 @@ var jsPanel = {
501511
offset: { top: 0, left: 0 },
502512
content: $(elmt).data("content")
503513
};
504-
// normalize minimized/maximized panels before export
505-
// status to restore is saved in exportedPanel.panelstatus
506-
if ($(elmt).data("panelstatus") !== "normalized") {
507-
$(".jsPanel-btn-norm", elmt).trigger("click");
508-
}
514+
509515
panelParent = $(elmt).data("selector");
510516
elmtOffset = $(elmt).offset();
511517
elmtPosition = $(elmt).position();

source/jquery.jspanel.min.js

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

0 commit comments

Comments
 (0)