|
6 | 6 | * Made by István Ujj-Mészáros |
7 | 7 | * Under Apache License v2.0 License |
8 | 8 | */ |
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($) { |
10 | 29 | // Create the defaults once |
11 | 30 | var pluginName = 'bootstrapDualListbox', |
12 | 31 | defaults = { |
|
35 | 54 | eventRemoveOverride: false, // boolean, allows user to unbind default event behaviour and run their own instead |
36 | 55 | eventRemoveAllOverride: false, // boolean, allows user to unbind default event behaviour and run their own instead |
37 | 56 | 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 |
42 | 61 | }, |
43 | 62 | // Selections are invisible on android if the containing select is styled with CSS |
44 | 63 | // http://code.google.com/p/android/issues/detail?id=16922 |
|
835 | 854 |
|
836 | 855 | }; |
837 | 856 |
|
838 | | -})(jQuery, window, document); |
| 857 | +})); |
0 commit comments