Commit 8d246fff authored by David Stutz's avatar David Stutz

#378, #376: example for PHP usage. Updated bower.

parent 0bbd01c7
{ {
"name": "bootstrap-multiselect", "name": "bootstrap-multiselect",
"description": "Twitter Bootstrap plugin to make selects user friendly.",
"homepage": "http://davidstutz.github.io/bootstrap-multiselect/",
"version": "0.9.9", "version": "0.9.9",
"keywords": [
"js",
"css",
"less",
"bootstrap",
"jquery",
"multiselect"
],
"main": [ "main": [
"./js/bootstrap-multiselect.js", "./dist/js/bootstrap-multiselect.js",
"./css/bootstrap-multiselect.css" "./dist/css/bootstrap-multiselect.css",
"./dist/less/bootstrap-multiselect.less"
], ],
"dependencies": { "dependencies": {
"jquery": ">= 1.11.0", "jquery": ">= 1.11.0",
"bootstrap": ">= 2.3.2" "bootstrap": ">= 2.3.2"
}, },
"ignore": [ "ignore": [
"js/bootstrap-3*", "docs/.*",
"js/jquery*", "tests/.*",
"js/prettify*",
"css/bootstrap-3*",
"css/prettify*",
"*.html", "*.html",
"*.git*", "*.git*",
"fonts" "*.md",
"*.png",
"*.php"
] ]
} }
...@@ -242,6 +242,7 @@ ...@@ -242,6 +242,7 @@
includeSelectAllIfMoreThan: 0, includeSelectAllIfMoreThan: 0,
selectAllText: ' Select all', selectAllText: ' Select all',
selectAllValue: 'multiselect-all', selectAllValue: 'multiselect-all',
selectAllName: false,
enableFiltering: false, enableFiltering: false,
enableCaseInsensitiveFiltering: false, enableCaseInsensitiveFiltering: false,
enableClickableOptGroups: false, enableClickableOptGroups: false,
...@@ -669,8 +670,8 @@ ...@@ -669,8 +670,8 @@
var $li = $(this.options.templates.li); var $li = $(this.options.templates.li);
$('label', $li).addClass("checkbox"); $('label', $li).addClass("checkbox");
if (this.options.checkboxName) { if (this.options.selectAllName) {
$('label', $li).append('<input type="checkbox" name="' + this.options.checkboxName + '" />'); $('label', $li).append('<input type="checkbox" name="' + this.options.selectAllName + '" />');
} }
else { else {
$('label', $li).append('<input type="checkbox" />'); $('label', $li).append('<input type="checkbox" />');
......
This diff is collapsed.
<?php
print_r($_POST);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment