Skip to content

Commit

Permalink
Item13534: add css to indicate twisty state
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDaum committed Jul 17, 2015
1 parent 01b92cd commit 8ae2b88
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 9 deletions.
11 changes: 11 additions & 0 deletions .gitignore
@@ -0,0 +1,11 @@
*.gz
pub/System/JQTwistyContrib/jquery.twisty.js
pub/System/JQTwistyContrib/jquery.twisty.css
*.swp
JQTwistyContrib.md5
JQTwistyContrib.sha1
JQTwistyContrib.tgz
JQTwistyContrib.txt
JQTwistyContrib.zip
JQTwistyContrib_installer
JQTwistyContrib_installer.pl
5 changes: 3 additions & 2 deletions data/System/JQTwistyContrib.txt
@@ -1,4 +1,4 @@
%META:TOPICINFO{author="ProjectContributor" comment="reprev" date="1381417193" format="1.1" reprev="3" version="4"}%
%META:TOPICINFO{author="ProjectContributor" comment="" date="1437153146" format="1.1" version="1"}%
---+!! %TOPIC%
%SHORTDESCRIPTION%

Expand Down Expand Up @@ -162,11 +162,12 @@ jQuery(function($) {
-->

| Author(s): | Michael Daum|
| Copyright: | © 2012-2014 Michael Daum http://michaeldaumconsulting.com |
| Copyright: | © 2012-2015 Michael Daum http://michaeldaumconsulting.com |
| License: | [[http://www.gnu.org/licenses/gpl.html][GPL (Gnu General Public License)]] |
| Release: | %$RELEASE% |
| Version: | %$VERSION% |
| Change History: | <!-- versions below in reverse order -->&nbsp; |
| 17 Jul 2015: | added css classes to indicate twisty state |
| 15 Mar 2014: | fixed syntax error in contrib stub |
| 13 Dec 2013: | support html elements to be used as twisty toggles |
| 12 Jun 2012: | initial release |
Expand Down
6 changes: 3 additions & 3 deletions lib/Foswiki/Contrib/JQTwistyContrib.pm
@@ -1,6 +1,6 @@
# Plugin for Foswiki - The Free and Open Source Wiki, http://foswiki.org/
#
# JQTwistyContrib is Copyright (C) 2012-2014 Michael Daum http://michaeldaumconsulting.com
# JQTwistyContrib is Copyright (C) 2012-2015 Michael Daum http://michaeldaumconsulting.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand All @@ -24,8 +24,8 @@ use warnings;
=cut

our $VERSION = '2.11';
our $RELEASE = '2.11';
our $VERSION = '2.20';
our $RELEASE = '2.20';
our $SHORTDESCRIPTION = 'Lightweight twisty plugin';
our $NO_PREFS_IN_TOPIC = 1;

Expand Down
4 changes: 2 additions & 2 deletions lib/Foswiki/Contrib/JQTwistyContrib/Core.pm
Expand Up @@ -31,7 +31,7 @@ sub new {
$class->SUPER::new(
$session,
name => 'JQTwisty',
version => '1.1.0',
version => '1.20',
author => 'Michael Daum',
homepage => 'http://foswiki.org/Extensions/JQTwistyContrib',
css => ['jquery.twisty.css'],
Expand All @@ -49,7 +49,7 @@ sub new {
__END__
Foswiki - The Free and Open Source Wiki, http://foswiki.org/
Copyright (C) 2012-2014 Michael Daum http://michaeldaumconsulting.com
Copyright (C) 2012-2015 Michael Daum http://michaeldaumconsulting.com
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
8 changes: 6 additions & 2 deletions pub/System/JQTwistyContrib/jquery.twisty.uncompressed.js
@@ -1,9 +1,9 @@
/**
* @preserve
* jquery.twisty 1.1.0
* jquery.twisty 1.20
* http://foswiki.org/Extensions/JQTwistyContrib
*
* Copyright (c) 2012-2014 Michael Daum http://michaeldaumconsulting.com
* Copyright (c) 2012-2015 Michael Daum http://michaeldaumconsulting.com
* Dual licensed under the MIT and GPL licenses, located in
* MIT-LICENSE.txt and GPL-LICENSE.txt respectively.
*
Expand Down Expand Up @@ -101,6 +101,7 @@

if (immediate) {
self.target.show();
self.element.removeClass("jqTwistyClosed");
} else {
self.openAnimation();
}
Expand All @@ -122,6 +123,7 @@

if (immediate) {
self.target.hide();
self.element.addClass("jqTwistyClosed");
} else {
self.closeAnimation();
}
Expand All @@ -139,6 +141,7 @@
'fast',
self.options.easing,
function() {
self.element.removeClass("jqTwistyClosed");
self.element.trigger("afterOpen.twisty");
});
};
Expand All @@ -155,6 +158,7 @@
'fast',
self.options.easing,
function() {
self.element.addClass("jqTwistyClosed");
self.element.trigger("afterClose.twisty");
});
};
Expand Down

0 comments on commit 8ae2b88

Please sign in to comment.