Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
103 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
*.gz | ||
*.swp | ||
pub/System/JQSelect2Contrib/jquery.select2.init.js | ||
pub/System/JQSelect2Contrib/jquery.select2.css | ||
pub/System/JQSelect2Contrib/jquery.select2.js | ||
JQSelect2Contrib.md5 | ||
JQSelect2Contrib.sha1 | ||
JQSelect2Contrib.tgz | ||
JQSelect2Contrib.txt | ||
JQSelect2Contrib.zip | ||
JQSelect2Contrib_installer | ||
JQSelect2Contrib_installer.pl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
data/System/JQSelect2Contrib.txt 0644 | ||
lib/Foswiki/Contrib/JQSelect2Contrib.pm 0644 | ||
lib/Foswiki/Contrib/JQSelect2Contrib/Config.spec 0644 | ||
lib/Foswiki/Contrib/JQSelect2Contrib.pm 0644 | ||
lib/Foswiki/Contrib/JQSelect2Contrib/SELECT2.pm 0644 | ||
pub/System/JQSelect2Contrib/jquery.select2.css 0644 | ||
pub/System/JQSelect2Contrib/jquery.select2.css.gz 0644 | ||
pub/System/JQSelect2Contrib/jquery.select2.init.js 0644 | ||
pub/System/JQSelect2Contrib/jquery.select2.init.js.gz 0644 | ||
pub/System/JQSelect2Contrib/jquery.select2.init.uncompressed.js 0644 | ||
pub/System/JQSelect2Contrib/jquery.select2.js 0644 | ||
pub/System/JQSelect2Contrib/jquery.select2.js.gz 0644 | ||
pub/System/JQSelect2Contrib/jquery.select2.uncompressed.css 0644 | ||
pub/System/JQSelect2Contrib/jquery.select2.uncompressed.js 0644 | ||
pub/System/JQSelect2Contrib/jquery.select2.init.js 0644 | ||
pub/System/JQSelect2Contrib/jquery.select2.init.js.gz 0644 | ||
pub/System/JQSelect2Contrib/jquery.select2.init.uncompressed.js 0644 | ||
pub/System/JQSelect2Contrib/LICENSE | ||
pub/System/JQSelect2Contrib/LICENSE 0644 | ||
pub/System/JQSelect2Contrib/Makefile 0644 | ||
pub/System/JQSelect2Contrib/select2.png 0644 | ||
pub/System/JQSelect2Contrib/select2x2.png 0644 | ||
pub/System/JQSelect2Contrib/spinner.gif 0644 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
Copyright 2012 Igor Vaynberg | ||
|
||
Version: @@ver@@ Timestamp: @@timestamp@@ | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in | ||
compliance with the License. You may obtain a copy of the License in the LICENSE file, or at: | ||
This software is licensed under the Apache License, Version 2.0 (the "Apache License") or the GNU | ||
General Public License version 2 (the "GPL License"). You may choose either license to govern your | ||
use of this software only upon the condition that you accept all of the terms of either the Apache | ||
License or the GPL License. | ||
|
||
You may obtain a copy of the Apache License and the GPL License at: | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
http://www.gnu.org/licenses/gpl-2.0.html | ||
|
||
Unless required by applicable law or agreed to in writing, software distributed under the License is | ||
distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and limitations under the License. | ||
Unless required by applicable law or agreed to in writing, software distributed under the Apache License | ||
or the GPL Licesnse is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
either express or implied. See the Apache License and the GPL License for the specific language governing | ||
permissions and limitations under the Apache License and the GPL License. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FOSWIKI_ROOT?=~/foswiki/core | ||
TARGET=\ | ||
jquery.select2.js \ | ||
jquery.select2.init.js \ | ||
jquery.select2.css | ||
|
||
-include $(FOSWIKI_ROOT)/pub/System/JQueryPlugin/Makefile.include | ||
|
||
clean: | ||
rm $(TARGET) *.gz |
8 changes: 5 additions & 3 deletions
8
pub/System/JQSelect2Contrib/jquery.select2.init.uncompressed.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
// initializer for the select2 plugin | ||
jQuery(function($) { | ||
$(".jqSelect2").livequery(function() { | ||
var $this = $(this), opts = $.extend({}, $this.metadata()); | ||
$this.removeClass("jqSelect2").select2(opts); | ||
var defaults = {}; | ||
|
||
$(".jqSelect2:not(.jqSelect2Inited)").livequery(function() { | ||
var $this = $(this), opts = $.extend({}, defaults, $this.metadata(), $this.data()); | ||
$this.addClass("jqSelect2Inited").select2(opts); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters