Skip to content

Commit

Permalink
forgot to recompile
Browse files Browse the repository at this point in the history
  • Loading branch information
istvan-ujjmeszaros committed Jun 23, 2015
1 parent 3257c57 commit bc12a3a
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 41 deletions.
2 changes: 1 addition & 1 deletion bootstrap-duallistbox.jquery.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"input",
"ui"
],
"version": "3.0.3",
"version": "3.0.4",
"author": {
"name": "István Ujj-Mészáros",
"url": "https://github.com/istvan-ujjmeszaros"
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bootstrap-duallistbox",
"version": "3.0.3",
"version": "3.0.4",
"homepage": "http://www.virtuosoft.eu/code/bootstrap-duallistbox/",
"authors": [
{
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"keywords": ["bootstrap", "bootstrap select", "select", "bootstrap duallistbox", "duallistbox"],
"description": "A responsive dual listbox widget optimized for Twitter Bootstrap. It works on all modern browsers and on touch devices.",
"homepage": "http://www.virtuosoft.eu/code/bootstrap-duallistbox/",
"version": "3.0.3",
"version": "3.0.4",
"authors": [
{
"name": "István Ujj-Mészáros",
Expand Down
16 changes: 8 additions & 8 deletions dist/bootstrap-duallistbox.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*
* Bootstrap Duallistbox - v3.0.3
* A responsive dual listbox widget optimized for Twitter Bootstrap. It works on all modern browsers and on touch devices.
* http://www.virtuosoft.eu/code/bootstrap-duallistbox/
*
* Made by István Ujj-Mészáros
* Under Apache License v2.0 License
*/
/*
* Bootstrap Duallistbox - v3.0.4
* A responsive dual listbox widget optimized for Twitter Bootstrap. It works on all modern browsers and on touch devices.
* http://www.virtuosoft.eu/code/bootstrap-duallistbox/
*
* Made by István Ujj-Mészáros
* Under Apache License v2.0 License
*/
.bootstrap-duallistbox-container .buttons {
width: 100%;
margin-bottom: -1px;
Expand Down
18 changes: 9 additions & 9 deletions dist/bootstrap-duallistbox.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 13 additions & 11 deletions dist/jquery.bootstrap-duallistbox.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*
* Bootstrap Duallistbox - v3.0.3
* A responsive dual listbox widget optimized for Twitter Bootstrap. It works on all modern browsers and on touch devices.
* http://www.virtuosoft.eu/code/bootstrap-duallistbox/
*
* Made by István Ujj-Mészáros
* Under Apache License v2.0 License
*/
/*
* Bootstrap Duallistbox - v3.0.4
* A responsive dual listbox widget optimized for Twitter Bootstrap. It works on all modern browsers and on touch devices.
* http://www.virtuosoft.eu/code/bootstrap-duallistbox/
*
* Made by István Ujj-Mészáros
* Under Apache License v2.0 License
*/
;(function ($, window, document, undefined) {
// Create the defaults once
var pluginName = 'bootstrapDualListbox',
Expand Down Expand Up @@ -145,10 +145,11 @@

dualListbox.elements['select'+selectIndex].empty().scrollTop(0);
var regex = new RegExp($.trim(dualListbox.elements['filterInput'+selectIndex].val()), 'gi'),
allOptions = dualListbox.element.find('option'),
options = dualListbox.element;

if (selectIndex === 1) {
options = options.find('option').not(':selected');
options = allOptions.not(':selected');
} else {
options = options.find('option:selected');
}
Expand All @@ -160,16 +161,17 @@
isFiltered = false;
dualListbox.elements['select'+selectIndex].append($item.clone(true).prop('selected', $item.data('_selected')));
}
dualListbox.element.find('option').eq($item.data('original-index')).data('filtered'+selectIndex, isFiltered);
allOptions.eq($item.data('original-index')).data('filtered'+selectIndex, isFiltered);
});

refreshInfo(dualListbox);
}

function saveSelections(dualListbox, selectIndex) {
var options = dualListbox.element.find('option');
dualListbox.elements['select'+selectIndex].find('option').each(function(index, item) {
var $item = $(item);
dualListbox.element.find('option').eq($item.data('original-index')).data('_selected', $item.prop('selected'));
options.eq($item.data('original-index')).data('_selected', $item.prop('selected'));
});
}

Expand Down

0 comments on commit bc12a3a

Please sign in to comment.