Skip to content

Commit

Permalink
bugfix option.ajax
Browse files Browse the repository at this point in the history
This version fixes a bug causing unnecessary get requests (page reload)
whenever a jsPanel is created
  • Loading branch information
Flyer53 committed Oct 8, 2015
1 parent 6b94d95 commit a966617
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 22 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.5.5

+ bugfix **option.ajax** (causing unnecesary get requests whenever a jsPanel is created)

---

### Version 2.5.4

+ bugfix **option.position** when using **{ top: 'auto', left: 'auto' }**
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## [jsPanel 2.5.4 released 2015-09-28](#)
## [jsPanel 2.5.5 released 2015-10-08](#)

**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.5.4",
"version": "v2.5.5",
"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.5.4",
"version": "2.5.5",
"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.5.4",
"version": "2.5.5",
"description": "A jQuery Plugin to create highly configurable floating panels for use in a backend solution and other web applications",
"main": [
"source/jquery.jspanel.js",
Expand Down
8 changes: 4 additions & 4 deletions source/jquery.jspanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
<http://opensource.org/licenses/MIT>.
CHANGES IN 2.5.4:
+ option.position bugfix when using { left: 'auto', top: 'auto' }
CHANGES IN 2.5.5:
+ option.ajax bugfix (unnecessary get requests)
*/

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

var jsPanel = {
version: '2.5.4 2015-09-28 10:05',
version: '2.5.5 2015-10-08 15:47',
device: (function(){
try {
// requires "mobile-detect.js" to be loaded
Expand Down Expand Up @@ -1821,7 +1821,7 @@ console.log("jsPanel version: " + jsPanel.version);
}

/* option.ajax ---------------------------------------------------------------------------------------------- */
if ($.isPlainObject(jsP.option.ajax)) {
if ($.isPlainObject(jsP.option.ajax) && jsP.option.ajax.url) {
jsPanel.ajax(jsP);
}

Expand Down
29 changes: 15 additions & 14 deletions source/jquery.jspanel.min.js

Large diffs are not rendered by default.

0 comments on commit a966617

Please sign in to comment.