Skip to content

Commit

Permalink
Item12047: fixes for jquery-1.8.0
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/JQGanttContrib@15300 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
MichaelDaum authored and MichaelDaum committed Aug 20, 2012
1 parent 8e6160a commit 622205f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion data/Sandbox/JQueryGanttTest.txt
@@ -1,4 +1,4 @@
%META:TOPICINFO{author="micha" date="1344264253" format="1.1" reprev="1" version="1"}%
%META:TOPICINFO{author="ProjectContributor" date="1344264253" format="1.1" reprev="1" version="1"}%
%META:TOPICPARENT{name="WebHome"}%
---+!! %TOPIC%

Expand Down
7 changes: 3 additions & 4 deletions data/System/JQGanttContrib.txt
@@ -1,4 +1,4 @@
%META:TOPICINFO{author="micha" comment="save topic" date="1323775312" format="1.1" reprev="2" version="2"}%
%META:TOPICINFO{author="ProjectContributor" comment="reprev" date="1345447020" format="1.1" version="3"}%
---+!! %TOPIC%
%SHORTDESCRIPTION%

Expand All @@ -25,9 +25,8 @@ This is a gantt chart useful to display simple resource views.

---++ Demo

%JQREQUIRE{"gantt" warn="off"}%
See Sandbox.JQueryGanttTest

<div class="jqGantt"></div>

---++ Usage

Expand Down Expand Up @@ -78,7 +77,7 @@ Plugin uses data in JSON formated as below:

| Author(s): | Marek Bielańczuk (jquery.gantt); Michael Daum (foswiki package) |
| Copyright: | &copy; Copyright (c) 2011 Marek Bielańczuk |
| License: | Released under the MIT and GPL Licenses |
| License: | Released under the MIT and GPL Licenses |
| Release: | %$RELEASE% |
| Version: | %$VERSION% |
| Change History: | <!-- versions below in reverse order -->&nbsp; |
Expand Down
5 changes: 5 additions & 0 deletions lib/Foswiki/Contrib/JQGanttContrib/MANIFEST
@@ -1,10 +1,15 @@
data/Sandbox/JQueryGanttTest.txt 0644
data/System/JQGanttContrib.txt 0644
lib/Foswiki/Contrib/JQGanttContrib/Config.spec 0644
lib/Foswiki/Contrib/JQGanttContrib/Core.pm 0644
lib/Foswiki/Contrib/JQGanttContrib.pm 0644
pub/System/JQGanttContrib/img/buttons.png 0644
pub/System/JQGanttContrib/img/buttons.svg 0644
pub/System/JQGanttContrib/img/grid.png 0644
pub/System/JQGanttContrib/img/icon_sprite.png 0644
pub/System/JQGanttContrib/img/loader_bg.png 0644
pub/System/JQGanttContrib/img/loader-bg.png 0644
pub/System/JQGanttContrib/img/slider_handle.png 0644
pub/System/JQGanttContrib/jquery.gantt.css 0644
pub/System/JQGanttContrib/jquery.gantt.css.gz 0644
pub/System/JQGanttContrib/jquery.gantt.init.js 0644
Expand Down
4 changes: 4 additions & 0 deletions pub/System/JQGanttContrib/jquery.gantt.uncompressed.js
Expand Up @@ -29,6 +29,7 @@

$.extend($.expr[":"], {
findday: function (a, i, m) {
if (typeof(m) === 'undefined') return false;
var cd = new Date(parseInt(m[3],10));
var id = $(a).attr("id");
id = id ? id : "";
Expand All @@ -42,6 +43,7 @@

$.extend($.expr[":"], {
findweek: function (a, i, m) {
if (typeof(m) === 'undefined') return false;
var cd = new Date(parseInt(m[3],10));
var id = $(a).attr("id");
id = id ? id : "";
Expand All @@ -54,6 +56,7 @@

$.extend($.expr[":"], {
findmonth: function (a, i, m) {
if (typeof(m) === 'undefined') return false;
var cd = new Date(parseInt(m[3],10));
cd = cd.getFullYear() + "-" + cd.getMonth();
var id = $(a).attr("id");
Expand Down Expand Up @@ -936,6 +939,7 @@
default:
var cd = Date.parse(new Date());
cd = (Math.floor(cd / 36400000) * 36400000);
console.log("cd=",cd);
$(element).find(':findday("' + cd + '")').removeClass('wd').addClass('today');
break;
}
Expand Down

0 comments on commit 622205f

Please sign in to comment.