Skip to content

Commit

Permalink
version 2.6.2
Browse files Browse the repository at this point in the history
update to version 2.6.2 with a fix in jsPanel.exportPanels() when
exporting minimized jsPanels.
  • Loading branch information
Flyer53 committed Mar 19, 2016
1 parent e0850e3 commit 0970c9f
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 19 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
## CHANGELOG

### Version 2.6.2

+ **fix in jsPanel.exportPanels()** when exporting minimized jsPanels

---

### Version 2.6.1

+ **bugfix in option.position** when using the number **0** as value for either left or top
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
![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)
## [jsPanel 2.6.1 released 2016-01-22](#)
## [jsPanel 2.6.2 released 2016-03-19](#)

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

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jspanel",
"version": "v2.6.1",
"version": "v2.6.2",
"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 ...",
"keywords": [
"jQuery",
Expand Down
2 changes: 1 addition & 1 deletion jsPanel.jquery.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"hint",
"bootstrap"
],
"version": "2.6.1",
"version": "2.6.2",
"author": {
"name": "Stefan Straesser",
"url": "http://jspanel.de/",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jspanel",
"version": "2.6.1",
"version": "2.6.2",
"description": "A jQuery Plugin to create highly configurable multifunctional floating panels",
"dependencies": {
"jquery": ">=1.9.1",
Expand Down
18 changes: 12 additions & 6 deletions source/jquery.jspanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ if (!$.fn.jquery || !$.fn.uniqueId || !$.widget || !$.ui.mouse || !$.ui.draggabl
}

var jsPanel = {
version: '2.6.1 2016-01-22 16:57',
version: '2.6.2 2016-03-18 08:17',
device: (function(){
try {
// requires "mobile-detect.js" to be loaded
Expand Down Expand Up @@ -492,6 +492,16 @@ var jsPanel = {
var elmtOffset, elmtPosition, elmtTop, elmtLeft, elmtWidth, elmtHeight, elmtStatus, panelParent,
panelArr = [], exportedPanel,
panels = $(".jsPanel").not(".jsPanel-tt, .jsPanel-hint, .jsPanel-modal");

// normalize minimized/maximized panels before export
// status to restore is saved in exportedPanel.panelstatus
panels.each(function(index, elmt) {
// for some reason this does not work properly inside the following .each() block
if ($(elmt).data("panelstatus") !== "normalized") {
$(".jsPanel-btn-norm", elmt).trigger("click");
}
});

panels.each(function(index, elmt){
exportedPanel = {
panelstatus: $(elmt).data("panelstatus"),
Expand All @@ -501,11 +511,7 @@ var jsPanel = {
offset: { top: 0, left: 0 },
content: $(elmt).data("content")
};
// normalize minimized/maximized panels before export
// status to restore is saved in exportedPanel.panelstatus
if ($(elmt).data("panelstatus") !== "normalized") {
$(".jsPanel-btn-norm", elmt).trigger("click");
}

panelParent = $(elmt).data("selector");
elmtOffset = $(elmt).offset();
elmtPosition = $(elmt).position();
Expand Down
18 changes: 9 additions & 9 deletions source/jquery.jspanel.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0970c9f

Please sign in to comment.