diff --git a/Gruntfile.js b/Gruntfile.js index 60d02efd0d8..545329df039 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -5,15 +5,15 @@ module.exports = function( grunt ) { var // files coreFiles = [ - "jquery.ui.core.js", - "jquery.ui.widget.js", - "jquery.ui.mouse.js", - "jquery.ui.draggable.js", - "jquery.ui.droppable.js", - "jquery.ui.resizable.js", - "jquery.ui.selectable.js", - "jquery.ui.sortable.js", - "jquery.ui.effect.js" + "core.js", + "widget.js", + "mouse.js", + "draggable.js", + "droppable.js", + "resizable.js", + "selectable.js", + "sortable.js", + "effect.js" ], uiFiles = coreFiles.map(function( file ) { @@ -42,7 +42,7 @@ var "tooltip", "theme" ].map(function( component ) { - return "themes/base/jquery.ui." + component + ".css"; + return "themes/base/" + component + ".css"; }), // minified files @@ -166,7 +166,7 @@ grunt.initConfig({ }, jscs: { // datepicker, sortable, resizable and draggable are getting rewritten, ignore until that's done - ui: [ "ui/jquery.ui.*.js", "!ui/jquery.ui.datepicker.js", "!ui/jquery.ui.sortable.js", "!ui/jquery.ui.resizable.js", "!ui/jquery.ui.draggable.js" ], + ui: [ "ui/*.js", "!ui/datepicker.js", "!ui/sortable.js", "!ui/resizable.js", "!ui/draggable.js" ], // TODO enable this once we have a tool that can help with fixing formatting of existing files // tests: "tests/unit/**/*.js", grunt: "Gruntfile.js" diff --git a/demos/accordion/collapsible.html b/demos/accordion/collapsible.html index edee8cd10ed..864be026b1e 100644 --- a/demos/accordion/collapsible.html +++ b/demos/accordion/collapsible.html @@ -3,11 +3,11 @@ jQuery UI Accordion - Collapse content - + - - - + + + - - - - + + + + - - - + + + - - - - - + + + + + #accordion-resizer { diff --git a/demos/accordion/hoverintent.html b/demos/accordion/hoverintent.html index 3d845c537bd..8a1daefdc2f 100644 --- a/demos/accordion/hoverintent.html +++ b/demos/accordion/hoverintent.html @@ -3,11 +3,11 @@ jQuery UI Accordion - Open on hoverintent - + - - - + + + - - - + + + - - - - - + + + + + /* IE has layout issues when sorting (see #5413) */ diff --git a/demos/autocomplete/categories.html b/demos/autocomplete/categories.html index 998ae9ea69c..d840535df26 100644 --- a/demos/autocomplete/categories.html +++ b/demos/autocomplete/categories.html @@ -3,13 +3,13 @@ jQuery UI Autocomplete - Categories - + - - - - - + + + + + .ui-autocomplete-category { diff --git a/demos/autocomplete/combobox.html b/demos/autocomplete/combobox.html index dcee550f105..236ea20b072 100644 --- a/demos/autocomplete/combobox.html +++ b/demos/autocomplete/combobox.html @@ -3,15 +3,15 @@ jQuery UI Autocomplete - Combobox - + - - - - - - - + + + + + + + .custom-combobox { diff --git a/demos/autocomplete/custom-data.html b/demos/autocomplete/custom-data.html index 283890066c8..206f85add05 100644 --- a/demos/autocomplete/custom-data.html +++ b/demos/autocomplete/custom-data.html @@ -3,13 +3,13 @@ jQuery UI Autocomplete - Custom data and display - + - - - - - + + + + + #project-label { diff --git a/demos/autocomplete/default.html b/demos/autocomplete/default.html index 2a925ddc60c..ee5e5d2b170 100644 --- a/demos/autocomplete/default.html +++ b/demos/autocomplete/default.html @@ -3,13 +3,13 @@ jQuery UI Autocomplete - Default functionality - + - - - - - + + + + + - - - - - + + + + + - - - - - + + + + + .ui-autocomplete { diff --git a/demos/autocomplete/multiple-remote.html b/demos/autocomplete/multiple-remote.html index aeb061c0084..0cf75c5db79 100644 --- a/demos/autocomplete/multiple-remote.html +++ b/demos/autocomplete/multiple-remote.html @@ -3,13 +3,13 @@ jQuery UI Autocomplete - Multiple, remote - + - - - - - + + + + + .ui-autocomplete-loading { diff --git a/demos/autocomplete/multiple.html b/demos/autocomplete/multiple.html index 0a28add8dcf..3fdf95706f2 100644 --- a/demos/autocomplete/multiple.html +++ b/demos/autocomplete/multiple.html @@ -3,13 +3,13 @@ jQuery UI Autocomplete - Multiple values - + - - - - - + + + + + - - - - - + + + + + .ui-autocomplete-loading { diff --git a/demos/autocomplete/remote-with-cache.html b/demos/autocomplete/remote-with-cache.html index a560ef9dff3..27d2fb8a785 100644 --- a/demos/autocomplete/remote-with-cache.html +++ b/demos/autocomplete/remote-with-cache.html @@ -3,13 +3,13 @@ jQuery UI Autocomplete - Remote with caching - + - - - - - + + + + + .ui-autocomplete-loading { diff --git a/demos/autocomplete/remote.html b/demos/autocomplete/remote.html index 11c81608cb8..4fef00e93a8 100644 --- a/demos/autocomplete/remote.html +++ b/demos/autocomplete/remote.html @@ -3,13 +3,13 @@ jQuery UI Autocomplete - Remote datasource - + - - - - - + + + + + .ui-autocomplete-loading { diff --git a/demos/autocomplete/xml.html b/demos/autocomplete/xml.html index 098bc28211e..fc86bc88ac1 100644 --- a/demos/autocomplete/xml.html +++ b/demos/autocomplete/xml.html @@ -3,13 +3,13 @@ jQuery UI Autocomplete - XML data parsed once - + - - - - - + + + + + .ui-autocomplete-loading { background: white url('images/ui-anim_basic_16x16.gif') right center no-repeat; } diff --git a/demos/button/checkbox.html b/demos/button/checkbox.html index 704ae1ea733..0c41257cb4f 100644 --- a/demos/button/checkbox.html +++ b/demos/button/checkbox.html @@ -3,11 +3,11 @@ jQuery UI Button - Checkboxes - + - - - + + + - - - + + + - - - + + + - - - + + + - - - - - + + + + + .ui-menu { position: absolute; width: 100px; } diff --git a/demos/button/toolbar.html b/demos/button/toolbar.html index d5dcb26a6ae..dc6b229d41b 100644 --- a/demos/button/toolbar.html +++ b/demos/button/toolbar.html @@ -3,11 +3,11 @@ jQuery UI Button - Toolbar - + - - - + + + #toolbar { diff --git a/demos/datepicker/alt-field.html b/demos/datepicker/alt-field.html index 8742da2cef0..3cfe7380944 100644 --- a/demos/datepicker/alt-field.html +++ b/demos/datepicker/alt-field.html @@ -3,11 +3,11 @@ jQuery UI Datepicker - Populate alternate field - + - - - + + + - - - - - - - - - - + + + + + + + + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - - - - - + + + + + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - + + + + + + + + - - - - - - - + + + + + + + - - - + + + + + + + - - - - - - + + body { font-size: 62.5%; } diff --git a/demos/dialog/modal-message.html b/demos/dialog/modal-message.html index f463ee80c1a..9670f0a7805 100644 --- a/demos/dialog/modal-message.html +++ b/demos/dialog/modal-message.html @@ -3,17 +3,17 @@ jQuery UI Dialog - Modal message - + - - - + + + + + + + - - - - - + - - - - - - - - + + + + + + + + - - - - + + + + .draggable { width: 90px; height: 90px; padding: 0.5em; float: left; margin: 0 10px 10px 0; } diff --git a/demos/draggable/cursor-style.html b/demos/draggable/cursor-style.html index e87c75ddd69..426123644c0 100644 --- a/demos/draggable/cursor-style.html +++ b/demos/draggable/cursor-style.html @@ -3,12 +3,12 @@ jQuery UI Draggable - Cursor style - + - - - - + + + + #draggable, #draggable2, #draggable3 { width: 100px; height: 100px; padding: 0.5em; float: left; margin: 0 10px 10px 0; } diff --git a/demos/draggable/default.html b/demos/draggable/default.html index a1f7a91e1e4..283a5964985 100644 --- a/demos/draggable/default.html +++ b/demos/draggable/default.html @@ -3,12 +3,12 @@ jQuery UI Draggable - Default functionality - + - - - - + + + + #draggable { width: 150px; height: 150px; padding: 0.5em; } diff --git a/demos/draggable/delay-start.html b/demos/draggable/delay-start.html index 5f45e42bfc0..16df485eb30 100644 --- a/demos/draggable/delay-start.html +++ b/demos/draggable/delay-start.html @@ -3,12 +3,12 @@ jQuery UI Draggable - Delay start - + - - - - + + + + #draggable, #draggable2 { width: 120px; height: 120px; padding: 0.5em; float: left; margin: 0 10px 10px 0; } diff --git a/demos/draggable/events.html b/demos/draggable/events.html index 9949a4cc893..caf392e218b 100644 --- a/demos/draggable/events.html +++ b/demos/draggable/events.html @@ -3,12 +3,12 @@ jQuery UI Draggable - Events - + - - - - + + + + #draggable { width: 16em; padding: 0 1em; } diff --git a/demos/draggable/handle.html b/demos/draggable/handle.html index 31dabc4dad6..7c3690ea6fa 100644 --- a/demos/draggable/handle.html +++ b/demos/draggable/handle.html @@ -3,12 +3,12 @@ jQuery UI Draggable - Handles - + - - - - + + + + #draggable, #draggable2 { width: 100px; height: 100px; padding: 0.5em; float: left; margin: 0 10px 10px 0; } diff --git a/demos/draggable/revert.html b/demos/draggable/revert.html index 58282e732e1..7ccccdf55dd 100644 --- a/demos/draggable/revert.html +++ b/demos/draggable/revert.html @@ -3,12 +3,12 @@ jQuery UI Draggable - Revert position - + - - - - + + + + #draggable, #draggable2 { width: 100px; height: 100px; padding: 0.5em; float: left; margin: 0 10px 10px 0; } diff --git a/demos/draggable/scroll.html b/demos/draggable/scroll.html index 38b4404e292..3df762c6766 100644 --- a/demos/draggable/scroll.html +++ b/demos/draggable/scroll.html @@ -3,12 +3,12 @@ jQuery UI Draggable - Auto-scroll - + - - - - + + + + #draggable, #draggable2, #draggable3 { width: 100px; height: 100px; padding: 0.5em; float: left; margin: 0 10px 10px 0; } diff --git a/demos/draggable/snap-to.html b/demos/draggable/snap-to.html index 8b2a8875aff..07797c44737 100644 --- a/demos/draggable/snap-to.html +++ b/demos/draggable/snap-to.html @@ -3,12 +3,12 @@ jQuery UI Draggable - Snap to element or grid - + - - - - + + + + .draggable { width: 90px; height: 80px; padding: 5px; float: left; margin: 0 10px 10px 0; font-size: .9em; } diff --git a/demos/draggable/sortable.html b/demos/draggable/sortable.html index 09bb6c43b21..2dcda33f398 100644 --- a/demos/draggable/sortable.html +++ b/demos/draggable/sortable.html @@ -3,13 +3,13 @@ jQuery UI Draggable + Sortable - + - - - - - + + + + + ul { list-style-type: none; margin: 0; padding: 0; margin-bottom: 10px; } diff --git a/demos/draggable/visual-feedback.html b/demos/draggable/visual-feedback.html index 253a26d9b25..d90d4842c5d 100644 --- a/demos/draggable/visual-feedback.html +++ b/demos/draggable/visual-feedback.html @@ -3,12 +3,12 @@ jQuery UI Draggable - Visual feedback - + - - - - + + + + #draggable, #draggable2, #draggable3, #set div { width: 90px; height: 90px; padding: 0.5em; float: left; margin: 0 10px 10px 0; } diff --git a/demos/droppable/accepted-elements.html b/demos/droppable/accepted-elements.html index 51a8f93b8f5..69147b40148 100644 --- a/demos/droppable/accepted-elements.html +++ b/demos/droppable/accepted-elements.html @@ -3,13 +3,13 @@ jQuery UI Droppable - Accept - + - - - - - + + + + + #droppable { width: 150px; height: 150px; padding: 0.5em; float: left; margin: 10px; } diff --git a/demos/droppable/default.html b/demos/droppable/default.html index 56a70725d69..be3603eb8fe 100644 --- a/demos/droppable/default.html +++ b/demos/droppable/default.html @@ -3,13 +3,13 @@ jQuery UI Droppable - Default functionality - + - - - - - + + + + + #draggable { width: 100px; height: 100px; padding: 0.5em; float: left; margin: 10px 10px 10px 0; } diff --git a/demos/droppable/photo-manager.html b/demos/droppable/photo-manager.html index 08e2950d09d..cc35c17cfc0 100644 --- a/demos/droppable/photo-manager.html +++ b/demos/droppable/photo-manager.html @@ -3,16 +3,16 @@ jQuery UI Droppable - Simple photo manager - + - - - - - - - - + + + + + + + + #gallery { float: left; width: 65%; min-height: 12em; } diff --git a/demos/droppable/propagation.html b/demos/droppable/propagation.html index 247ac1c1d01..ccbf89d9022 100644 --- a/demos/droppable/propagation.html +++ b/demos/droppable/propagation.html @@ -3,13 +3,13 @@ jQuery UI Droppable - Prevent propagation - + - - - - - + + + + + #draggable { width: 100px; height: 40px; padding: 0.5em; float: left; margin: 10px 10px 10px 0; } diff --git a/demos/droppable/revert.html b/demos/droppable/revert.html index 5b5410193aa..6f5486780b9 100644 --- a/demos/droppable/revert.html +++ b/demos/droppable/revert.html @@ -3,13 +3,13 @@ jQuery UI Droppable - Revert draggable position - + - - - - - + + + + + #draggable, #draggable2 { width: 100px; height: 100px; padding: 0.5em; float: left; margin: 10px 10px 10px 0; } diff --git a/demos/droppable/shopping-cart.html b/demos/droppable/shopping-cart.html index aadaefe0a4a..6d94a35046b 100644 --- a/demos/droppable/shopping-cart.html +++ b/demos/droppable/shopping-cart.html @@ -3,15 +3,15 @@ jQuery UI Droppable - Shopping Cart Demo - + - - - - - - - + + + + + + + h1 { padding: .2em; margin: 0; } diff --git a/demos/droppable/visual-feedback.html b/demos/droppable/visual-feedback.html index f105373d932..d319a2ac05a 100644 --- a/demos/droppable/visual-feedback.html +++ b/demos/droppable/visual-feedback.html @@ -3,13 +3,13 @@ jQuery UI Droppable - Visual feedback - + - - - - - + + + + + #draggable, #draggable2 { width: 90px; height: 90px; padding: 0.5em; float: left; margin: 10px 10px 10px 0; } diff --git a/demos/effect/addClass.html b/demos/effect/addClass.html index 97eb2ff20bc..abe8a802f0a 100644 --- a/demos/effect/addClass.html +++ b/demos/effect/addClass.html @@ -3,9 +3,9 @@ jQuery UI Effects - addClass demo - + - + .toggler { width: 500px; height: 200px; position: relative; } diff --git a/demos/effect/animate.html b/demos/effect/animate.html index ca05a082a10..789f8298508 100644 --- a/demos/effect/animate.html +++ b/demos/effect/animate.html @@ -3,9 +3,9 @@ jQuery UI Effects - Animate demo - + - + .toggler { width: 500px; height: 200px; position: relative; } diff --git a/demos/effect/default.html b/demos/effect/default.html index 9486fc98b5f..8c02728942b 100644 --- a/demos/effect/default.html +++ b/demos/effect/default.html @@ -3,24 +3,24 @@ jQuery UI Effects - Effect demo - + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + .toggler { width: 500px; height: 200px; position: relative; } diff --git a/demos/effect/easing.html b/demos/effect/easing.html index bd0d830df85..7dea8686b0a 100644 --- a/demos/effect/easing.html +++ b/demos/effect/easing.html @@ -3,9 +3,9 @@ jQuery UI Effects - Easing demo - + - + .graph { diff --git a/demos/effect/hide.html b/demos/effect/hide.html index 3cacd2a72ee..dce56b60dc7 100644 --- a/demos/effect/hide.html +++ b/demos/effect/hide.html @@ -3,20 +3,20 @@ jQuery UI Effects - Hide Demo - + - - - - - - - - - - - - + + + + + + + + + + + + .toggler { width: 500px; height: 200px; } diff --git a/demos/effect/removeClass.html b/demos/effect/removeClass.html index cbd788a7a62..59cfb61d4af 100644 --- a/demos/effect/removeClass.html +++ b/demos/effect/removeClass.html @@ -3,9 +3,9 @@ jQuery UI Effects - removeClass Demo - + - + .toggler { width: 500px; height: 200px; position: relative; } diff --git a/demos/effect/show.html b/demos/effect/show.html index dc3abd223ba..f799d656271 100644 --- a/demos/effect/show.html +++ b/demos/effect/show.html @@ -3,20 +3,20 @@ jQuery UI Effects - Show Demo - + - - - - - - - - - - - - + + + + + + + + + + + + .toggler { width: 500px; height: 200px; } diff --git a/demos/effect/switchClass.html b/demos/effect/switchClass.html index 1200699c52f..e7fe4127edf 100644 --- a/demos/effect/switchClass.html +++ b/demos/effect/switchClass.html @@ -3,9 +3,9 @@ jQuery UI Effects - switchClass Demo - + - + .toggler { width: 500px; height: 200px; position: relative; } diff --git a/demos/effect/toggle.html b/demos/effect/toggle.html index 5150116cba7..1c8ee405d96 100644 --- a/demos/effect/toggle.html +++ b/demos/effect/toggle.html @@ -3,20 +3,20 @@ jQuery UI Effects - Toggle Demo - + - - - - - - - - - - - - + + + + + + + + + + + + .toggler { diff --git a/demos/effect/toggleClass.html b/demos/effect/toggleClass.html index 01fa1d525ee..89928a8e5f2 100644 --- a/demos/effect/toggleClass.html +++ b/demos/effect/toggleClass.html @@ -3,9 +3,9 @@ jQuery UI Effects - toggleClass Demo - + - + .toggler { width: 500px; height: 200px; position: relative; } diff --git a/demos/menu/default.html b/demos/menu/default.html index a54eb3d24ca..60f4d0d6628 100644 --- a/demos/menu/default.html +++ b/demos/menu/default.html @@ -3,12 +3,12 @@ jQuery UI Menu - Default functionality - + - - - - + + + + - - - - + + + + - - - + + + body { diff --git a/demos/position/default.html b/demos/position/default.html index 6248c38db4b..5a597a71494 100644 --- a/demos/position/default.html +++ b/demos/position/default.html @@ -3,13 +3,13 @@ jQuery UI Position - Default functionality - + - - - - - + + + + + #parent { diff --git a/demos/progressbar/default.html b/demos/progressbar/default.html index 3c66fdf9614..a7bb69f106c 100644 --- a/demos/progressbar/default.html +++ b/demos/progressbar/default.html @@ -3,11 +3,11 @@ jQuery UI Progressbar - Default functionality - + - - - + + + - - - - - - - - + + + + + + + + - - - + + + - - - + + + .ui-progressbar { diff --git a/demos/resizable/animate.html b/demos/resizable/animate.html index 789a22fa886..271a9eb3469 100644 --- a/demos/resizable/animate.html +++ b/demos/resizable/animate.html @@ -3,12 +3,12 @@ jQuery UI Resizable - Animate - + - - - - + + + + #resizable { width: 150px; height: 150px; padding: 0.5em; } diff --git a/demos/resizable/aspect-ratio.html b/demos/resizable/aspect-ratio.html index e5cf5ba2893..7b2d61734f5 100644 --- a/demos/resizable/aspect-ratio.html +++ b/demos/resizable/aspect-ratio.html @@ -3,12 +3,12 @@ jQuery UI Resizable - Preserve aspect ratio - + - - - - + + + + #resizable { width: 160px; height: 90px; padding: 0.5em; } diff --git a/demos/resizable/constrain-area.html b/demos/resizable/constrain-area.html index c062752a647..a1cb698ca2e 100644 --- a/demos/resizable/constrain-area.html +++ b/demos/resizable/constrain-area.html @@ -3,12 +3,12 @@ jQuery UI Resizable - Constrain resize area - + - - - - + + + + #container { width: 300px; height: 300px; } diff --git a/demos/resizable/default.html b/demos/resizable/default.html index ab5deb42abc..d4241ddf44e 100644 --- a/demos/resizable/default.html +++ b/demos/resizable/default.html @@ -3,12 +3,12 @@ jQuery UI Resizable - Default functionality - + - - - - + + + + #resizable { width: 150px; height: 150px; padding: 0.5em; } diff --git a/demos/resizable/delay-start.html b/demos/resizable/delay-start.html index 6ecd3b6f8f6..509479d90b2 100644 --- a/demos/resizable/delay-start.html +++ b/demos/resizable/delay-start.html @@ -3,12 +3,12 @@ jQuery UI Resizable - Delay start - + - - - - + + + + #resizable, #resizable2 { width: 150px; height: 150px; padding: 0.5em; } diff --git a/demos/resizable/helper.html b/demos/resizable/helper.html index b2d14d3c0e7..6080890ded2 100644 --- a/demos/resizable/helper.html +++ b/demos/resizable/helper.html @@ -3,12 +3,12 @@ jQuery UI Resizable - Helper - + - - - - + + + + #resizable { width: 150px; height: 150px; padding: 0.5em; } diff --git a/demos/resizable/max-min.html b/demos/resizable/max-min.html index 521b3056f81..71a02112f43 100644 --- a/demos/resizable/max-min.html +++ b/demos/resizable/max-min.html @@ -3,12 +3,12 @@ jQuery UI Resizable - Maximum / minimum size - + - - - - + + + + #resizable { width: 200px; height: 150px; padding: 5px; } diff --git a/demos/resizable/snap-to-grid.html b/demos/resizable/snap-to-grid.html index b55ec73e9b0..464535b0807 100644 --- a/demos/resizable/snap-to-grid.html +++ b/demos/resizable/snap-to-grid.html @@ -3,12 +3,12 @@ jQuery UI Resizable - Snap to grid - + - - - - + + + + #resizable { width: 150px; height: 150px; padding: 0.5em; } diff --git a/demos/resizable/synchronous-resize.html b/demos/resizable/synchronous-resize.html index a4e24a43d62..25f517195b5 100644 --- a/demos/resizable/synchronous-resize.html +++ b/demos/resizable/synchronous-resize.html @@ -3,12 +3,12 @@ jQuery UI Resizable - Synchronous resize - + - - - - + + + + #resizable { background-position: top left; } diff --git a/demos/resizable/textarea.html b/demos/resizable/textarea.html index e82dae3d3b9..562ce2e5beb 100644 --- a/demos/resizable/textarea.html +++ b/demos/resizable/textarea.html @@ -3,12 +3,12 @@ jQuery UI Resizable - Textarea - + - - - - + + + + .ui-resizable-se { diff --git a/demos/resizable/visual-feedback.html b/demos/resizable/visual-feedback.html index 3532ba37cad..856db7f0424 100644 --- a/demos/resizable/visual-feedback.html +++ b/demos/resizable/visual-feedback.html @@ -3,12 +3,12 @@ jQuery UI Resizable - Visual feedback - + - - - - + + + + #resizable { width: 150px; height: 150px; padding: 0.5em; } diff --git a/demos/selectable/default.html b/demos/selectable/default.html index 369b3ab1604..3509491061d 100644 --- a/demos/selectable/default.html +++ b/demos/selectable/default.html @@ -3,12 +3,12 @@ jQuery UI Selectable - Default functionality - + - - - - + + + + diff --git a/demos/selectable/display-grid.html b/demos/selectable/display-grid.html index 0445cb37dde..ddc22c3cac9 100644 --- a/demos/selectable/display-grid.html +++ b/demos/selectable/display-grid.html @@ -3,12 +3,12 @@ jQuery UI Selectable - Display as grid - + - - - - + + + + diff --git a/demos/selectable/serialize.html b/demos/selectable/serialize.html index 38edde9b542..69a1e862ecd 100644 --- a/demos/selectable/serialize.html +++ b/demos/selectable/serialize.html @@ -3,12 +3,12 @@ jQuery UI Selectable - Serialize - + - - - - + + + + diff --git a/demos/selectmenu/custom_render.html b/demos/selectmenu/custom_render.html index fb8127bbd7a..a2bbb0fb6cd 100644 --- a/demos/selectmenu/custom_render.html +++ b/demos/selectmenu/custom_render.html @@ -4,13 +4,13 @@ jQuery UI Selectmenu - Default functionality - + - - - - - + + + + + - - - - - + + + + + - - - - + + + + #red, #green, #blue { diff --git a/demos/slider/default.html b/demos/slider/default.html index d63741296b9..b9ef44cbd14 100644 --- a/demos/slider/default.html +++ b/demos/slider/default.html @@ -3,12 +3,12 @@ jQuery UI Slider - Default functionality - + - - - - + + + + - - - - + + + + - - - - + + + + #eq span { diff --git a/demos/slider/range-vertical.html b/demos/slider/range-vertical.html index 31ecdb0dae4..3a32f79c867 100644 --- a/demos/slider/range-vertical.html +++ b/demos/slider/range-vertical.html @@ -3,12 +3,12 @@ jQuery UI Slider - Vertical range slider - + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + .scroll-pane { overflow: auto; width: 99%; float:left; } diff --git a/demos/slider/slider-vertical.html b/demos/slider/slider-vertical.html index 33fc8e0fbdb..8aedbb31e21 100644 --- a/demos/slider/slider-vertical.html +++ b/demos/slider/slider-vertical.html @@ -3,12 +3,12 @@ jQuery UI Slider - Vertical slider - + - - - - + + + + - - - - + + + + - - - - - - + + + + + + #sortable1 li, #sortable2 li { margin: 0 5px 5px 5px; padding: 5px; font-size: 1.2em; width: 120px; } diff --git a/demos/sortable/connect-lists.html b/demos/sortable/connect-lists.html index b28991fbe47..e8fde006941 100644 --- a/demos/sortable/connect-lists.html +++ b/demos/sortable/connect-lists.html @@ -3,12 +3,12 @@ jQuery UI Sortable - Connect lists - + - - - - + + + + #sortable1, #sortable2 { list-style-type: none; margin: 0; padding: 0 0 2.5em; float: left; margin-right: 10px; } diff --git a/demos/sortable/default.html b/demos/sortable/default.html index 34795ad9387..4fbfea1e9e0 100644 --- a/demos/sortable/default.html +++ b/demos/sortable/default.html @@ -3,12 +3,12 @@ jQuery UI Sortable - Default functionality - + - - - - + + + + #sortable { list-style-type: none; margin: 0; padding: 0; width: 60%; } diff --git a/demos/sortable/delay-start.html b/demos/sortable/delay-start.html index dad630a3f78..88ac42b6295 100644 --- a/demos/sortable/delay-start.html +++ b/demos/sortable/delay-start.html @@ -3,12 +3,12 @@ jQuery UI Sortable - Delay start - + - - - - + + + + #sortable1, #sortable2 { list-style-type: none; margin: 0; padding: 0; margin-bottom: 15px;zoom: 1; } diff --git a/demos/sortable/display-grid.html b/demos/sortable/display-grid.html index 91aaa8de3b5..0d9fea084ba 100644 --- a/demos/sortable/display-grid.html +++ b/demos/sortable/display-grid.html @@ -3,12 +3,12 @@ jQuery UI Sortable - Display as grid - + - - - - + + + + #sortable { list-style-type: none; margin: 0; padding: 0; width: 450px; } diff --git a/demos/sortable/empty-lists.html b/demos/sortable/empty-lists.html index 43a74ac38ab..c29bea66f48 100644 --- a/demos/sortable/empty-lists.html +++ b/demos/sortable/empty-lists.html @@ -3,12 +3,12 @@ jQuery UI Sortable - Handle empty lists - + - - - - + + + + #sortable1, #sortable2, #sortable3 { list-style-type: none; margin: 0; padding: 0; float: left; margin-right: 10px; background: #eee; padding: 5px; width: 143px;} diff --git a/demos/sortable/items.html b/demos/sortable/items.html index a370b082199..7d797589c09 100644 --- a/demos/sortable/items.html +++ b/demos/sortable/items.html @@ -3,12 +3,12 @@ jQuery UI Sortable - Include / exclude items - + - - - - + + + + #sortable1, #sortable2 { list-style-type: none; margin: 0; padding: 0; zoom: 1; } diff --git a/demos/sortable/placeholder.html b/demos/sortable/placeholder.html index ff29cf6300d..fe0cd1b81c6 100644 --- a/demos/sortable/placeholder.html +++ b/demos/sortable/placeholder.html @@ -3,12 +3,12 @@ jQuery UI Sortable - Drop placeholder - + - - - - + + + + #sortable { list-style-type: none; margin: 0; padding: 0; width: 60%; } diff --git a/demos/sortable/portlets.html b/demos/sortable/portlets.html index 546fe58d867..0184d9fbef3 100644 --- a/demos/sortable/portlets.html +++ b/demos/sortable/portlets.html @@ -3,12 +3,12 @@ jQuery UI Sortable - Portlets - + - - - - + + + + body { diff --git a/demos/spinner/currency.html b/demos/spinner/currency.html index ebe8d66293e..34e32c296d2 100644 --- a/demos/spinner/currency.html +++ b/demos/spinner/currency.html @@ -3,16 +3,16 @@ jQuery UI Spinner - Currency - + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - - - - + + + + + + #dialog label, #dialog input { display:block; } diff --git a/demos/tabs/mouseover.html b/demos/tabs/mouseover.html index 38e43d34010..2456279e026 100644 --- a/demos/tabs/mouseover.html +++ b/demos/tabs/mouseover.html @@ -3,11 +3,11 @@ jQuery UI Tabs - Open on mouseover - + - - - + + + - - - - - + + + + + - - - + + + - - - - - - + + + + + + - - - - + + + + .photo { diff --git a/demos/tooltip/custom-style.html b/demos/tooltip/custom-style.html index b54ceb30c0c..4bee053e851 100644 --- a/demos/tooltip/custom-style.html +++ b/demos/tooltip/custom-style.html @@ -3,12 +3,12 @@ jQuery UI Tooltip - Custom Styling - + - - - - + + + + - - - - + + + + - - - - - + + + + + label { diff --git a/demos/tooltip/tracking.html b/demos/tooltip/tracking.html index e445f8e73bd..b37d52be326 100644 --- a/demos/tooltip/tracking.html +++ b/demos/tooltip/tracking.html @@ -3,12 +3,12 @@ jQuery UI Tooltip - Track the mouse - + - - - - + + + + label { diff --git a/demos/tooltip/video-player.html b/demos/tooltip/video-player.html index 3a4bc777f23..b0436514258 100644 --- a/demos/tooltip/video-player.html +++ b/demos/tooltip/video-player.html @@ -3,16 +3,16 @@ jQuery UI Tooltip - Video Player demo - + - - - - - - - - + + + + + + + + .player { diff --git a/demos/widget/default.html b/demos/widget/default.html index 0ffc67138bc..72f27fad40d 100644 --- a/demos/widget/default.html +++ b/demos/widget/default.html @@ -3,12 +3,12 @@ jQuery UI Widget - Default functionality - + - - - - + + + + .custom-colorize { diff --git a/tests/index.html b/tests/index.html index 53487e8b358..a67930d18c2 100644 --- a/tests/index.html +++ b/tests/index.html @@ -3,8 +3,8 @@ jQuery UI Tests - - + + diff --git a/tests/unit/accordion/accordion.html b/tests/unit/accordion/accordion.html index 67928fd5d36..15163880f08 100644 --- a/tests/unit/accordion/accordion.html +++ b/tests/unit/accordion/accordion.html @@ -11,11 +11,11 @@ diff --git a/tests/unit/autocomplete/autocomplete.html b/tests/unit/autocomplete/autocomplete.html index 8c7b5b698ab..919c12702d3 100644 --- a/tests/unit/autocomplete/autocomplete.html +++ b/tests/unit/autocomplete/autocomplete.html @@ -11,13 +11,13 @@ diff --git a/tests/unit/button/button.html b/tests/unit/button/button.html index 223581ef70c..3d693775fbd 100644 --- a/tests/unit/button/button.html +++ b/tests/unit/button/button.html @@ -11,11 +11,11 @@ diff --git a/tests/unit/core/core.html b/tests/unit/core/core.html index fd472d64ae4..33576c05148 100644 --- a/tests/unit/core/core.html +++ b/tests/unit/core/core.html @@ -11,7 +11,7 @@ diff --git a/tests/unit/core/core_deprecated.html b/tests/unit/core/core_deprecated.html index d9c41ca39ce..e29e55b2b3d 100644 --- a/tests/unit/core/core_deprecated.html +++ b/tests/unit/core/core_deprecated.html @@ -11,7 +11,7 @@ diff --git a/tests/unit/datepicker/datepicker.html b/tests/unit/datepicker/datepicker.html index 8ef2de5a4c6..37f949ae6de 100644 --- a/tests/unit/datepicker/datepicker.html +++ b/tests/unit/datepicker/datepicker.html @@ -11,13 +11,13 @@ diff --git a/tests/unit/dialog/dialog.html b/tests/unit/dialog/dialog.html index d8506a1bd6c..27c51276e5b 100644 --- a/tests/unit/dialog/dialog.html +++ b/tests/unit/dialog/dialog.html @@ -14,20 +14,20 @@ diff --git a/tests/unit/draggable/draggable.html b/tests/unit/draggable/draggable.html index 42467d2d4df..02977c6cc5f 100644 --- a/tests/unit/draggable/draggable.html +++ b/tests/unit/draggable/draggable.html @@ -53,14 +53,14 @@ diff --git a/tests/unit/droppable/droppable.html b/tests/unit/droppable/droppable.html index d084464c2c6..9a3a4bd0796 100644 --- a/tests/unit/droppable/droppable.html +++ b/tests/unit/droppable/droppable.html @@ -11,13 +11,13 @@ diff --git a/tests/unit/effects/effects.html b/tests/unit/effects/effects.html index f35393b8978..c217ff13d6e 100644 --- a/tests/unit/effects/effects.html +++ b/tests/unit/effects/effects.html @@ -12,22 +12,22 @@ diff --git a/tests/unit/index.html b/tests/unit/index.html index 83befbabc8b..37190916302 100644 --- a/tests/unit/index.html +++ b/tests/unit/index.html @@ -4,8 +4,8 @@ jQuery UI Unit Tests - - + + diff --git a/tests/unit/menu/menu.html b/tests/unit/menu/menu.html index 1d87f0a1005..9df56a8d17b 100644 --- a/tests/unit/menu/menu.html +++ b/tests/unit/menu/menu.html @@ -11,11 +11,11 @@ diff --git a/tests/unit/position/position.html b/tests/unit/position/position.html index f3b1ad86ca8..8f6a5e503ee 100644 --- a/tests/unit/position/position.html +++ b/tests/unit/position/position.html @@ -11,7 +11,7 @@ diff --git a/tests/unit/progressbar/progressbar.html b/tests/unit/progressbar/progressbar.html index 70a4abe56c4..818dd76e589 100644 --- a/tests/unit/progressbar/progressbar.html +++ b/tests/unit/progressbar/progressbar.html @@ -11,11 +11,11 @@ diff --git a/tests/unit/resizable/resizable.html b/tests/unit/resizable/resizable.html index bfff528faa3..c9223030f4f 100644 --- a/tests/unit/resizable/resizable.html +++ b/tests/unit/resizable/resizable.html @@ -11,12 +11,12 @@ diff --git a/tests/unit/selectable/selectable.html b/tests/unit/selectable/selectable.html index 18ffc6ef778..989cece7e5c 100644 --- a/tests/unit/selectable/selectable.html +++ b/tests/unit/selectable/selectable.html @@ -11,12 +11,12 @@ diff --git a/tests/unit/selectmenu/selectmenu.html b/tests/unit/selectmenu/selectmenu.html index 584a47b53cc..40142215632 100644 --- a/tests/unit/selectmenu/selectmenu.html +++ b/tests/unit/selectmenu/selectmenu.html @@ -11,13 +11,13 @@ diff --git a/tests/unit/slider/slider.html b/tests/unit/slider/slider.html index 98adfa3aea6..eb3c5c4d0fc 100644 --- a/tests/unit/slider/slider.html +++ b/tests/unit/slider/slider.html @@ -11,12 +11,12 @@ diff --git a/tests/unit/sortable/sortable.html b/tests/unit/sortable/sortable.html index b03c786e1ad..ac1c037dd16 100644 --- a/tests/unit/sortable/sortable.html +++ b/tests/unit/sortable/sortable.html @@ -11,12 +11,12 @@ diff --git a/tests/unit/spinner/spinner.html b/tests/unit/spinner/spinner.html index 1d09bbc3808..1c9b28e45c6 100644 --- a/tests/unit/spinner/spinner.html +++ b/tests/unit/spinner/spinner.html @@ -14,12 +14,12 @@ diff --git a/tests/unit/tabs/tabs.html b/tests/unit/tabs/tabs.html index 7c79823036d..48f661af9f9 100644 --- a/tests/unit/tabs/tabs.html +++ b/tests/unit/tabs/tabs.html @@ -11,11 +11,11 @@ diff --git a/tests/unit/testsuite.js b/tests/unit/testsuite.js index e15d57a918f..1ccd4099dfc 100644 --- a/tests/unit/testsuite.js +++ b/tests/unit/testsuite.js @@ -44,7 +44,7 @@ TestHelpers.loadResources = QUnit.urlParams.min ? } : function( resources ) { $.each( resources.css || [], function( i, resource ) { - includeStyle( "themes/base/jquery." + resource + ".css" ); + includeStyle( "themes/base/" + resource + ".css" ); }); $.each( resources.js || [], function( i, resource ) { includeScript( resource ); @@ -79,7 +79,7 @@ TestHelpers.testJshint = function( module ) { dataType: "json" }), $.ajax({ - url: url("../../../ui/jquery.ui." + module + ".js"), + url: url("../../../ui/" + module + ".js"), dataType: "text" }) ).done(function( hintArgs, srcArgs ) { diff --git a/tests/unit/tooltip/tooltip.html b/tests/unit/tooltip/tooltip.html index ec616be13ef..0af412e5c3d 100644 --- a/tests/unit/tooltip/tooltip.html +++ b/tests/unit/tooltip/tooltip.html @@ -11,12 +11,12 @@ diff --git a/tests/unit/widget/widget.html b/tests/unit/widget/widget.html index 15eaee6aa23..17c8e497778 100644 --- a/tests/unit/widget/widget.html +++ b/tests/unit/widget/widget.html @@ -11,9 +11,9 @@ diff --git a/tests/visual/accordion/icons.html b/tests/visual/accordion/icons.html index 7ed368d7444..630ac2f5022 100644 --- a/tests/visual/accordion/icons.html +++ b/tests/visual/accordion/icons.html @@ -3,11 +3,11 @@ Accordion Visual Test - + - - - + + + - + .box { width: 100px; diff --git a/tests/visual/button/button.html b/tests/visual/button/button.html index 4ff14112e02..d3fd75d8fe5 100644 --- a/tests/visual/button/button.html +++ b/tests/visual/button/button.html @@ -3,11 +3,11 @@ Button Visual Test - + - - - + + + - - - + + + - - - - + + + + - - - - - - - - + + + + + + + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - - - - - + + + + + .draggable { width: 10em; diff --git a/tests/visual/compound/draggable_accordion_accordion_tabs_draggable.html b/tests/visual/compound/draggable_accordion_accordion_tabs_draggable.html index 1dee0dc7fdd..d45d1ef3569 100644 --- a/tests/visual/compound/draggable_accordion_accordion_tabs_draggable.html +++ b/tests/visual/compound/draggable_accordion_accordion_tabs_draggable.html @@ -4,14 +4,14 @@ Compound Visual Test : Draggable in Accordion - + - - - - - - + + + + + + #main-draggable { width: 300px; diff --git a/tests/visual/compound/sortable_accordion_sortable_tabs.html b/tests/visual/compound/sortable_accordion_sortable_tabs.html index f95da630456..be206e10665 100644 --- a/tests/visual/compound/sortable_accordion_sortable_tabs.html +++ b/tests/visual/compound/sortable_accordion_sortable_tabs.html @@ -4,14 +4,14 @@ Compound Visual Test : Accordion in Tabs - + - - - - - - + + + + + + - - - - - - + + + + + + - - - - + + + + - - - - - + + + + + - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - + + + + + + + + - - - - + + + + body { diff --git a/tests/visual/dialog/form.html b/tests/visual/dialog/form.html index de8b45223a0..cab14ae2a02 100644 --- a/tests/visual/dialog/form.html +++ b/tests/visual/dialog/form.html @@ -3,19 +3,19 @@ Dialog Visual Test - + - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - + + + + + + + + - - - - - - - - + + + + + + + + body { diff --git a/tests/visual/effects/all.html b/tests/visual/effects/all.html index a16c2da0a47..0bdfcf7b243 100644 --- a/tests/visual/effects/all.html +++ b/tests/visual/effects/all.html @@ -5,20 +5,20 @@ jQuery UI Effects Test Suite - - - - - - - - - - - - - - + + + + + + + + + + + + + + diff --git a/tests/visual/effects/scale.html b/tests/visual/effects/scale.html index 223f5ae29b2..73606cc7069 100644 --- a/tests/visual/effects/scale.html +++ b/tests/visual/effects/scale.html @@ -5,8 +5,8 @@ jQuery UI Effects Test Suite - - + + diff --git a/tests/visual/menu/menu.html b/tests/visual/menu/menu.html index 4e322130ad5..d58dcbc8beb 100644 --- a/tests/visual/menu/menu.html +++ b/tests/visual/menu/menu.html @@ -3,12 +3,12 @@ Menu Visual Test: Default - + - - - - + + + + - - - - - + + + + + .demo { position: relative; diff --git a/tests/visual/position/position_feedback.html b/tests/visual/position/position_feedback.html index 19a8538f4a6..847bbf2ef6d 100644 --- a/tests/visual/position/position_feedback.html +++ b/tests/visual/position/position_feedback.html @@ -3,12 +3,12 @@ Position Visual Test: Feedback - + - - - - + + + + - - - - - + + + + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - - - - - - - - - + + + + + + + + + pre { width: 250px; diff --git a/tests/visual/tooltip/tooltip.html b/tests/visual/tooltip/tooltip.html index 3b3ac0d9f09..4ff6029e715 100644 --- a/tests/visual/tooltip/tooltip.html +++ b/tests/visual/tooltip/tooltip.html @@ -3,13 +3,13 @@ Tooltip Visual Test: Default - + - - - - - + + + + + .group { margin-top: 2em; diff --git a/themes/base/jquery.ui.accordion.css b/themes/base/accordion.css similarity index 100% rename from themes/base/jquery.ui.accordion.css rename to themes/base/accordion.css diff --git a/themes/base/jquery.ui.all.css b/themes/base/all.css similarity index 79% rename from themes/base/jquery.ui.all.css rename to themes/base/all.css index 6d4d3d83b41..b6137efb789 100644 --- a/themes/base/jquery.ui.all.css +++ b/themes/base/all.css @@ -8,5 +8,5 @@ * * http://api.jqueryui.com/category/theming/ */ -@import "jquery.ui.base.css"; -@import "jquery.ui.theme.css"; +@import "base.css"; +@import "theme.css"; diff --git a/themes/base/jquery.ui.autocomplete.css b/themes/base/autocomplete.css similarity index 100% rename from themes/base/jquery.ui.autocomplete.css rename to themes/base/autocomplete.css diff --git a/themes/base/base.css b/themes/base/base.css new file mode 100644 index 00000000000..f1d3455465c --- /dev/null +++ b/themes/base/base.css @@ -0,0 +1,28 @@ +/*! + * jQuery UI CSS Framework @VERSION + * http://jqueryui.com + * + * Copyright 2013 jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + * + * http://api.jqueryui.com/category/theming/ + */ +@import url("core.css"); + +@import url("accordion.css"); +@import url("autocomplete.css"); +@import url("button.css"); +@import url("datepicker.css"); +@import url("dialog.css"); +@import url("draggable.css"); +@import url("menu.css"); +@import url("progressbar.css"); +@import url("resizable.css"); +@import url("selectable.css"); +@import url("selectmenu.css"); +@import url("sortable.css"); +@import url("slider.css"); +@import url("spinner.css"); +@import url("tabs.css"); +@import url("tooltip.css"); diff --git a/themes/base/jquery.ui.button.css b/themes/base/button.css similarity index 100% rename from themes/base/jquery.ui.button.css rename to themes/base/button.css diff --git a/themes/base/jquery.ui.core.css b/themes/base/core.css similarity index 100% rename from themes/base/jquery.ui.core.css rename to themes/base/core.css diff --git a/themes/base/jquery.ui.datepicker.css b/themes/base/datepicker.css similarity index 100% rename from themes/base/jquery.ui.datepicker.css rename to themes/base/datepicker.css diff --git a/themes/base/jquery.ui.dialog.css b/themes/base/dialog.css similarity index 100% rename from themes/base/jquery.ui.dialog.css rename to themes/base/dialog.css diff --git a/themes/base/jquery.ui.draggable.css b/themes/base/draggable.css similarity index 100% rename from themes/base/jquery.ui.draggable.css rename to themes/base/draggable.css diff --git a/themes/base/jquery.ui.base.css b/themes/base/jquery.ui.base.css deleted file mode 100644 index 8ff61a51189..00000000000 --- a/themes/base/jquery.ui.base.css +++ /dev/null @@ -1,28 +0,0 @@ -/*! - * jQuery UI CSS Framework @VERSION - * http://jqueryui.com - * - * Copyright 2013 jQuery Foundation and other contributors - * Released under the MIT license. - * http://jquery.org/license - * - * http://api.jqueryui.com/category/theming/ - */ -@import url("jquery.ui.core.css"); - -@import url("jquery.ui.accordion.css"); -@import url("jquery.ui.autocomplete.css"); -@import url("jquery.ui.button.css"); -@import url("jquery.ui.datepicker.css"); -@import url("jquery.ui.dialog.css"); -@import url("jquery.ui.draggable.css"); -@import url("jquery.ui.menu.css"); -@import url("jquery.ui.progressbar.css"); -@import url("jquery.ui.resizable.css"); -@import url("jquery.ui.selectable.css"); -@import url("jquery.ui.selectmenu.css"); -@import url("jquery.ui.sortable.css"); -@import url("jquery.ui.slider.css"); -@import url("jquery.ui.spinner.css"); -@import url("jquery.ui.tabs.css"); -@import url("jquery.ui.tooltip.css"); diff --git a/themes/base/jquery.ui.menu.css b/themes/base/menu.css similarity index 100% rename from themes/base/jquery.ui.menu.css rename to themes/base/menu.css diff --git a/themes/base/jquery.ui.progressbar.css b/themes/base/progressbar.css similarity index 100% rename from themes/base/jquery.ui.progressbar.css rename to themes/base/progressbar.css diff --git a/themes/base/jquery.ui.resizable.css b/themes/base/resizable.css similarity index 100% rename from themes/base/jquery.ui.resizable.css rename to themes/base/resizable.css diff --git a/themes/base/jquery.ui.selectable.css b/themes/base/selectable.css similarity index 100% rename from themes/base/jquery.ui.selectable.css rename to themes/base/selectable.css diff --git a/themes/base/jquery.ui.selectmenu.css b/themes/base/selectmenu.css similarity index 100% rename from themes/base/jquery.ui.selectmenu.css rename to themes/base/selectmenu.css diff --git a/themes/base/jquery.ui.slider.css b/themes/base/slider.css similarity index 100% rename from themes/base/jquery.ui.slider.css rename to themes/base/slider.css diff --git a/themes/base/jquery.ui.sortable.css b/themes/base/sortable.css similarity index 100% rename from themes/base/jquery.ui.sortable.css rename to themes/base/sortable.css diff --git a/themes/base/jquery.ui.spinner.css b/themes/base/spinner.css similarity index 100% rename from themes/base/jquery.ui.spinner.css rename to themes/base/spinner.css diff --git a/themes/base/jquery.ui.tabs.css b/themes/base/tabs.css similarity index 100% rename from themes/base/jquery.ui.tabs.css rename to themes/base/tabs.css diff --git a/themes/base/jquery.ui.theme.css b/themes/base/theme.css similarity index 100% rename from themes/base/jquery.ui.theme.css rename to themes/base/theme.css diff --git a/themes/base/jquery.ui.tooltip.css b/themes/base/tooltip.css similarity index 100% rename from themes/base/jquery.ui.tooltip.css rename to themes/base/tooltip.css diff --git a/ui/.jshintrc b/ui/.jshintrc index 073418812f8..98a79b5dbd8 100644 --- a/ui/.jshintrc +++ b/ui/.jshintrc @@ -18,6 +18,7 @@ "jquery": true, "globals": { + "define": false, "Globalize": false } } diff --git a/ui/jquery.ui.accordion.js b/ui/accordion.js similarity index 97% rename from ui/jquery.ui.accordion.js rename to ui/accordion.js index c63c807ba02..de8aa12fc02 100644 --- a/ui/jquery.ui.accordion.js +++ b/ui/accordion.js @@ -7,14 +7,24 @@ * http://jquery.org/license * * http://api.jqueryui.com/accordion/ - * - * Depends: - * jquery.ui.core.js - * jquery.ui.widget.js */ -(function( $, undefined ) { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ + "jquery", + "./core", + "./widget" + ], factory ); + } else { + + // Browser globals + factory( jQuery ); + } +}(function( $ ) { -$.widget( "ui.accordion", { +return $.widget( "ui.accordion", { version: "@VERSION", options: { active: 0, @@ -562,4 +572,4 @@ $.widget( "ui.accordion", { } }); -})( jQuery ); +})); diff --git a/ui/jquery.ui.autocomplete.js b/ui/autocomplete.js similarity index 97% rename from ui/jquery.ui.autocomplete.js rename to ui/autocomplete.js index e40e703b94e..c20ebf21abf 100644 --- a/ui/jquery.ui.autocomplete.js +++ b/ui/autocomplete.js @@ -7,14 +7,24 @@ * http://jquery.org/license * * http://api.jqueryui.com/autocomplete/ - * - * Depends: - * jquery.ui.core.js - * jquery.ui.widget.js - * jquery.ui.position.js - * jquery.ui.menu.js */ -(function( $, undefined ) { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ + "jquery", + "./core", + "./widget", + "./position", + "./menu" + ], factory ); + } else { + + // Browser globals + factory( jQuery ); + } +}(function( $ ) { $.widget( "ui.autocomplete", { version: "@VERSION", @@ -602,4 +612,6 @@ $.widget( "ui.autocomplete", $.ui.autocomplete, { } }); -}( jQuery )); +return $.ui.autocomplete; + +})); diff --git a/ui/jquery.ui.button.js b/ui/button.js similarity index 97% rename from ui/jquery.ui.button.js rename to ui/button.js index 6bde7863fd8..4b401e1a3fa 100644 --- a/ui/jquery.ui.button.js +++ b/ui/button.js @@ -7,12 +7,22 @@ * http://jquery.org/license * * http://api.jqueryui.com/button/ - * - * Depends: - * jquery.ui.core.js - * jquery.ui.widget.js */ -(function( $, undefined ) { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ + "jquery", + "./core", + "./widget" + ], factory ); + } else { + + // Browser globals + factory( jQuery ); + } +}(function( $ ) { var lastActive, baseClasses = "ui-button ui-widget ui-state-default ui-corner-all", @@ -390,4 +400,6 @@ $.widget( "ui.buttonset", { } }); -}( jQuery ) ); +return $.ui.button; + +})); diff --git a/ui/jquery.ui.core.js b/ui/core.js similarity index 96% rename from ui/jquery.ui.core.js rename to ui/core.js index 6340c6d6484..cb6760017ce 100644 --- a/ui/jquery.ui.core.js +++ b/ui/core.js @@ -8,7 +8,17 @@ * * http://api.jqueryui.com/category/ui-core/ */ -(function( $, undefined ) { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define( [ "jquery" ], factory ); + } else { + + // Browser globals + factory( jQuery ); + } +}(function( $ ) { // $.ui might exist from components with no dependencies, e.g., $.ui.position $.ui = $.ui || {}; @@ -286,4 +296,4 @@ $.ui.plugin = { } }; -})( jQuery ); +})); diff --git a/ui/jquery.ui.datepicker.js b/ui/datepicker.js similarity index 99% rename from ui/jquery.ui.datepicker.js rename to ui/datepicker.js index e4961a1df60..c33df7d7600 100644 --- a/ui/jquery.ui.datepicker.js +++ b/ui/datepicker.js @@ -7,11 +7,21 @@ * http://jquery.org/license * * http://api.jqueryui.com/datepicker/ - * - * Depends: - * jquery.ui.core.js */ -(function( $, undefined ) { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ + "jquery", + "./core" + ], factory ); + } else { + + // Browser globals + factory( jQuery ); + } +}(function( $ ) { $.extend($.ui, { datepicker: { version: "@VERSION" } }); @@ -2056,4 +2066,6 @@ $.datepicker.initialized = false; $.datepicker.uuid = new Date().getTime(); $.datepicker.version = "@VERSION"; -})(jQuery); +return $.datepicker; + +})); diff --git a/ui/jquery.ui.dialog.js b/ui/dialog.js similarity index 98% rename from ui/jquery.ui.dialog.js rename to ui/dialog.js index 7f90908bd12..6fbd38b9127 100644 --- a/ui/jquery.ui.dialog.js +++ b/ui/dialog.js @@ -7,19 +7,29 @@ * http://jquery.org/license * * http://api.jqueryui.com/dialog/ - * - * Depends: - * jquery.ui.core.js - * jquery.ui.widget.js - * jquery.ui.button.js - * jquery.ui.draggable.js - * jquery.ui.mouse.js - * jquery.ui.position.js - * jquery.ui.resizable.js */ -(function( $, undefined ) { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ + "jquery", + "./core", + "./widget", + "./button", + "./draggable", + "./mouse", + "./position", + "./resizable" + ], factory ); + } else { + + // Browser globals + factory( jQuery ); + } +}(function( $ ) { -$.widget( "ui.dialog", { +return $.widget( "ui.dialog", { version: "@VERSION", options: { appendTo: "body", @@ -841,4 +851,4 @@ $.widget( "ui.dialog", { } }); -}( jQuery )); +})); diff --git a/ui/jquery.ui.draggable.js b/ui/draggable.js similarity index 99% rename from ui/jquery.ui.draggable.js rename to ui/draggable.js index 2de1d01627b..062d0b9deaf 100644 --- a/ui/jquery.ui.draggable.js +++ b/ui/draggable.js @@ -7,13 +7,23 @@ * http://jquery.org/license * * http://api.jqueryui.com/draggable/ - * - * Depends: - * jquery.ui.core.js - * jquery.ui.mouse.js - * jquery.ui.widget.js */ -(function( $, undefined ) { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ + "jquery", + "./core", + "./mouse", + "./widget" + ], factory ); + } else { + + // Browser globals + factory( jQuery ); + } +}(function( $ ) { $.widget("ui.draggable", $.ui.mouse, { version: "@VERSION", @@ -1004,4 +1014,6 @@ $.ui.plugin.add("draggable", "zIndex", { } }); -})(jQuery); +return $.ui.draggable; + +})); diff --git a/ui/jquery.ui.droppable.js b/ui/droppable.js similarity index 97% rename from ui/jquery.ui.droppable.js rename to ui/droppable.js index f9f2620da29..9e16c77a81d 100644 --- a/ui/jquery.ui.droppable.js +++ b/ui/droppable.js @@ -7,14 +7,24 @@ * http://jquery.org/license * * http://api.jqueryui.com/droppable/ - * - * Depends: - * jquery.ui.core.js - * jquery.ui.widget.js - * jquery.ui.mouse.js - * jquery.ui.draggable.js */ -(function( $, undefined ) { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ + "jquery", + "./core", + "./widget", + "./mouse", + "./draggable" + ], factory ); + } else { + + // Browser globals + factory( jQuery ); + } +}(function( $ ) { $.widget( "ui.droppable", { version: "@VERSION", @@ -401,4 +411,6 @@ $.ui.ddmanager = { } }; -})( jQuery ); +return $.ui.droppable; + +})); diff --git a/ui/jquery.ui.effect-blind.js b/ui/effect-blind.js similarity index 85% rename from ui/jquery.ui.effect-blind.js rename to ui/effect-blind.js index 26aeab05c15..054dcf49859 100644 --- a/ui/jquery.ui.effect-blind.js +++ b/ui/effect-blind.js @@ -7,13 +7,23 @@ * http://jquery.org/license * * http://api.jqueryui.com/blind-effect/ - * - * Depends: - * jquery.ui.effect.js */ -(function( $, undefined ) { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ + "jquery", + "./effect" + ], factory ); + } else { + + // Browser globals + factory( jQuery ); + } +}(function( $ ) { -$.effects.effect.blind = function( o, done ) { +return $.effects.effect.blind = function( o, done ) { // Create element var el = $( this ), rvertical = /up|down|vertical/, @@ -77,4 +87,4 @@ $.effects.effect.blind = function( o, done ) { }); }; -})(jQuery); +})); diff --git a/ui/jquery.ui.effect-bounce.js b/ui/effect-bounce.js similarity index 89% rename from ui/jquery.ui.effect-bounce.js rename to ui/effect-bounce.js index 107a6ea9499..ba309ccc325 100644 --- a/ui/jquery.ui.effect-bounce.js +++ b/ui/effect-bounce.js @@ -7,13 +7,23 @@ * http://jquery.org/license * * http://api.jqueryui.com/bounce-effect/ - * - * Depends: - * jquery.ui.effect.js */ -(function( $, undefined ) { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ + "jquery", + "./effect" + ], factory ); + } else { + + // Browser globals + factory( jQuery ); + } +}(function( $ ) { -$.effects.effect.bounce = function( o, done ) { +return $.effects.effect.bounce = function( o, done ) { var el = $( this ), props = [ "position", "top", "bottom", "left", "right", "height", "width" ], @@ -110,4 +120,4 @@ $.effects.effect.bounce = function( o, done ) { }; -})(jQuery); +})); diff --git a/ui/jquery.ui.effect-clip.js b/ui/effect-clip.js similarity index 81% rename from ui/jquery.ui.effect-clip.js rename to ui/effect-clip.js index 34f6d7f99b8..377d782d0bf 100644 --- a/ui/jquery.ui.effect-clip.js +++ b/ui/effect-clip.js @@ -7,13 +7,23 @@ * http://jquery.org/license * * http://api.jqueryui.com/clip-effect/ - * - * Depends: - * jquery.ui.effect.js */ -(function( $, undefined ) { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ + "jquery", + "./effect" + ], factory ); + } else { + + // Browser globals + factory( jQuery ); + } +}(function( $ ) { -$.effects.effect.clip = function( o, done ) { +return $.effects.effect.clip = function( o, done ) { // Create element var el = $( this ), props = [ "position", "top", "bottom", "left", "right", "height", "width" ], @@ -64,4 +74,4 @@ $.effects.effect.clip = function( o, done ) { }; -})(jQuery); +})); diff --git a/ui/jquery.ui.effect-drop.js b/ui/effect-drop.js similarity index 81% rename from ui/jquery.ui.effect-drop.js rename to ui/effect-drop.js index 2d19c91c4bf..0607e74ddd3 100644 --- a/ui/jquery.ui.effect-drop.js +++ b/ui/effect-drop.js @@ -7,13 +7,23 @@ * http://jquery.org/license * * http://api.jqueryui.com/drop-effect/ - * - * Depends: - * jquery.ui.effect.js */ -(function( $, undefined ) { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ + "jquery", + "./effect" + ], factory ); + } else { + + // Browser globals + factory( jQuery ); + } +}(function( $ ) { -$.effects.effect.drop = function( o, done ) { +return $.effects.effect.drop = function( o, done ) { var el = $( this ), props = [ "position", "top", "bottom", "left", "right", "opacity", "height", "width" ], @@ -62,4 +72,4 @@ $.effects.effect.drop = function( o, done ) { }); }; -})(jQuery); +})); diff --git a/ui/jquery.ui.effect-explode.js b/ui/effect-explode.js similarity index 88% rename from ui/jquery.ui.effect-explode.js rename to ui/effect-explode.js index e81ad9be0a5..8b32ce19ff3 100644 --- a/ui/jquery.ui.effect-explode.js +++ b/ui/effect-explode.js @@ -7,13 +7,23 @@ * http://jquery.org/license * * http://api.jqueryui.com/explode-effect/ - * - * Depends: - * jquery.ui.effect.js */ -(function( $, undefined ) { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ + "jquery", + "./effect" + ], factory ); + } else { + + // Browser globals + factory( jQuery ); + } +}(function( $ ) { -$.effects.effect.explode = function( o, done ) { +return $.effects.effect.explode = function( o, done ) { var rows = o.pieces ? Math.round( Math.sqrt( o.pieces ) ) : 3, cells = rows, @@ -94,4 +104,4 @@ $.effects.effect.explode = function( o, done ) { } }; -})(jQuery); +})); diff --git a/ui/jquery.ui.effect-fade.js b/ui/effect-fade.js similarity index 58% rename from ui/jquery.ui.effect-fade.js rename to ui/effect-fade.js index b44140025a5..540a274a4a2 100644 --- a/ui/jquery.ui.effect-fade.js +++ b/ui/effect-fade.js @@ -7,13 +7,23 @@ * http://jquery.org/license * * http://api.jqueryui.com/fade-effect/ - * - * Depends: - * jquery.ui.effect.js */ -(function( $, undefined ) { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ + "jquery", + "./effect" + ], factory ); + } else { + + // Browser globals + factory( jQuery ); + } +}(function( $ ) { -$.effects.effect.fade = function( o, done ) { +return $.effects.effect.fade = function( o, done ) { var el = $( this ), mode = $.effects.setMode( el, o.mode || "toggle" ); @@ -27,4 +37,4 @@ $.effects.effect.fade = function( o, done ) { }); }; -})( jQuery ); +})); diff --git a/ui/jquery.ui.effect-fold.js b/ui/effect-fold.js similarity index 83% rename from ui/jquery.ui.effect-fold.js rename to ui/effect-fold.js index fdb6e5faed6..495e58f6b59 100644 --- a/ui/jquery.ui.effect-fold.js +++ b/ui/effect-fold.js @@ -7,13 +7,23 @@ * http://jquery.org/license * * http://api.jqueryui.com/fold-effect/ - * - * Depends: - * jquery.ui.effect.js */ -(function( $, undefined ) { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ + "jquery", + "./effect" + ], factory ); + } else { + + // Browser globals + factory( jQuery ); + } +}(function( $ ) { -$.effects.effect.fold = function( o, done ) { +return $.effects.effect.fold = function( o, done ) { // Create element var el = $( this ), @@ -73,4 +83,4 @@ $.effects.effect.fold = function( o, done ) { }; -})(jQuery); +})); diff --git a/ui/jquery.ui.effect-highlight.js b/ui/effect-highlight.js similarity index 73% rename from ui/jquery.ui.effect-highlight.js rename to ui/effect-highlight.js index 2dc72082e91..4b90d91f5e1 100644 --- a/ui/jquery.ui.effect-highlight.js +++ b/ui/effect-highlight.js @@ -7,13 +7,23 @@ * http://jquery.org/license * * http://api.jqueryui.com/highlight-effect/ - * - * Depends: - * jquery.ui.effect.js */ -(function( $, undefined ) { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ + "jquery", + "./effect" + ], factory ); + } else { + + // Browser globals + factory( jQuery ); + } +}(function( $ ) { -$.effects.effect.highlight = function( o, done ) { +return $.effects.effect.highlight = function( o, done ) { var elem = $( this ), props = [ "backgroundImage", "backgroundColor", "opacity" ], mode = $.effects.setMode( elem, o.mode || "show" ), @@ -47,4 +57,4 @@ $.effects.effect.highlight = function( o, done ) { }); }; -})(jQuery); +})); diff --git a/ui/jquery.ui.effect-puff.js b/ui/effect-puff.js similarity index 73% rename from ui/jquery.ui.effect-puff.js rename to ui/effect-puff.js index a910defb234..c5932a6e35f 100644 --- a/ui/jquery.ui.effect-puff.js +++ b/ui/effect-puff.js @@ -7,14 +7,24 @@ * http://jquery.org/license * * http://api.jqueryui.com/puff-effect/ - * - * Depends: - * jquery.ui.effect.js - * jquery.ui.effect-scale.js */ -(function( $, undefined ) { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ + "jquery", + "./effect", + "./effect-scale" + ], factory ); + } else { + + // Browser globals + factory( jQuery ); + } +}(function( $ ) { -$.effects.effect.puff = function( o, done ) { +return $.effects.effect.puff = function( o, done ) { var elem = $( this ), mode = $.effects.setMode( elem, o.mode || "hide" ), hide = mode === "hide", @@ -47,4 +57,4 @@ $.effects.effect.puff = function( o, done ) { elem.effect( o ); }; -})(jQuery); +})); diff --git a/ui/jquery.ui.effect-pulsate.js b/ui/effect-pulsate.js similarity index 80% rename from ui/jquery.ui.effect-pulsate.js rename to ui/effect-pulsate.js index 61d86df1334..be0d2a418ab 100644 --- a/ui/jquery.ui.effect-pulsate.js +++ b/ui/effect-pulsate.js @@ -7,13 +7,23 @@ * http://jquery.org/license * * http://api.jqueryui.com/pulsate-effect/ - * - * Depends: - * jquery.ui.effect.js */ -(function( $, undefined ) { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ + "jquery", + "./effect" + ], factory ); + } else { + + // Browser globals + factory( jQuery ); + } +}(function( $ ) { -$.effects.effect.pulsate = function( o, done ) { +return $.effects.effect.pulsate = function( o, done ) { var elem = $( this ), mode = $.effects.setMode( elem, o.mode || "show" ), show = mode === "show", @@ -60,4 +70,4 @@ $.effects.effect.pulsate = function( o, done ) { elem.dequeue(); }; -})(jQuery); +})); diff --git a/ui/jquery.ui.effect-scale.js b/ui/effect-scale.js similarity index 83% rename from ui/jquery.ui.effect-scale.js rename to ui/effect-scale.js index 42dc2281c92..0667c70cfd8 100644 --- a/ui/jquery.ui.effect-scale.js +++ b/ui/effect-scale.js @@ -7,14 +7,24 @@ * http://jquery.org/license * * http://api.jqueryui.com/scale-effect/ - * - * Depends: - * jquery.ui.effect.js - * jquery.ui.effect-size.js */ -(function( $, undefined ) { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ + "jquery", + "./effect", + "./effect-size" + ], factory ); + } else { + + // Browser globals + factory( jQuery ); + } +}(function( $ ) { -$.effects.effect.scale = function( o, done ) { +return $.effects.effect.scale = function( o, done ) { // Create element var el = $( this ), @@ -76,4 +86,4 @@ $.effects.effect.scale = function( o, done ) { }; -})(jQuery); +})); diff --git a/ui/jquery.ui.effect-shake.js b/ui/effect-shake.js similarity index 85% rename from ui/jquery.ui.effect-shake.js rename to ui/effect-shake.js index 1e7e827e7d7..bc0967156c2 100644 --- a/ui/jquery.ui.effect-shake.js +++ b/ui/effect-shake.js @@ -7,13 +7,23 @@ * http://jquery.org/license * * http://api.jqueryui.com/shake-effect/ - * - * Depends: - * jquery.ui.effect.js */ -(function( $, undefined ) { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ + "jquery", + "./effect" + ], factory ); + } else { + + // Browser globals + factory( jQuery ); + } +}(function( $ ) { -$.effects.effect.shake = function( o, done ) { +return $.effects.effect.shake = function( o, done ) { var el = $( this ), props = [ "position", "top", "bottom", "left", "right", "height", "width" ], @@ -71,4 +81,4 @@ $.effects.effect.shake = function( o, done ) { }; -})(jQuery); +})); diff --git a/ui/jquery.ui.effect-size.js b/ui/effect-size.js similarity index 95% rename from ui/jquery.ui.effect-size.js rename to ui/effect-size.js index 6bdbd433d6a..e9adbd01396 100644 --- a/ui/jquery.ui.effect-size.js +++ b/ui/effect-size.js @@ -7,13 +7,23 @@ * http://jquery.org/license * * http://api.jqueryui.com/size-effect/ - * - * Depends: - * jquery.ui.effect.js */ -(function( $, undefined ) { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ + "jquery", + "./effect" + ], factory ); + } else { + + // Browser globals + factory( jQuery ); + } +}(function( $ ) { -$.effects.effect.size = function( o, done ) { +return $.effects.effect.size = function( o, done ) { // Create element var original, baseline, factor, @@ -220,4 +230,4 @@ $.effects.effect.size = function( o, done ) { }; -})(jQuery); +})); diff --git a/ui/jquery.ui.effect-slide.js b/ui/effect-slide.js similarity index 81% rename from ui/jquery.ui.effect-slide.js rename to ui/effect-slide.js index 3fa63433eb7..53780013064 100644 --- a/ui/jquery.ui.effect-slide.js +++ b/ui/effect-slide.js @@ -7,13 +7,23 @@ * http://jquery.org/license * * http://api.jqueryui.com/slide-effect/ - * - * Depends: - * jquery.ui.effect.js */ -(function( $, undefined ) { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ + "jquery", + "./effect" + ], factory ); + } else { + + // Browser globals + factory( jQuery ); + } +}(function( $ ) { -$.effects.effect.slide = function( o, done ) { +return $.effects.effect.slide = function( o, done ) { // Create element var el = $( this ), @@ -61,4 +71,4 @@ $.effects.effect.slide = function( o, done ) { }); }; -})(jQuery); +})); diff --git a/ui/jquery.ui.effect-transfer.js b/ui/effect-transfer.js similarity index 78% rename from ui/jquery.ui.effect-transfer.js rename to ui/effect-transfer.js index 31fbfa219fa..d01ecfc5202 100644 --- a/ui/jquery.ui.effect-transfer.js +++ b/ui/effect-transfer.js @@ -7,13 +7,23 @@ * http://jquery.org/license * * http://api.jqueryui.com/transfer-effect/ - * - * Depends: - * jquery.ui.effect.js */ -(function( $, undefined ) { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ + "jquery", + "./effect" + ], factory ); + } else { + + // Browser globals + factory( jQuery ); + } +}(function( $ ) { -$.effects.effect.transfer = function( o, done ) { +return $.effects.effect.transfer = function( o, done ) { var elem = $( this ), target = $( o.to ), targetFixed = target.css( "position" ) === "fixed", @@ -44,4 +54,4 @@ $.effects.effect.transfer = function( o, done ) { }); }; -})(jQuery); +})); diff --git a/ui/jquery.ui.effect.js b/ui/effect.js similarity index 99% rename from ui/jquery.ui.effect.js rename to ui/effect.js index 3852cf5be64..5705614211e 100644 --- a/ui/jquery.ui.effect.js +++ b/ui/effect.js @@ -8,7 +8,17 @@ * * http://api.jqueryui.com/category/effects-core/ */ -(function($, undefined) { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define( [ "jquery" ], factory ); + } else { + + // Browser globals + factory( jQuery ); + } +}(function( $ ) { var dataSpace = "ui-effects-"; @@ -1282,4 +1292,6 @@ $.each( baseEasings, function( name, easeIn ) { })(); -})(jQuery); +return $.effects; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-af.js b/ui/i18n/datepicker-af.js similarity index 67% rename from ui/i18n/jquery.ui.datepicker-af.js rename to ui/i18n/datepicker-af.js index 0922ef7a1c0..148c98cec14 100644 --- a/ui/i18n/jquery.ui.datepicker-af.js +++ b/ui/i18n/datepicker-af.js @@ -1,7 +1,17 @@ /* Afrikaans initialisation for the jQuery UI date picker plugin. */ /* Written by Renier Pretorius. */ -jQuery(function($){ - $.datepicker.regional['af'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['af'] = { closeText: 'Selekteer', prevText: 'Vorige', nextText: 'Volgende', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['af']); -}); + datepicker.setDefaults(datepicker.regional['af']); + + return datepicker.regional['af']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-ar-DZ.js b/ui/i18n/datepicker-ar-DZ.js similarity index 73% rename from ui/i18n/jquery.ui.datepicker-ar-DZ.js rename to ui/i18n/datepicker-ar-DZ.js index 7b175af40ea..bfffc03013a 100644 --- a/ui/i18n/jquery.ui.datepicker-ar-DZ.js +++ b/ui/i18n/datepicker-ar-DZ.js @@ -1,8 +1,18 @@ /* Algerian Arabic Translation for jQuery UI date picker plugin. (can be used for Tunisia)*/ /* Mohamed Cherif BOUCHELAGHEM -- cherifbouchelaghem@yahoo.fr */ -jQuery(function($){ - $.datepicker.regional['ar-DZ'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['ar-DZ'] = { closeText: 'إغلاق', prevText: '<السابق', nextText: 'التالي>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: true, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['ar-DZ']); -}); + datepicker.setDefaults(datepicker.regional['ar-DZ']); + + return datepicker.regional['ar-DZ']; + +})); diff --git a/demos/datepicker/jquery.ui.datepicker-ar.js b/ui/i18n/datepicker-ar.js similarity index 75% rename from demos/datepicker/jquery.ui.datepicker-ar.js rename to ui/i18n/datepicker-ar.js index cef0f08fd2d..1ccee52b38b 100644 --- a/demos/datepicker/jquery.ui.datepicker-ar.js +++ b/ui/i18n/datepicker-ar.js @@ -1,8 +1,18 @@ /* Arabic Translation for jQuery UI date picker plugin. */ /* Khaled Alhourani -- me@khaledalhourani.com */ /* NOTE: monthNames are the original months names and they are the Arabic names, not the new months name فبراير - يناير and there isn't any Arabic roots for these months */ -jQuery(function($){ - $.datepicker.regional['ar'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['ar'] = { closeText: 'إغلاق', prevText: '<السابق', nextText: 'التالي>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: true, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['ar']); -}); + datepicker.setDefaults(datepicker.regional['ar']); + + return datepicker.regional['ar']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-az.js b/ui/i18n/datepicker-az.js similarity index 67% rename from ui/i18n/jquery.ui.datepicker-az.js rename to ui/i18n/datepicker-az.js index a133a9eb234..c2d89a987a5 100644 --- a/ui/i18n/jquery.ui.datepicker-az.js +++ b/ui/i18n/datepicker-az.js @@ -1,7 +1,17 @@ /* Azerbaijani (UTF-8) initialisation for the jQuery UI date picker plugin. */ /* Written by Jamil Najafov (necefov33@gmail.com). */ -jQuery(function($) { - $.datepicker.regional['az'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['az'] = { closeText: 'Bağla', prevText: '<Geri', nextText: 'İrəli>', @@ -19,5 +29,8 @@ jQuery(function($) { isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['az']); -}); + datepicker.setDefaults(datepicker.regional['az']); + + return datepicker.regional['az']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-be.js b/ui/i18n/datepicker-be.js similarity index 73% rename from ui/i18n/jquery.ui.datepicker-be.js rename to ui/i18n/datepicker-be.js index 6ea12f72561..588d4296883 100644 --- a/ui/i18n/jquery.ui.datepicker-be.js +++ b/ui/i18n/datepicker-be.js @@ -1,7 +1,17 @@ /* Belarusian initialisation for the jQuery UI date picker plugin. */ /* Written by Pavel Selitskas */ -jQuery(function($){ - $.datepicker.regional['be'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['be'] = { closeText: 'Зачыніць', prevText: '←Папяр.', nextText: 'Наст.→', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['be']); -}); + datepicker.setDefaults(datepicker.regional['be']); + + return datepicker.regional['be']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-bg.js b/ui/i18n/datepicker-bg.js similarity index 72% rename from ui/i18n/jquery.ui.datepicker-bg.js rename to ui/i18n/datepicker-bg.js index 86ab885828b..e105f782193 100644 --- a/ui/i18n/jquery.ui.datepicker-bg.js +++ b/ui/i18n/datepicker-bg.js @@ -1,7 +1,17 @@ /* Bulgarian initialisation for the jQuery UI date picker plugin. */ /* Written by Stoyan Kyosev (http://svest.org). */ -jQuery(function($){ - $.datepicker.regional['bg'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['bg'] = { closeText: 'затвори', prevText: '<назад', nextText: 'напред>', @@ -20,5 +30,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['bg']); -}); + datepicker.setDefaults(datepicker.regional['bg']); + + return datepicker.regional['bg']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-bs.js b/ui/i18n/datepicker-bs.js similarity index 65% rename from ui/i18n/jquery.ui.datepicker-bs.js rename to ui/i18n/datepicker-bs.js index f08870ffe36..9b070386517 100644 --- a/ui/i18n/jquery.ui.datepicker-bs.js +++ b/ui/i18n/datepicker-bs.js @@ -1,7 +1,17 @@ /* Bosnian i18n for the jQuery UI date picker plugin. */ /* Written by Kenan Konjo. */ -jQuery(function($){ - $.datepicker.regional['bs'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['bs'] = { closeText: 'Zatvori', prevText: '<', nextText: '>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['bs']); -}); + datepicker.setDefaults(datepicker.regional['bs']); + + return datepicker.regional['bs']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-ca.js b/ui/i18n/datepicker-ca.js similarity index 66% rename from ui/i18n/jquery.ui.datepicker-ca.js rename to ui/i18n/datepicker-ca.js index a10b549c28c..a68e0430bca 100644 --- a/ui/i18n/jquery.ui.datepicker-ca.js +++ b/ui/i18n/datepicker-ca.js @@ -1,7 +1,17 @@ /* Inicialització en català per a l'extensió 'UI date picker' per jQuery. */ /* Writers: (joan.leon@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['ca'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['ca'] = { closeText: 'Tanca', prevText: 'Anterior', nextText: 'Següent', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['ca']); -}); + datepicker.setDefaults(datepicker.regional['ca']); + + return datepicker.regional['ca']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-cs.js b/ui/i18n/datepicker-cs.js similarity index 68% rename from ui/i18n/jquery.ui.datepicker-cs.js rename to ui/i18n/datepicker-cs.js index b96b1a51c2d..6f37feabeed 100644 --- a/ui/i18n/jquery.ui.datepicker-cs.js +++ b/ui/i18n/datepicker-cs.js @@ -1,7 +1,17 @@ /* Czech initialisation for the jQuery UI date picker plugin. */ /* Written by Tomas Muller (tomas@tomas-muller.net). */ -jQuery(function($){ - $.datepicker.regional['cs'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['cs'] = { closeText: 'Zavřít', prevText: '<Dříve', nextText: 'Později>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['cs']); -}); + datepicker.setDefaults(datepicker.regional['cs']); + + return datepicker.regional['cs']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-cy-GB.js b/ui/i18n/datepicker-cy-GB.js similarity index 66% rename from ui/i18n/jquery.ui.datepicker-cy-GB.js rename to ui/i18n/datepicker-cy-GB.js index cf3a38e6cd3..d6db939c0ef 100644 --- a/ui/i18n/jquery.ui.datepicker-cy-GB.js +++ b/ui/i18n/datepicker-cy-GB.js @@ -1,7 +1,17 @@ /* Welsh/UK initialisation for the jQuery UI date picker plugin. */ /* Written by William Griffiths. */ -jQuery(function($){ - $.datepicker.regional['cy-GB'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['cy-GB'] = { closeText: 'Done', prevText: 'Prev', nextText: 'Next', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['cy-GB']); -}); + datepicker.setDefaults(datepicker.regional['cy-GB']); + + return datepicker.regional['cy-GB']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-da.js b/ui/i18n/datepicker-da.js similarity index 67% rename from ui/i18n/jquery.ui.datepicker-da.js rename to ui/i18n/datepicker-da.js index 7e42948b344..bb39950299c 100644 --- a/ui/i18n/jquery.ui.datepicker-da.js +++ b/ui/i18n/datepicker-da.js @@ -1,7 +1,17 @@ /* Danish initialisation for the jQuery UI date picker plugin. */ /* Written by Jan Christensen ( deletestuff@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['da'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['da'] = { closeText: 'Luk', prevText: '<Forrige', nextText: 'Næste>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['da']); -}); + datepicker.setDefaults(datepicker.regional['da']); + + return datepicker.regional['da']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-de.js b/ui/i18n/datepicker-de.js similarity index 66% rename from ui/i18n/jquery.ui.datepicker-de.js rename to ui/i18n/datepicker-de.js index abe75c4e429..38e95c87775 100644 --- a/ui/i18n/jquery.ui.datepicker-de.js +++ b/ui/i18n/datepicker-de.js @@ -1,7 +1,17 @@ /* German initialisation for the jQuery UI date picker plugin. */ /* Written by Milian Wolff (mail@milianw.de). */ -jQuery(function($){ - $.datepicker.regional['de'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['de'] = { closeText: 'Schließen', prevText: '<Zurück', nextText: 'Vor>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['de']); -}); + datepicker.setDefaults(datepicker.regional['de']); + + return datepicker.regional['de']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-el.js b/ui/i18n/datepicker-el.js similarity index 74% rename from ui/i18n/jquery.ui.datepicker-el.js rename to ui/i18n/datepicker-el.js index 1ac47561a41..0cfd338317e 100644 --- a/ui/i18n/jquery.ui.datepicker-el.js +++ b/ui/i18n/datepicker-el.js @@ -1,7 +1,17 @@ /* Greek (el) initialisation for the jQuery UI date picker plugin. */ /* Written by Alex Cicovic (http://www.alexcicovic.com) */ -jQuery(function($){ - $.datepicker.regional['el'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['el'] = { closeText: 'Κλείσιμο', prevText: 'Προηγούμενος', nextText: 'Επόμενος', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['el']); -}); + datepicker.setDefaults(datepicker.regional['el']); + + return datepicker.regional['el']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-en-AU.js b/ui/i18n/datepicker-en-AU.js similarity index 66% rename from ui/i18n/jquery.ui.datepicker-en-AU.js rename to ui/i18n/datepicker-en-AU.js index c1a1020a140..dcf1d0aae34 100644 --- a/ui/i18n/jquery.ui.datepicker-en-AU.js +++ b/ui/i18n/datepicker-en-AU.js @@ -1,7 +1,17 @@ /* English/Australia initialisation for the jQuery UI date picker plugin. */ /* Based on the en-GB initialisation. */ -jQuery(function($){ - $.datepicker.regional['en-AU'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['en-AU'] = { closeText: 'Done', prevText: 'Prev', nextText: 'Next', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['en-AU']); -}); + datepicker.setDefaults(datepicker.regional['en-AU']); + + return datepicker.regional['en-AU']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-en-GB.js b/ui/i18n/datepicker-en-GB.js similarity index 65% rename from ui/i18n/jquery.ui.datepicker-en-GB.js rename to ui/i18n/datepicker-en-GB.js index 16a096e758a..8ec0dc1fce8 100644 --- a/ui/i18n/jquery.ui.datepicker-en-GB.js +++ b/ui/i18n/datepicker-en-GB.js @@ -1,7 +1,17 @@ /* English/UK initialisation for the jQuery UI date picker plugin. */ /* Written by Stuart. */ -jQuery(function($){ - $.datepicker.regional['en-GB'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['en-GB'] = { closeText: 'Done', prevText: 'Prev', nextText: 'Next', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['en-GB']); -}); + datepicker.setDefaults(datepicker.regional['en-GB']); + + return datepicker.regional['en-GB']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-en-NZ.js b/ui/i18n/datepicker-en-NZ.js similarity index 66% rename from ui/i18n/jquery.ui.datepicker-en-NZ.js rename to ui/i18n/datepicker-en-NZ.js index 7819df05286..a6dde0a99b1 100644 --- a/ui/i18n/jquery.ui.datepicker-en-NZ.js +++ b/ui/i18n/datepicker-en-NZ.js @@ -1,7 +1,17 @@ /* English/New Zealand initialisation for the jQuery UI date picker plugin. */ /* Based on the en-GB initialisation. */ -jQuery(function($){ - $.datepicker.regional['en-NZ'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['en-NZ'] = { closeText: 'Done', prevText: 'Prev', nextText: 'Next', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['en-NZ']); -}); + datepicker.setDefaults(datepicker.regional['en-NZ']); + + return datepicker.regional['en-NZ']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-eo.js b/ui/i18n/datepicker-eo.js similarity index 67% rename from ui/i18n/jquery.ui.datepicker-eo.js rename to ui/i18n/datepicker-eo.js index 39e44fc57c1..d7806a3b36e 100644 --- a/ui/i18n/jquery.ui.datepicker-eo.js +++ b/ui/i18n/datepicker-eo.js @@ -1,7 +1,17 @@ /* Esperanto initialisation for the jQuery UI date picker plugin. */ /* Written by Olivier M. (olivierweb@ifrance.com). */ -jQuery(function($){ - $.datepicker.regional['eo'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['eo'] = { closeText: 'Fermi', prevText: '<Anta', nextText: 'Sekv>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['eo']); -}); + datepicker.setDefaults(datepicker.regional['eo']); + + return datepicker.regional['eo']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-es.js b/ui/i18n/datepicker-es.js similarity index 67% rename from ui/i18n/jquery.ui.datepicker-es.js rename to ui/i18n/datepicker-es.js index ae32124e76b..6bd645b0655 100644 --- a/ui/i18n/jquery.ui.datepicker-es.js +++ b/ui/i18n/datepicker-es.js @@ -1,7 +1,17 @@ /* Inicialización en español para la extensión 'UI date picker' para jQuery. */ /* Traducido por Vester (xvester@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['es'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['es'] = { closeText: 'Cerrar', prevText: '<Ant', nextText: 'Sig>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['es']); -}); + datepicker.setDefaults(datepicker.regional['es']); + + return datepicker.regional['es']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-et.js b/ui/i18n/datepicker-et.js similarity index 68% rename from ui/i18n/jquery.ui.datepicker-et.js rename to ui/i18n/datepicker-et.js index 62cbea8fa86..df6316e2f2e 100644 --- a/ui/i18n/jquery.ui.datepicker-et.js +++ b/ui/i18n/datepicker-et.js @@ -1,7 +1,17 @@ /* Estonian initialisation for the jQuery UI date picker plugin. */ /* Written by Mart Sõmermaa (mrts.pydev at gmail com). */ -jQuery(function($){ - $.datepicker.regional['et'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['et'] = { closeText: 'Sulge', prevText: 'Eelnev', nextText: 'Järgnev', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['et']); -}); + datepicker.setDefaults(datepicker.regional['et']); + + return datepicker.regional['et']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-eu.js b/ui/i18n/datepicker-eu.js similarity index 65% rename from ui/i18n/jquery.ui.datepicker-eu.js rename to ui/i18n/datepicker-eu.js index a71db2c721c..188aa763813 100644 --- a/ui/i18n/jquery.ui.datepicker-eu.js +++ b/ui/i18n/datepicker-eu.js @@ -1,7 +1,17 @@ -/* Euskarako oinarria 'UI date picker' jquery-ko extentsioarentzat */ /* Karrikas-ek itzulia (karrikas@karrikas.com) */ -jQuery(function($){ - $.datepicker.regional['eu'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "query.ui.datepicker" + ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['eu'] = { closeText: 'Egina', prevText: '<Aur', nextText: 'Hur>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['eu']); -}); + datepicker.setDefaults(datepicker.regional['eu']); + + return datepicker.regional['eu']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-fa.js b/ui/i18n/datepicker-fa.js similarity index 73% rename from ui/i18n/jquery.ui.datepicker-fa.js rename to ui/i18n/datepicker-fa.js index bb957f6d8d0..74bad4643a7 100644 --- a/ui/i18n/jquery.ui.datepicker-fa.js +++ b/ui/i18n/datepicker-fa.js @@ -1,8 +1,18 @@ /* Persian (Farsi) Translation for the jQuery UI date picker plugin. */ /* Javad Mowlanezhad -- jmowla@gmail.com */ /* Jalali calendar should supported soon! (Its implemented but I have to test it) */ -jQuery(function($) { - $.datepicker.regional['fa'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['fa'] = { closeText: 'بستن', prevText: '<قبلی', nextText: 'بعدی>', @@ -55,5 +65,8 @@ jQuery(function($) { isRTL: true, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['fa']); -}); + datepicker.setDefaults(datepicker.regional['fa']); + + return datepicker.regional['fa']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-fi.js b/ui/i18n/datepicker-fi.js similarity index 68% rename from ui/i18n/jquery.ui.datepicker-fi.js rename to ui/i18n/datepicker-fi.js index e5c554aba42..ba4f27a5e71 100644 --- a/ui/i18n/jquery.ui.datepicker-fi.js +++ b/ui/i18n/datepicker-fi.js @@ -1,7 +1,17 @@ /* Finnish initialisation for the jQuery UI date picker plugin. */ /* Written by Harri Kilpiö (harrikilpio@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['fi'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['fi'] = { closeText: 'Sulje', prevText: '«Edellinen', nextText: 'Seuraava»', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['fi']); -}); + datepicker.setDefaults(datepicker.regional['fi']); + + return datepicker.regional['fi']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-fo.js b/ui/i18n/datepicker-fo.js similarity index 67% rename from ui/i18n/jquery.ui.datepicker-fo.js rename to ui/i18n/datepicker-fo.js index cb0e3def70f..da5dda53e35 100644 --- a/ui/i18n/jquery.ui.datepicker-fo.js +++ b/ui/i18n/datepicker-fo.js @@ -1,7 +1,17 @@ /* Faroese initialisation for the jQuery UI date picker plugin */ /* Written by Sverri Mohr Olsen, sverrimo@gmail.com */ -jQuery(function($){ - $.datepicker.regional['fo'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['fo'] = { closeText: 'Lat aftur', prevText: '<Fyrra', nextText: 'Næsta>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['fo']); -}); + datepicker.setDefaults(datepicker.regional['fo']); + + return datepicker.regional['fo']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-fr-CA.js b/ui/i18n/datepicker-fr-CA.js similarity index 67% rename from ui/i18n/jquery.ui.datepicker-fr-CA.js rename to ui/i18n/datepicker-fr-CA.js index e2082218540..bfdfd8f9ecf 100644 --- a/ui/i18n/jquery.ui.datepicker-fr-CA.js +++ b/ui/i18n/datepicker-fr-CA.js @@ -1,6 +1,16 @@ /* Canadian-French initialisation for the jQuery UI date picker plugin. */ -jQuery(function ($) { - $.datepicker.regional['fr-CA'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['fr-CA'] = { closeText: 'Fermer', prevText: 'Précédent', nextText: 'Suivant', @@ -19,5 +29,8 @@ jQuery(function ($) { showMonthAfterYear: false, yearSuffix: '' }; - $.datepicker.setDefaults($.datepicker.regional['fr-CA']); -}); + datepicker.setDefaults(datepicker.regional['fr-CA']); + + return datepicker.regional['fr-CA']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-fr-CH.js b/ui/i18n/datepicker-fr-CH.js similarity index 68% rename from ui/i18n/jquery.ui.datepicker-fr-CH.js rename to ui/i18n/datepicker-fr-CH.js index 744fe1c3da2..1bf388c1bf7 100644 --- a/ui/i18n/jquery.ui.datepicker-fr-CH.js +++ b/ui/i18n/datepicker-fr-CH.js @@ -1,7 +1,17 @@ /* Swiss-French initialisation for the jQuery UI date picker plugin. */ /* Written Martin Voelkle (martin.voelkle@e-tc.ch). */ -jQuery(function($){ - $.datepicker.regional['fr-CH'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['fr-CH'] = { closeText: 'Fermer', prevText: '<Préc', nextText: 'Suiv>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['fr-CH']); -}); + datepicker.setDefaults(datepicker.regional['fr-CH']); + + return datepicker.regional['fr-CH']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-fr.js b/ui/i18n/datepicker-fr.js similarity index 70% rename from ui/i18n/jquery.ui.datepicker-fr.js rename to ui/i18n/datepicker-fr.js index 2d06743a661..be3704b9b7f 100644 --- a/ui/i18n/jquery.ui.datepicker-fr.js +++ b/ui/i18n/datepicker-fr.js @@ -2,8 +2,18 @@ /* Written by Keith Wood (kbwood{at}iinet.com.au), Stéphane Nahmani (sholby@sholby.net), Stéphane Raimbault */ -jQuery(function($){ - $.datepicker.regional['fr'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['fr'] = { closeText: 'Fermer', prevText: 'Précédent', nextText: 'Suivant', @@ -21,5 +31,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['fr']); -}); + datepicker.setDefaults(datepicker.regional['fr']); + + return datepicker.regional['fr']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-gl.js b/ui/i18n/datepicker-gl.js similarity index 67% rename from ui/i18n/jquery.ui.datepicker-gl.js rename to ui/i18n/datepicker-gl.js index 59b989a6dd4..43ec6ff50a6 100644 --- a/ui/i18n/jquery.ui.datepicker-gl.js +++ b/ui/i18n/datepicker-gl.js @@ -1,7 +1,17 @@ /* Galician localization for 'UI date picker' jQuery extension. */ /* Translated by Jorge Barreiro . */ -jQuery(function($){ - $.datepicker.regional['gl'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['gl'] = { closeText: 'Pechar', prevText: '<Ant', nextText: 'Seg>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['gl']); -}); + datepicker.setDefaults(datepicker.regional['gl']); + + return datepicker.regional['gl']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-he.js b/ui/i18n/datepicker-he.js similarity index 70% rename from ui/i18n/jquery.ui.datepicker-he.js rename to ui/i18n/datepicker-he.js index b9e8deec5fd..148f370c8b3 100644 --- a/ui/i18n/jquery.ui.datepicker-he.js +++ b/ui/i18n/datepicker-he.js @@ -1,7 +1,17 @@ /* Hebrew initialisation for the UI Datepicker extension. */ /* Written by Amir Hardon (ahardon at gmail dot com). */ -jQuery(function($){ - $.datepicker.regional['he'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['he'] = { closeText: 'סגור', prevText: '<הקודם', nextText: 'הבא>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: true, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['he']); -}); + datepicker.setDefaults(datepicker.regional['he']); + + return datepicker.regional['he']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-hi.js b/ui/i18n/datepicker-hi.js similarity index 75% rename from ui/i18n/jquery.ui.datepicker-hi.js rename to ui/i18n/datepicker-hi.js index 6c563b99751..411006616c6 100644 --- a/ui/i18n/jquery.ui.datepicker-hi.js +++ b/ui/i18n/datepicker-hi.js @@ -1,7 +1,17 @@ /* Hindi initialisation for the jQuery UI date picker plugin. */ /* Written by Michael Dawart. */ -jQuery(function($){ - $.datepicker.regional['hi'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['hi'] = { closeText: 'बंद', prevText: 'पिछला', nextText: 'अगला', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['hi']); -}); + datepicker.setDefaults(datepicker.regional['hi']); + + return datepicker.regional['hi']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-hr.js b/ui/i18n/datepicker-hr.js similarity index 66% rename from ui/i18n/jquery.ui.datepicker-hr.js rename to ui/i18n/datepicker-hr.js index 2fe37b64b70..6a92fe69b48 100644 --- a/ui/i18n/jquery.ui.datepicker-hr.js +++ b/ui/i18n/datepicker-hr.js @@ -1,7 +1,17 @@ /* Croatian i18n for the jQuery UI date picker plugin. */ /* Written by Vjekoslav Nesek. */ -jQuery(function($){ - $.datepicker.regional['hr'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['hr'] = { closeText: 'Zatvori', prevText: '<', nextText: '>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['hr']); -}); + datepicker.setDefaults(datepicker.regional['hr']); + + return datepicker.regional['hr']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-hu.js b/ui/i18n/datepicker-hu.js similarity index 66% rename from ui/i18n/jquery.ui.datepicker-hu.js rename to ui/i18n/datepicker-hu.js index b28c268c1c4..9f95f53a2e9 100644 --- a/ui/i18n/jquery.ui.datepicker-hu.js +++ b/ui/i18n/datepicker-hu.js @@ -1,7 +1,17 @@ /* Hungarian initialisation for the jQuery UI date picker plugin. */ -/* Written by Istvan Karaszi (jquery@spam.raszi.hu). */ -jQuery(function($){ - $.datepicker.regional['hu'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "query.ui.datepicker" + ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['hu'] = { closeText: 'bezár', prevText: 'vissza', nextText: 'előre', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: true, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['hu']); -}); + datepicker.setDefaults(datepicker.regional['hu']); + + return datepicker.regional['hu']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-hy.js b/ui/i18n/datepicker-hy.js similarity index 73% rename from ui/i18n/jquery.ui.datepicker-hy.js rename to ui/i18n/datepicker-hy.js index 6d4eca5556b..e64780f0846 100644 --- a/ui/i18n/jquery.ui.datepicker-hy.js +++ b/ui/i18n/datepicker-hy.js @@ -1,7 +1,17 @@ /* Armenian(UTF-8) initialisation for the jQuery UI date picker plugin. */ /* Written by Levon Zakaryan (levon.zakaryan@gmail.com)*/ -jQuery(function($){ - $.datepicker.regional['hy'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['hy'] = { closeText: 'Փակել', prevText: '<Նախ.', nextText: 'Հաջ.>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['hy']); -}); + datepicker.setDefaults(datepicker.regional['hy']); + + return datepicker.regional['hy']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-id.js b/ui/i18n/datepicker-id.js similarity index 66% rename from ui/i18n/jquery.ui.datepicker-id.js rename to ui/i18n/datepicker-id.js index 6327fa60c78..a723bbc0403 100644 --- a/ui/i18n/jquery.ui.datepicker-id.js +++ b/ui/i18n/datepicker-id.js @@ -1,7 +1,17 @@ /* Indonesian initialisation for the jQuery UI date picker plugin. */ /* Written by Deden Fathurahman (dedenf@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['id'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['id'] = { closeText: 'Tutup', prevText: '<mundur', nextText: 'maju>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['id']); -}); + datepicker.setDefaults(datepicker.regional['id']); + + return datepicker.regional['id']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-is.js b/ui/i18n/datepicker-is.js similarity index 68% rename from ui/i18n/jquery.ui.datepicker-is.js rename to ui/i18n/datepicker-is.js index 4fc4298881a..51bd5bcd152 100644 --- a/ui/i18n/jquery.ui.datepicker-is.js +++ b/ui/i18n/datepicker-is.js @@ -1,7 +1,17 @@ /* Icelandic initialisation for the jQuery UI date picker plugin. */ /* Written by Haukur H. Thorsson (haukur@eskill.is). */ -jQuery(function($){ - $.datepicker.regional['is'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['is'] = { closeText: 'Loka', prevText: '< Fyrri', nextText: 'Næsti >', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['is']); -}); + datepicker.setDefaults(datepicker.regional['is']); + + return datepicker.regional['is']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-it-CH.js b/ui/i18n/datepicker-it-CH.js similarity index 67% rename from ui/i18n/jquery.ui.datepicker-it-CH.js rename to ui/i18n/datepicker-it-CH.js index f19a56d34e1..b8dd8924e4d 100644 --- a/ui/i18n/jquery.ui.datepicker-it-CH.js +++ b/ui/i18n/datepicker-it-CH.js @@ -1,7 +1,17 @@ /* Italian initialisation for the jQuery UI date picker plugin. */ /* Written by Antonello Pasella (antonello.pasella@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['it-CH'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['it-CH'] = { closeText: 'Chiudi', prevText: '<Prec', nextText: 'Succ>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['it-CH']); -}); + datepicker.setDefaults(datepicker.regional['it-CH']); + + return datepicker.regional['it-CH']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-it.js b/ui/i18n/datepicker-it.js similarity index 67% rename from ui/i18n/jquery.ui.datepicker-it.js rename to ui/i18n/datepicker-it.js index a01f043f8a7..0ac630c683a 100644 --- a/ui/i18n/jquery.ui.datepicker-it.js +++ b/ui/i18n/datepicker-it.js @@ -1,7 +1,17 @@ /* Italian initialisation for the jQuery UI date picker plugin. */ /* Written by Antonello Pasella (antonello.pasella@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['it'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['it'] = { closeText: 'Chiudi', prevText: '<Prec', nextText: 'Succ>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['it']); -}); + datepicker.setDefaults(datepicker.regional['it']); + + return datepicker.regional['it']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-ja.js b/ui/i18n/datepicker-ja.js similarity index 67% rename from ui/i18n/jquery.ui.datepicker-ja.js rename to ui/i18n/datepicker-ja.js index 4d0b63c77de..49ce0170e56 100644 --- a/ui/i18n/jquery.ui.datepicker-ja.js +++ b/ui/i18n/datepicker-ja.js @@ -1,7 +1,17 @@ /* Japanese initialisation for the jQuery UI date picker plugin. */ /* Written by Kentaro SATO (kentaro@ranvis.com). */ -jQuery(function($){ - $.datepicker.regional['ja'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['ja'] = { closeText: '閉じる', prevText: '<前', nextText: '次>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: true, yearSuffix: '年'}; - $.datepicker.setDefaults($.datepicker.regional['ja']); -}); + datepicker.setDefaults(datepicker.regional['ja']); + + return datepicker.regional['ja']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-ka.js b/ui/i18n/datepicker-ka.js similarity index 77% rename from ui/i18n/jquery.ui.datepicker-ka.js rename to ui/i18n/datepicker-ka.js index c10658d79bf..b895054b998 100644 --- a/ui/i18n/jquery.ui.datepicker-ka.js +++ b/ui/i18n/datepicker-ka.js @@ -1,7 +1,17 @@ /* Georgian (UTF-8) initialisation for the jQuery UI date picker plugin. */ /* Written by Lado Lomidze (lado.lomidze@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['ka'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['ka'] = { closeText: 'დახურვა', prevText: '< წინა', nextText: 'შემდეგი >', @@ -17,5 +27,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['ka']); -}); + datepicker.setDefaults(datepicker.regional['ka']); + + return datepicker.regional['ka']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-kk.js b/ui/i18n/datepicker-kk.js similarity index 72% rename from ui/i18n/jquery.ui.datepicker-kk.js rename to ui/i18n/datepicker-kk.js index dcd6a65df72..628425b93b7 100644 --- a/ui/i18n/jquery.ui.datepicker-kk.js +++ b/ui/i18n/datepicker-kk.js @@ -1,7 +1,17 @@ /* Kazakh (UTF-8) initialisation for the jQuery UI date picker plugin. */ /* Written by Dmitriy Karasyov (dmitriy.karasyov@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['kk'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['kk'] = { closeText: 'Жабу', prevText: '<Алдыңғы', nextText: 'Келесі>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['kk']); -}); + datepicker.setDefaults(datepicker.regional['kk']); + + return datepicker.regional['kk']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-km.js b/ui/i18n/datepicker-km.js similarity index 76% rename from ui/i18n/jquery.ui.datepicker-km.js rename to ui/i18n/datepicker-km.js index f9c4e3a02d9..079b6874e1e 100644 --- a/ui/i18n/jquery.ui.datepicker-km.js +++ b/ui/i18n/datepicker-km.js @@ -1,7 +1,17 @@ /* Khmer initialisation for the jQuery calendar extension. */ /* Written by Chandara Om (chandara.teacher@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['km'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['km'] = { closeText: 'ធ្វើ​រួច', prevText: 'មុន', nextText: 'បន្ទាប់', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['km']); -}); + datepicker.setDefaults(datepicker.regional['km']); + + return datepicker.regional['km']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-ko.js b/ui/i18n/datepicker-ko.js similarity index 67% rename from ui/i18n/jquery.ui.datepicker-ko.js rename to ui/i18n/datepicker-ko.js index af36f3d6b94..5981bc7d532 100644 --- a/ui/i18n/jquery.ui.datepicker-ko.js +++ b/ui/i18n/datepicker-ko.js @@ -1,7 +1,17 @@ /* Korean initialisation for the jQuery calendar extension. */ /* Written by DaeKwon Kang (ncrash.dk@gmail.com), Edited by Genie. */ -jQuery(function($){ - $.datepicker.regional['ko'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['ko'] = { closeText: '닫기', prevText: '이전달', nextText: '다음달', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: true, yearSuffix: '년'}; - $.datepicker.setDefaults($.datepicker.regional['ko']); -}); + datepicker.setDefaults(datepicker.regional['ko']); + + return datepicker.regional['ko']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-ky.js b/ui/i18n/datepicker-ky.js similarity index 72% rename from ui/i18n/jquery.ui.datepicker-ky.js rename to ui/i18n/datepicker-ky.js index d4466b12e6e..382ceb38543 100644 --- a/ui/i18n/jquery.ui.datepicker-ky.js +++ b/ui/i18n/datepicker-ky.js @@ -1,7 +1,17 @@ /* Kyrgyz (UTF-8) initialisation for the jQuery UI date picker plugin. */ /* Written by Sergey Kartashov (ebishkek@yandex.ru). */ -jQuery(function($){ - $.datepicker.regional['ky'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['ky'] = { closeText: 'Жабуу', prevText: '<Мур', nextText: 'Кий>', @@ -20,5 +30,8 @@ jQuery(function($){ showMonthAfterYear: false, yearSuffix: '' }; - $.datepicker.setDefaults($.datepicker.regional['ky']); -}); + datepicker.setDefaults(datepicker.regional['ky']); + + return datepicker.regional['ky']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-lb.js b/ui/i18n/datepicker-lb.js similarity index 68% rename from ui/i18n/jquery.ui.datepicker-lb.js rename to ui/i18n/datepicker-lb.js index 87c79d594eb..6e8d74f71df 100644 --- a/ui/i18n/jquery.ui.datepicker-lb.js +++ b/ui/i18n/datepicker-lb.js @@ -1,7 +1,17 @@ /* Luxembourgish initialisation for the jQuery UI date picker plugin. */ /* Written by Michel Weimerskirch */ -jQuery(function($){ - $.datepicker.regional['lb'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['lb'] = { closeText: 'Fäerdeg', prevText: 'Zréck', nextText: 'Weider', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['lb']); -}); + datepicker.setDefaults(datepicker.regional['lb']); + + return datepicker.regional['lb']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-lt.js b/ui/i18n/datepicker-lt.js similarity index 69% rename from ui/i18n/jquery.ui.datepicker-lt.js rename to ui/i18n/datepicker-lt.js index 54eb523b308..b74d99ba093 100644 --- a/ui/i18n/jquery.ui.datepicker-lt.js +++ b/ui/i18n/datepicker-lt.js @@ -1,7 +1,17 @@ /* Lithuanian (UTF-8) initialisation for the jQuery UI date picker plugin. */ /* @author Arturas Paleicikas */ -jQuery(function($){ - $.datepicker.regional['lt'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['lt'] = { closeText: 'Uždaryti', prevText: '<Atgal', nextText: 'Pirmyn>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: true, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['lt']); -}); + datepicker.setDefaults(datepicker.regional['lt']); + + return datepicker.regional['lt']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-lv.js b/ui/i18n/datepicker-lv.js similarity index 68% rename from ui/i18n/jquery.ui.datepicker-lv.js rename to ui/i18n/datepicker-lv.js index 3fdf8565bd8..64de0ad7251 100644 --- a/ui/i18n/jquery.ui.datepicker-lv.js +++ b/ui/i18n/datepicker-lv.js @@ -1,7 +1,17 @@ /* Latvian (UTF-8) initialisation for the jQuery UI date picker plugin. */ /* @author Arturas Paleicikas */ -jQuery(function($){ - $.datepicker.regional['lv'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['lv'] = { closeText: 'Aizvērt', prevText: 'Iepr.', nextText: 'Nāk.', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['lv']); -}); + datepicker.setDefaults(datepicker.regional['lv']); + + return datepicker.regional['lv']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-mk.js b/ui/i18n/datepicker-mk.js similarity index 71% rename from ui/i18n/jquery.ui.datepicker-mk.js rename to ui/i18n/datepicker-mk.js index 0285325519f..1c93a89b004 100644 --- a/ui/i18n/jquery.ui.datepicker-mk.js +++ b/ui/i18n/datepicker-mk.js @@ -1,7 +1,17 @@ /* Macedonian i18n for the jQuery UI date picker plugin. */ /* Written by Stojce Slavkovski. */ -jQuery(function($){ - $.datepicker.regional['mk'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['mk'] = { closeText: 'Затвори', prevText: '<', nextText: '>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['mk']); -}); + datepicker.setDefaults(datepicker.regional['mk']); + + return datepicker.regional['mk']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-ml.js b/ui/i18n/datepicker-ml.js similarity index 77% rename from ui/i18n/jquery.ui.datepicker-ml.js rename to ui/i18n/datepicker-ml.js index 9b8f460dbcc..3c39bc7c6f1 100644 --- a/ui/i18n/jquery.ui.datepicker-ml.js +++ b/ui/i18n/datepicker-ml.js @@ -1,7 +1,17 @@ /* Malayalam (UTF-8) initialisation for the jQuery UI date picker plugin. */ /* Written by Saji Nediyanchath (saji89@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['ml'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['ml'] = { closeText: 'ശരി', prevText: 'മുന്നത്തെ', nextText: 'അടുത്തത് ', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['ml']); -}); + datepicker.setDefaults(datepicker.regional['ml']); + + return datepicker.regional['ml']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-ms.js b/ui/i18n/datepicker-ms.js similarity index 67% rename from ui/i18n/jquery.ui.datepicker-ms.js rename to ui/i18n/datepicker-ms.js index e70de729959..e43163df3e4 100644 --- a/ui/i18n/jquery.ui.datepicker-ms.js +++ b/ui/i18n/datepicker-ms.js @@ -1,7 +1,17 @@ /* Malaysian initialisation for the jQuery UI date picker plugin. */ /* Written by Mohd Nawawi Mohamad Jamili (nawawi@ronggeng.net). */ -jQuery(function($){ - $.datepicker.regional['ms'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['ms'] = { closeText: 'Tutup', prevText: '<Sebelum', nextText: 'Selepas>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['ms']); -}); + datepicker.setDefaults(datepicker.regional['ms']); + + return datepicker.regional['ms']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-nb.js b/ui/i18n/datepicker-nb.js similarity index 67% rename from ui/i18n/jquery.ui.datepicker-nb.js rename to ui/i18n/datepicker-nb.js index 845a5052da0..4f5c656df84 100644 --- a/ui/i18n/jquery.ui.datepicker-nb.js +++ b/ui/i18n/datepicker-nb.js @@ -1,7 +1,17 @@ /* Norwegian Bokmål initialisation for the jQuery UI date picker plugin. */ /* Written by Bjørn Johansen (post@bjornjohansen.no). */ -jQuery(function($){ - $.datepicker.regional['nb'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['nb'] = { closeText: 'Lukk', prevText: '«Forrige', nextText: 'Neste»', @@ -18,5 +28,8 @@ jQuery(function($){ showMonthAfterYear: false, yearSuffix: '' }; - $.datepicker.setDefaults($.datepicker.regional['nb']); -}); + datepicker.setDefaults(datepicker.regional['nb']); + + return datepicker.regional['nb']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-nl-BE.js b/ui/i18n/datepicker-nl-BE.js similarity index 67% rename from ui/i18n/jquery.ui.datepicker-nl-BE.js rename to ui/i18n/datepicker-nl-BE.js index 7b3cdf425b3..b7c0e96e68b 100644 --- a/ui/i18n/jquery.ui.datepicker-nl-BE.js +++ b/ui/i18n/datepicker-nl-BE.js @@ -1,7 +1,17 @@ /* Dutch (Belgium) initialisation for the jQuery UI date picker plugin. */ /* David De Sloovere @DavidDeSloovere */ -jQuery(function($){ - $.datepicker.regional['nl-BE'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['nl-BE'] = { closeText: 'Sluiten', prevText: '←', nextText: '→', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['nl-BE']); -}); + datepicker.setDefaults(datepicker.regional['nl-BE']); + + return datepicker.regional['nl-BE']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-nl.js b/ui/i18n/datepicker-nl.js similarity index 68% rename from ui/i18n/jquery.ui.datepicker-nl.js rename to ui/i18n/datepicker-nl.js index 203f16069d6..33abc0b6211 100644 --- a/ui/i18n/jquery.ui.datepicker-nl.js +++ b/ui/i18n/datepicker-nl.js @@ -1,7 +1,17 @@ /* Dutch (UTF-8) initialisation for the jQuery UI date picker plugin. */ /* Written by Mathias Bynens */ -jQuery(function($){ - $.datepicker.regional.nl = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional.nl = { closeText: 'Sluiten', prevText: '←', nextText: '→', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional.nl); -}); + datepicker.setDefaults(datepicker.regional.nl); + + return datepicker.regional.nl; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-nn.js b/ui/i18n/datepicker-nn.js similarity index 67% rename from ui/i18n/jquery.ui.datepicker-nn.js rename to ui/i18n/datepicker-nn.js index b55245ee6b0..30622f6af6e 100644 --- a/ui/i18n/jquery.ui.datepicker-nn.js +++ b/ui/i18n/datepicker-nn.js @@ -1,7 +1,17 @@ /* Norwegian Nynorsk initialisation for the jQuery UI date picker plugin. */ /* Written by Bjørn Johansen (post@bjornjohansen.no). */ -jQuery(function($){ - $.datepicker.regional['nn'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['nn'] = { closeText: 'Lukk', prevText: '«Førre', nextText: 'Neste»', @@ -18,5 +28,8 @@ jQuery(function($){ showMonthAfterYear: false, yearSuffix: '' }; - $.datepicker.setDefaults($.datepicker.regional['nn']); -}); + datepicker.setDefaults(datepicker.regional['nn']); + + return datepicker.regional['nn']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-no.js b/ui/i18n/datepicker-no.js similarity index 67% rename from ui/i18n/jquery.ui.datepicker-no.js rename to ui/i18n/datepicker-no.js index d36e430be6d..1c9b01099f3 100644 --- a/ui/i18n/jquery.ui.datepicker-no.js +++ b/ui/i18n/datepicker-no.js @@ -1,8 +1,18 @@ /* Norwegian initialisation for the jQuery UI date picker plugin. */ /* Written by Naimdjon Takhirov (naimdjon@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['no'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['no'] = { closeText: 'Lukk', prevText: '«Forrige', nextText: 'Neste»', @@ -19,5 +29,8 @@ jQuery(function($){ showMonthAfterYear: false, yearSuffix: '' }; - $.datepicker.setDefaults($.datepicker.regional['no']); -}); + datepicker.setDefaults(datepicker.regional['no']); + + return datepicker.regional['no']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-pl.js b/ui/i18n/datepicker-pl.js similarity index 67% rename from ui/i18n/jquery.ui.datepicker-pl.js rename to ui/i18n/datepicker-pl.js index 0ffc515b95b..2dd316736df 100644 --- a/ui/i18n/jquery.ui.datepicker-pl.js +++ b/ui/i18n/datepicker-pl.js @@ -1,7 +1,17 @@ /* Polish initialisation for the jQuery UI date picker plugin. */ /* Written by Jacek Wysocki (jacek.wysocki@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['pl'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['pl'] = { closeText: 'Zamknij', prevText: '<Poprzedni', nextText: 'Następny>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['pl']); -}); + datepicker.setDefaults(datepicker.regional['pl']); + + return datepicker.regional['pl']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-pt-BR.js b/ui/i18n/datepicker-pt-BR.js similarity index 67% rename from ui/i18n/jquery.ui.datepicker-pt-BR.js rename to ui/i18n/datepicker-pt-BR.js index 521967ec39a..5b856184b48 100644 --- a/ui/i18n/jquery.ui.datepicker-pt-BR.js +++ b/ui/i18n/datepicker-pt-BR.js @@ -1,7 +1,17 @@ /* Brazilian initialisation for the jQuery UI date picker plugin. */ /* Written by Leonildo Costa Silva (leocsilva@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['pt-BR'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['pt-BR'] = { closeText: 'Fechar', prevText: '<Anterior', nextText: 'Próximo>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['pt-BR']); -}); + datepicker.setDefaults(datepicker.regional['pt-BR']); + + return datepicker.regional['pt-BR']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-pt.js b/ui/i18n/datepicker-pt.js similarity index 66% rename from ui/i18n/jquery.ui.datepicker-pt.js rename to ui/i18n/datepicker-pt.js index 4fb16f0329c..77f4bf540c0 100644 --- a/ui/i18n/jquery.ui.datepicker-pt.js +++ b/ui/i18n/datepicker-pt.js @@ -1,6 +1,16 @@ /* Portuguese initialisation for the jQuery UI date picker plugin. */ -jQuery(function($){ - $.datepicker.regional['pt'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['pt'] = { closeText: 'Fechar', prevText: 'Anterior', nextText: 'Seguinte', @@ -18,5 +28,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['pt']); -}); + datepicker.setDefaults(datepicker.regional['pt']); + + return datepicker.regional['pt']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-rm.js b/ui/i18n/datepicker-rm.js similarity index 67% rename from ui/i18n/jquery.ui.datepicker-rm.js rename to ui/i18n/datepicker-rm.js index 22ed21685dd..601aa7cbe28 100644 --- a/ui/i18n/jquery.ui.datepicker-rm.js +++ b/ui/i18n/datepicker-rm.js @@ -1,7 +1,17 @@ /* Romansh initialisation for the jQuery UI date picker plugin. */ /* Written by Yvonne Gienal (yvonne.gienal@educa.ch). */ -jQuery(function($){ - $.datepicker.regional['rm'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['rm'] = { closeText: 'Serrar', prevText: '<Suandant', nextText: 'Precedent>', @@ -17,5 +27,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['rm']); -}); + datepicker.setDefaults(datepicker.regional['rm']); + + return datepicker.regional['rm']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-ro.js b/ui/i18n/datepicker-ro.js similarity index 69% rename from ui/i18n/jquery.ui.datepicker-ro.js rename to ui/i18n/datepicker-ro.js index a988270d750..7ff4dfd89c6 100644 --- a/ui/i18n/jquery.ui.datepicker-ro.js +++ b/ui/i18n/datepicker-ro.js @@ -3,8 +3,18 @@ * Written by Edmond L. (ll_edmond@walla.com) * and Ionut G. Stan (ionut.g.stan@gmail.com) */ -jQuery(function($){ - $.datepicker.regional['ro'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['ro'] = { closeText: 'Închide', prevText: '« Luna precedentă', nextText: 'Luna următoare »', @@ -22,5 +32,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['ro']); -}); + datepicker.setDefaults(datepicker.regional['ro']); + + return datepicker.regional['ro']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-ru.js b/ui/i18n/datepicker-ru.js similarity index 72% rename from ui/i18n/jquery.ui.datepicker-ru.js rename to ui/i18n/datepicker-ru.js index a519714055d..568d42e9bab 100644 --- a/ui/i18n/jquery.ui.datepicker-ru.js +++ b/ui/i18n/datepicker-ru.js @@ -1,7 +1,17 @@ /* Russian (UTF-8) initialisation for the jQuery UI date picker plugin. */ /* Written by Andrew Stromnov (stromnov@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['ru'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['ru'] = { closeText: 'Закрыть', prevText: '<Пред', nextText: 'След>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['ru']); -}); + datepicker.setDefaults(datepicker.regional['ru']); + + return datepicker.regional['ru']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-sk.js b/ui/i18n/datepicker-sk.js similarity index 67% rename from ui/i18n/jquery.ui.datepicker-sk.js rename to ui/i18n/datepicker-sk.js index 0cb76c4e800..ca918e7217e 100644 --- a/ui/i18n/jquery.ui.datepicker-sk.js +++ b/ui/i18n/datepicker-sk.js @@ -1,7 +1,17 @@ /* Slovak initialisation for the jQuery UI date picker plugin. */ /* Written by Vojtech Rinik (vojto@hmm.sk). */ -jQuery(function($){ - $.datepicker.regional['sk'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['sk'] = { closeText: 'Zavrieť', prevText: '<Predchádzajúci', nextText: 'Nasledujúci>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['sk']); -}); + datepicker.setDefaults(datepicker.regional['sk']); + + return datepicker.regional['sk']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-sl.js b/ui/i18n/datepicker-sl.js similarity index 68% rename from ui/i18n/jquery.ui.datepicker-sl.js rename to ui/i18n/datepicker-sl.js index 048a47af71f..5bf77ff9cb9 100644 --- a/ui/i18n/jquery.ui.datepicker-sl.js +++ b/ui/i18n/datepicker-sl.js @@ -1,8 +1,18 @@ /* Slovenian initialisation for the jQuery UI date picker plugin. */ /* Written by Jaka Jancar (jaka@kubje.org). */ /* c = č, s = š z = ž C = Č S = Š Z = Ž */ -jQuery(function($){ - $.datepicker.regional['sl'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['sl'] = { closeText: 'Zapri', prevText: '<Prejšnji', nextText: 'Naslednji>', @@ -20,5 +30,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['sl']); -}); + datepicker.setDefaults(datepicker.regional['sl']); + + return datepicker.regional['sl']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-sq.js b/ui/i18n/datepicker-sq.js similarity index 67% rename from ui/i18n/jquery.ui.datepicker-sq.js rename to ui/i18n/datepicker-sq.js index d6086a78960..7e679c5c6bc 100644 --- a/ui/i18n/jquery.ui.datepicker-sq.js +++ b/ui/i18n/datepicker-sq.js @@ -1,7 +1,17 @@ /* Albanian initialisation for the jQuery UI date picker plugin. */ /* Written by Flakron Bytyqi (flakron@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['sq'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['sq'] = { closeText: 'mbylle', prevText: '<mbrapa', nextText: 'Përpara>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['sq']); -}); + datepicker.setDefaults(datepicker.regional['sq']); + + return datepicker.regional['sq']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-sr-SR.js b/ui/i18n/datepicker-sr-SR.js similarity index 65% rename from ui/i18n/jquery.ui.datepicker-sr-SR.js rename to ui/i18n/datepicker-sr-SR.js index 810d21daaa4..6c2832c39ef 100644 --- a/ui/i18n/jquery.ui.datepicker-sr-SR.js +++ b/ui/i18n/datepicker-sr-SR.js @@ -1,7 +1,17 @@ /* Serbian i18n for the jQuery UI date picker plugin. */ /* Written by Dejan Dimić. */ -jQuery(function($){ - $.datepicker.regional['sr-SR'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['sr-SR'] = { closeText: 'Zatvori', prevText: '<', nextText: '>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['sr-SR']); -}); + datepicker.setDefaults(datepicker.regional['sr-SR']); + + return datepicker.regional['sr-SR']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-sr.js b/ui/i18n/datepicker-sr.js similarity index 70% rename from ui/i18n/jquery.ui.datepicker-sr.js rename to ui/i18n/datepicker-sr.js index 1349a26cfd7..0655bb13718 100644 --- a/ui/i18n/jquery.ui.datepicker-sr.js +++ b/ui/i18n/datepicker-sr.js @@ -1,7 +1,17 @@ /* Serbian i18n for the jQuery UI date picker plugin. */ /* Written by Dejan Dimić. */ -jQuery(function($){ - $.datepicker.regional['sr'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['sr'] = { closeText: 'Затвори', prevText: '<', nextText: '>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['sr']); -}); + datepicker.setDefaults(datepicker.regional['sr']); + + return datepicker.regional['sr']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-sv.js b/ui/i18n/datepicker-sv.js similarity index 67% rename from ui/i18n/jquery.ui.datepicker-sv.js rename to ui/i18n/datepicker-sv.js index cbb5ad135c5..caca1a08334 100644 --- a/ui/i18n/jquery.ui.datepicker-sv.js +++ b/ui/i18n/datepicker-sv.js @@ -1,7 +1,17 @@ /* Swedish initialisation for the jQuery UI date picker plugin. */ /* Written by Anders Ekdahl ( anders@nomadiz.se). */ -jQuery(function($){ - $.datepicker.regional['sv'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['sv'] = { closeText: 'Stäng', prevText: '«Förra', nextText: 'Nästa»', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['sv']); -}); + datepicker.setDefaults(datepicker.regional['sv']); + + return datepicker.regional['sv']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-ta.js b/ui/i18n/datepicker-ta.js similarity index 78% rename from ui/i18n/jquery.ui.datepicker-ta.js rename to ui/i18n/datepicker-ta.js index 40431ed8ec7..8c7fd87486d 100644 --- a/ui/i18n/jquery.ui.datepicker-ta.js +++ b/ui/i18n/datepicker-ta.js @@ -1,7 +1,17 @@ /* Tamil (UTF-8) initialisation for the jQuery UI date picker plugin. */ /* Written by S A Sureshkumar (saskumar@live.com). */ -jQuery(function($){ - $.datepicker.regional['ta'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['ta'] = { closeText: 'மூடு', prevText: 'முன்னையது', nextText: 'அடுத்தது', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['ta']); -}); + datepicker.setDefaults(datepicker.regional['ta']); + + return datepicker.regional['ta']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-th.js b/ui/i18n/datepicker-th.js similarity index 75% rename from ui/i18n/jquery.ui.datepicker-th.js rename to ui/i18n/datepicker-th.js index aecfd27cc06..eb2bf4553fd 100644 --- a/ui/i18n/jquery.ui.datepicker-th.js +++ b/ui/i18n/datepicker-th.js @@ -1,7 +1,17 @@ /* Thai initialisation for the jQuery UI date picker plugin. */ /* Written by pipo (pipo@sixhead.com). */ -jQuery(function($){ - $.datepicker.regional['th'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['th'] = { closeText: 'ปิด', prevText: '« ย้อน', nextText: 'ถัดไป »', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['th']); -}); + datepicker.setDefaults(datepicker.regional['th']); + + return datepicker.regional['th']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-tj.js b/ui/i18n/datepicker-tj.js similarity index 71% rename from ui/i18n/jquery.ui.datepicker-tj.js rename to ui/i18n/datepicker-tj.js index 9a20e4d3794..55a450887b5 100644 --- a/ui/i18n/jquery.ui.datepicker-tj.js +++ b/ui/i18n/datepicker-tj.js @@ -1,7 +1,17 @@ /* Tajiki (UTF-8) initialisation for the jQuery UI date picker plugin. */ /* Written by Abdurahmon Saidov (saidovab@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['tj'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['tj'] = { closeText: 'Идома', prevText: '<Қафо', nextText: 'Пеш>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['tj']); -}); + datepicker.setDefaults(datepicker.regional['tj']); + + return datepicker.regional['tj']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-tr.js b/ui/i18n/datepicker-tr.js similarity index 66% rename from ui/i18n/jquery.ui.datepicker-tr.js rename to ui/i18n/datepicker-tr.js index 75b583a778d..edbc3459a61 100644 --- a/ui/i18n/jquery.ui.datepicker-tr.js +++ b/ui/i18n/datepicker-tr.js @@ -1,7 +1,17 @@ /* Turkish initialisation for the jQuery UI date picker plugin. */ /* Written by Izzet Emre Erkan (kara@karalamalar.net). */ -jQuery(function($){ - $.datepicker.regional['tr'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['tr'] = { closeText: 'kapat', prevText: '<geri', nextText: 'ileri>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['tr']); -}); + datepicker.setDefaults(datepicker.regional['tr']); + + return datepicker.regional['tr']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-uk.js b/ui/i18n/datepicker-uk.js similarity index 73% rename from ui/i18n/jquery.ui.datepicker-uk.js rename to ui/i18n/datepicker-uk.js index 2bdc82ff701..a939a5b1cbc 100644 --- a/ui/i18n/jquery.ui.datepicker-uk.js +++ b/ui/i18n/datepicker-uk.js @@ -1,8 +1,18 @@ /* Ukrainian (UTF-8) initialisation for the jQuery UI date picker plugin. */ /* Written by Maxim Drogobitskiy (maxdao@gmail.com). */ /* Corrected by Igor Milla (igor.fsp.milla@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['uk'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['uk'] = { closeText: 'Закрити', prevText: '<', nextText: '>', @@ -20,5 +30,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['uk']); -}); + datepicker.setDefaults(datepicker.regional['uk']); + + return datepicker.regional['uk']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-vi.js b/ui/i18n/datepicker-vi.js similarity index 72% rename from ui/i18n/jquery.ui.datepicker-vi.js rename to ui/i18n/datepicker-vi.js index b49e7eb130e..a862899f711 100644 --- a/ui/i18n/jquery.ui.datepicker-vi.js +++ b/ui/i18n/datepicker-vi.js @@ -1,7 +1,17 @@ /* Vietnamese initialisation for the jQuery UI date picker plugin. */ /* Translated by Le Thanh Huy (lthanhhuy@cit.ctu.edu.vn). */ -jQuery(function($){ - $.datepicker.regional['vi'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['vi'] = { closeText: 'Đóng', prevText: '<Trước', nextText: 'Tiếp>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['vi']); -}); + datepicker.setDefaults(datepicker.regional['vi']); + + return datepicker.regional['vi']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-zh-CN.js b/ui/i18n/datepicker-zh-CN.js similarity index 68% rename from ui/i18n/jquery.ui.datepicker-zh-CN.js rename to ui/i18n/datepicker-zh-CN.js index d337e4a99ef..16f40996dd8 100644 --- a/ui/i18n/jquery.ui.datepicker-zh-CN.js +++ b/ui/i18n/datepicker-zh-CN.js @@ -1,7 +1,17 @@ /* Chinese initialisation for the jQuery UI date picker plugin. */ /* Written by Cloudream (cloudream@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['zh-CN'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['zh-CN'] = { closeText: '关闭', prevText: '<上月', nextText: '下月>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: true, yearSuffix: '年'}; - $.datepicker.setDefaults($.datepicker.regional['zh-CN']); -}); + datepicker.setDefaults(datepicker.regional['zh-CN']); + + return datepicker.regional['zh-CN']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-zh-HK.js b/ui/i18n/datepicker-zh-HK.js similarity index 68% rename from ui/i18n/jquery.ui.datepicker-zh-HK.js rename to ui/i18n/datepicker-zh-HK.js index ef6f4e715c2..ed9fdf63f3d 100644 --- a/ui/i18n/jquery.ui.datepicker-zh-HK.js +++ b/ui/i18n/datepicker-zh-HK.js @@ -1,7 +1,17 @@ /* Chinese initialisation for the jQuery UI date picker plugin. */ /* Written by SCCY (samuelcychan@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['zh-HK'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['zh-HK'] = { closeText: '關閉', prevText: '<上月', nextText: '下月>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: true, yearSuffix: '年'}; - $.datepicker.setDefaults($.datepicker.regional['zh-HK']); -}); + datepicker.setDefaults(datepicker.regional['zh-HK']); + + return datepicker.regional['zh-HK']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-zh-TW.js b/ui/i18n/datepicker-zh-TW.js similarity index 68% rename from ui/i18n/jquery.ui.datepicker-zh-TW.js rename to ui/i18n/datepicker-zh-TW.js index b9105ea507b..1435481f36b 100644 --- a/ui/i18n/jquery.ui.datepicker-zh-TW.js +++ b/ui/i18n/datepicker-zh-TW.js @@ -1,7 +1,17 @@ /* Chinese initialisation for the jQuery UI date picker plugin. */ /* Written by Ressol (ressol@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['zh-TW'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['zh-TW'] = { closeText: '關閉', prevText: '<上月', nextText: '下月>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: true, yearSuffix: '年'}; - $.datepicker.setDefaults($.datepicker.regional['zh-TW']); -}); + datepicker.setDefaults(datepicker.regional['zh-TW']); + + return datepicker.regional['zh-TW']; + +})); diff --git a/ui/jquery.ui.menu.js b/ui/menu.js similarity index 98% rename from ui/jquery.ui.menu.js rename to ui/menu.js index 8c9f5a9be93..61280251102 100644 --- a/ui/jquery.ui.menu.js +++ b/ui/menu.js @@ -7,15 +7,25 @@ * http://jquery.org/license * * http://api.jqueryui.com/menu/ - * - * Depends: - * jquery.ui.core.js - * jquery.ui.widget.js - * jquery.ui.position.js */ -(function( $, undefined ) { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ + "jquery", + "./core", + "./widget", + "./position" + ], factory ); + } else { + + // Browser globals + factory( jQuery ); + } +}(function( $ ) { -$.widget( "ui.menu", { +return $.widget( "ui.menu", { version: "@VERSION", defaultElement: "
    ", delay: 300, @@ -627,4 +637,4 @@ $.widget( "ui.menu", { } }); -}( jQuery )); +})); diff --git a/ui/jquery.ui.mouse.js b/ui/mouse.js similarity index 94% rename from ui/jquery.ui.mouse.js rename to ui/mouse.js index ce1ecca72da..286b0f44988 100644 --- a/ui/jquery.ui.mouse.js +++ b/ui/mouse.js @@ -7,18 +7,28 @@ * http://jquery.org/license * * http://api.jqueryui.com/mouse/ - * - * Depends: - * jquery.ui.widget.js */ -(function( $, undefined ) { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ + "jquery", + "./widget" + ], factory ); + } else { + + // Browser globals + factory( jQuery ); + } +}(function( $ ) { var mouseHandled = false; $( document ).mouseup( function() { mouseHandled = false; }); -$.widget("ui.mouse", { +return $.widget("ui.mouse", { version: "@VERSION", options: { cancel: "input,textarea,button,select,option", @@ -174,4 +184,4 @@ $.widget("ui.mouse", { _mouseCapture: function(/* event */) { return true; } }); -})(jQuery); +})); diff --git a/ui/jquery.ui.position.js b/ui/position.js similarity index 98% rename from ui/jquery.ui.position.js rename to ui/position.js index f304c1908d4..0017ead79c2 100644 --- a/ui/jquery.ui.position.js +++ b/ui/position.js @@ -8,7 +8,17 @@ * * http://api.jqueryui.com/position/ */ -(function( $, undefined ) { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define( [ "jquery" ], factory ); + } else { + + // Browser globals + factory( jQuery ); + } +}(function( $ ) { (function() { $.ui = $.ui || {}; @@ -498,4 +508,7 @@ $.ui.position = { })(); })(); -}( jQuery ) ); + +return $.ui.position; + +})); diff --git a/ui/jquery.ui.progressbar.js b/ui/progressbar.js similarity index 91% rename from ui/jquery.ui.progressbar.js rename to ui/progressbar.js index 0eaa8b41ec6..fb54b95d675 100644 --- a/ui/jquery.ui.progressbar.js +++ b/ui/progressbar.js @@ -7,14 +7,24 @@ * http://jquery.org/license * * http://api.jqueryui.com/progressbar/ - * - * Depends: - * jquery.ui.core.js - * jquery.ui.widget.js */ -(function( $, undefined ) { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ + "jquery", + "./core", + "./widget" + ], factory ); + } else { + + // Browser globals + factory( jQuery ); + } +}(function( $ ) { -$.widget( "ui.progressbar", { +return $.widget( "ui.progressbar", { version: "@VERSION", options: { max: 100, @@ -146,4 +156,4 @@ $.widget( "ui.progressbar", { } }); -})( jQuery ); +})); diff --git a/ui/jquery.ui.resizable.js b/ui/resizable.js similarity index 98% rename from ui/jquery.ui.resizable.js rename to ui/resizable.js index 636cf41232f..727181d309a 100644 --- a/ui/jquery.ui.resizable.js +++ b/ui/resizable.js @@ -7,13 +7,23 @@ * http://jquery.org/license * * http://api.jqueryui.com/resizable/ - * - * Depends: - * jquery.ui.core.js - * jquery.ui.mouse.js - * jquery.ui.widget.js */ -(function( $, undefined ) { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ + "jquery", + "./core", + "./mouse", + "./widget" + ], factory ); + } else { + + // Browser globals + factory( jQuery ); + } +}(function( $ ) { $.widget("ui.resizable", $.ui.mouse, { version: "@VERSION", @@ -1021,4 +1031,6 @@ $.ui.plugin.add("resizable", "grid", { }); -})(jQuery); +return $.ui.resizable; + +})); diff --git a/ui/jquery.ui.selectable.js b/ui/selectable.js similarity index 95% rename from ui/jquery.ui.selectable.js rename to ui/selectable.js index 7b9d7b209eb..55b882ce7ea 100644 --- a/ui/jquery.ui.selectable.js +++ b/ui/selectable.js @@ -7,15 +7,25 @@ * http://jquery.org/license * * http://api.jqueryui.com/selectable/ - * - * Depends: - * jquery.ui.core.js - * jquery.ui.mouse.js - * jquery.ui.widget.js */ -(function( $, undefined ) { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ + "jquery", + "./core", + "./mouse", + "./widget" + ], factory ); + } else { + + // Browser globals + factory( jQuery ); + } +}(function( $ ) { -$.widget("ui.selectable", $.ui.mouse, { +return $.widget("ui.selectable", $.ui.mouse, { version: "@VERSION", options: { appendTo: "body", @@ -274,4 +284,4 @@ $.widget("ui.selectable", $.ui.mouse, { }); -})(jQuery); +})); diff --git a/ui/jquery.ui.selectmenu.js b/ui/selectmenu.js similarity index 99% rename from ui/jquery.ui.selectmenu.js rename to ui/selectmenu.js index be766010181..37f241de6ea 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/selectmenu.js @@ -16,7 +16,7 @@ */ (function( $, undefined ) { -$.widget( "ui.selectmenu", { +return $.widget( "ui.selectmenu", { version: "@VERSION", defaultElement: "", widgetEventPrefix: "spin", @@ -502,4 +512,4 @@ $.widget( "ui.spinner", { } }); -}( jQuery ) ); +})); diff --git a/ui/jquery.ui.tabs.js b/ui/tabs.js similarity index 98% rename from ui/jquery.ui.tabs.js rename to ui/tabs.js index eb822c11251..2643fae80c1 100644 --- a/ui/jquery.ui.tabs.js +++ b/ui/tabs.js @@ -7,14 +7,24 @@ * http://jquery.org/license * * http://api.jqueryui.com/tabs/ - * - * Depends: - * jquery.ui.core.js - * jquery.ui.widget.js */ -(function( $, undefined ) { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ + "jquery", + "./core", + "./widget" + ], factory ); + } else { + + // Browser globals + factory( jQuery ); + } +}(function( $ ) { -$.widget( "ui.tabs", { +return $.widget( "ui.tabs", { version: "@VERSION", delay: 300, options: { @@ -855,4 +865,4 @@ $.widget( "ui.tabs", { } }); -})( jQuery ); +})); diff --git a/ui/jquery.ui.tooltip.js b/ui/tooltip.js similarity index 97% rename from ui/jquery.ui.tooltip.js rename to ui/tooltip.js index 274bcebdfe3..565d4f9e74c 100644 --- a/ui/jquery.ui.tooltip.js +++ b/ui/tooltip.js @@ -7,15 +7,25 @@ * http://jquery.org/license * * http://api.jqueryui.com/tooltip/ - * - * Depends: - * jquery.ui.core.js - * jquery.ui.widget.js - * jquery.ui.position.js */ -(function( $ ) { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ + "jquery", + "./core", + "./widget", + "./position" + ], factory ); + } else { + + // Browser globals + factory( jQuery ); + } +}(function( $ ) { -$.widget( "ui.tooltip", { +return $.widget( "ui.tooltip", { version: "@VERSION", options: { content: function() { @@ -431,4 +441,4 @@ $.widget( "ui.tooltip", { } }); -}( jQuery ) ); +})); diff --git a/ui/jquery.ui.widget.js b/ui/widget.js similarity index 98% rename from ui/jquery.ui.widget.js rename to ui/widget.js index b62b877f7b3..2486610ef84 100644 --- a/ui/jquery.ui.widget.js +++ b/ui/widget.js @@ -8,7 +8,17 @@ * * http://api.jqueryui.com/jQuery.widget/ */ -(function( $, undefined ) { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define( [ "jquery" ], factory ); + } else { + + // Browser globals + factory( jQuery ); + } +}(function( $ ) { var widget_uuid = 0, widget_slice = Array.prototype.slice; @@ -529,4 +539,6 @@ $.each( { show: "fadeIn", hide: "fadeOut" }, function( method, defaultEffect ) { }; }); -})( jQuery ); +return $.widget; + +}));