Skip to content

Commit faecae1

Browse files
- Added UDM code
- Updated development dependencies
1 parent 811be8c commit faecae1

6 files changed

Lines changed: 933 additions & 466 deletions

dist/bootstrap-duallistbox.min.css

Lines changed: 1 addition & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/jquery.bootstrap-duallistbox.js

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,26 @@
66
* Made by István Ujj-Mészáros
77
* Under Apache License v2.0 License
88
*/
9-
;(function ($, window, document, undefined) {
9+
(function(factory) {
10+
if (typeof define === 'function' && define.amd) {
11+
define(['jquery'], factory);
12+
} else if (typeof module === 'object' && module.exports) {
13+
module.exports = function(root, jQuery) {
14+
if (jQuery === undefined) {
15+
if (typeof window !== 'undefined') {
16+
jQuery = require('jquery');
17+
}
18+
else {
19+
jQuery = require('jquery')(root);
20+
}
21+
}
22+
factory(jQuery);
23+
return jQuery;
24+
};
25+
} else {
26+
factory(jQuery);
27+
}
28+
}(function($) {
1029
// Create the defaults once
1130
var pluginName = 'bootstrapDualListbox',
1231
defaults = {
@@ -35,10 +54,10 @@
3554
eventRemoveOverride: false, // boolean, allows user to unbind default event behaviour and run their own instead
3655
eventRemoveAllOverride: false, // boolean, allows user to unbind default event behaviour and run their own instead
3756
btnClass: 'btn-outline-secondary', // sets the button style class for all the buttons
38-
btnMoveText: 'Move >', // string, sets the text for the "Move" button
39-
btnRemoveText: '< Remove', // string, sets the text for the "Remove" button
40-
btnMoveAllText: 'Move all >>', // string, sets the text for the "Move All" button
41-
btnRemoveAllText: '<< Remove all' // string, sets the text for the "Remove All" button
57+
btnMoveText: '>', // string, sets the text for the "Move" button
58+
btnRemoveText: '<', // string, sets the text for the "Remove" button
59+
btnMoveAllText: '>>', // string, sets the text for the "Move All" button
60+
btnRemoveAllText: '<<' // string, sets the text for the "Remove All" button
4261
},
4362
// Selections are invisible on android if the containing select is styled with CSS
4463
// http://code.google.com/p/android/issues/detail?id=16922
@@ -835,4 +854,4 @@
835854

836855
};
837856

838-
})(jQuery, window, document);
857+
}));

0 commit comments

Comments
 (0)