Skip to content

Commit

Permalink
Item12116: preparing release
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDaum committed Apr 9, 2015
1 parent 0fd55bc commit fc58466
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
8 changes: 4 additions & 4 deletions data/System/JQSelect2Contrib.txt
@@ -1,4 +1,4 @@
%META:TOPICINFO{author="ProjectContributor" comment="autosave" date="1366373896" format="1.1" version="2"}%
%META:TOPICINFO{author="ProjectContributor" comment="" date="1428561401" format="1.1" version="1"}%
---+ %TOPIC%

%JQPLUGINS{"select2"
Expand Down Expand Up @@ -57,13 +57,13 @@ If Select2 is enabled, you will see the result below:
-->

| Author(s): | [[Foswiki:Main.JanKrueger][Jan Krueger]] |
| Copyright: | © 2012 Modell Aachen !GmbH, http://modell-aachen.de/ |
| Copyright: | © 2012 Modell Aachen !GmbH, http://modell-aachen.de/; © 2012-2015 Foswiki Contributors |
| 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; |
| 04 Oct 2012: | initial release based on Select2 3.2 |
| 09 Mar 2015: | initial release on foswiki.org (Foswiki:Main/MichaelDaum) |
| 04 Oct 2012: | initial check-in of select2 3.2 (Foswiki:Main/JanKrueger) |
| Dependencies: | %$DEPENDENCIES% |
| Home page: | Foswiki:Extensions/%TOPIC% |
| Support: | Foswiki:Support/%TOPIC% |

1 change: 1 addition & 0 deletions lib/Foswiki/Contrib/JQSelect2Contrib.pm
@@ -1,6 +1,7 @@
# Contrib for Foswiki - The Free and Open Source Wiki, http://foswiki.org/
#
# Copyright (C) 2012 Modell Aachen GmbH, http://modell-aachen.de/
# Copyright (C) 2012-2015 Foswiki Contributors.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand Down
1 change: 1 addition & 0 deletions lib/Foswiki/Contrib/JQSelect2Contrib/Config.spec
Expand Up @@ -6,3 +6,4 @@ $Foswiki::cfg{JQueryPlugin}{Plugins}{Select2}{Module} = 'Foswiki::Contrib::JQSel
# **BOOLEAN**
$Foswiki::cfg{JQueryPlugin}{Plugins}{Select2}{Enabled} = 1;

1;
3 changes: 2 additions & 1 deletion lib/Foswiki/Contrib/JQSelect2Contrib/SELECT2.pm
@@ -1,6 +1,7 @@
# Plugin for Foswiki - The Free and Open Source Wiki, http://foswiki.org/
#
# Copyright (C) 2012 Modell Aachen GmbH, http://modell-aachen.de/
# Copyright (C) 2012-2015 Foswiki Contributors.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand Down Expand Up @@ -48,7 +49,7 @@ sub new {
documentation => "$Foswiki::cfg{SystemWebName}.JQSelect2Contrib",
javascript => ['jquery.select2.js', 'jquery.select2.init.js', ],
css => ['jquery.select2.css'],
dependencies => ['livequery'],
dependencies => ['livequery', 'metadata'],
@_
), $class);

Expand Down
Expand Up @@ -3,7 +3,7 @@ jQuery(function($) {
var defaults = {};

$(".jqSelect2:not(.jqSelect2Inited)").livequery(function() {
var $this = $(this), opts = $.extend({}, defaults, $this.data());
var $this = $(this), opts = $.extend({}, defaults, $this.metadata(), $this.data());
$this.addClass("jqSelect2Inited").select2(opts);
});
});

0 comments on commit fc58466

Please sign in to comment.