cf1961d48a87b682066446694611e9024fb3e02e0715a1ed861c4204f9019eb0be6868b0793444c0828d365a7c38e1bab86999d7e8aa71975ff4475359a96f 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. ### Latest Release: 4.4.0
  2. * Allow `backdrop` options of `true` and `false` to dismiss modals
  3. * Pass dialog as `this` value in callbacks
  4. * Bootstrap 3.3.2 compatibility
  5. * jQuery 1.11.2 compatibility
  6. * Add support for `maxlength` prompt input attribute
  7. * Gracefully detect lack of Bootstrap library rather than crashing
  8. * Expose `addLocale` and `removeLocale` for custom locale settings
  9. * Expose `setLocale` helper to select a locale rather than using `setDefaults("locale", ...)`
  10. * Add Hungarian locale
  11. * Add Croatian locale
  12. * Add Bulgarian locale
  13. * Add Thai locale
  14. * Add Persian locale
  15. * Add Albanian locale
  16. ## 4.3.0
  17. * Add `size` option (large, small)
  18. * Stop propagation on form submit
  19. * Return bootbox object from `hideAll`
  20. * Add Portuguese locale
  21. * Add Czech locale
  22. * Add Greek locale
  23. * Add Estonian locale
  24. * Add Indonesian locale
  25. * Add Japanese locale
  26. ### 4.2.0
  27. * Add Swedish locale
  28. * Add Latvian locale
  29. * Add Turkish locale
  30. * Add Hebrew locale
  31. * Add password input type
  32. * Add textarea input type
  33. * Add date input type
  34. * Add time input type
  35. * Add number input type
  36. * Support DOM selectors for container argument
  37. * UMD support
  38. * Better support on mobile devices
  39. ### 4.1.0
  40. * Add support for placeholder attribute in prompts
  41. * Add select, email and checkbox types for prompts (thanks [@tarlepp](https://github.com/tarlepp))
  42. * Add Norwegian locale
  43. * Allow setDefaults to take two key/val arguments
  44. * Add unique classes for main dialog methods
  45. * Create bower package
  46. ### 4.0.0
  47. * Bootstrap 3.0.0 compatibility
  48. * Complete rewrite (and new public API)
  49. * Use strict mode
  50. * Add close buttons to wrapper methods (GH-92)
  51. * Allow dialog titles to be specified (GH-51, GH-112)
  52. * Allow optional extra class on dialog wrapper (GH-116)
  53. * Fix ```backdrop: true``` not firing close handler (GH-77)
  54. * Replace various configuration methods with one ```setDefaults```
  55. ### 3.3.0
  56. * Add Polish translation (GH-93)
  57. * Add Danish translation (GH-96)
  58. * Pass event object to custom callbacks (GH-103)
  59. * Add Chinese (Taiwan / China) translations (GH-106)
  60. * Make prompt input block-level (GH-111)
  61. * Add link: true option to prevent btn class from being applied (GH-114)
  62. * Prevent child elements triggering hidden callback (GH-115)
  63. * Replace Phing with Grunt
  64. * Replace Closure compiler with UglifyJS
  65. ### 3.2.0
  66. * ensure ```onEscape``` handlers return callback values properly (GH-91)
  67. * ensure clicking close button invokes onEscape handler if present
  68. ### 3.1.0
  69. * ensure ```confirm``` and ```prompt``` methods return callback values properly (GH-90)
  70. * address various jshint warnings (GH-79)
  71. * add ```setBtnClasses``` method for custom standard button classes (GH-87)
  72. ### 3.0.0
  73. * bump Bootstrap dependency to 2.2.2
  74. * bump jQuery dependency to 1.8.3
  75. * ensure callbacks are always invoked even if dialogs are dismissed with escape key (GH-49)
  76. * fix button positions with Bootstrap 2.2.2 (GH-58)
  77. * stop multiple dialogs crashing browsers (GH-60, GH-64)
  78. * ensure ```shown``` event is fired properly even when animation is disabled (GH-69)
  79. * use ```.on``` instead of ```.bind```
  80. * commentify code a bit more
  81. ### 2.5.1
  82. **This was the last version of the library to support Bootstrap 2.0.x**
  83. * ensure bootbox object is explicitly added to window object for minfier visibility
  84. ### 2.5.0
  85. * add option to specify proper href attributes for buttons instead of callbacks (@StevePotter)
  86. * add option to override per-modal classes (@ciaranj)
  87. ### 2.4.2
  88. * revert ```backdrop``` default value to 'static' instead of ```true``` to prevent background clicks dismissing dialogs (GH-55)
  89. ### 2.4.1
  90. * fix ```backdrop``` when supplied as an argument to ```bootbox.dialog```
  91. * fix incorrect README version
  92. ### 2.4.0
  93. * add ```bootbox.backdrop(bool)``` method (@gucki)
  94. * add default parameter option to ```bootbox.prompt``` (@pzgz)
  95. ### 2.3.3
  96. * add inline ```overflow: hidden``` CSS property (GH-46)
  97. * move license info to separate hosted file to reduce file size
  98. ### 2.3.2
  99. * Change button href attributes to ```javascript:;``` (@joshnesbitt)
  100. * Explicitly ```window.jQuery``` through to ```Bootbox``` object (@nuegon)
  101. ### 2.3.1
  102. * Ensure bootbox.prompt() gives focus to input, disable input autocomplete
  103. ### 2.3.0
  104. * Added bootbox.prompt() to mimic native prompt() method
  105. * Added Russian locale (#27)
  106. ### 2.2.0
  107. * Allowed button callbacks to explicitly return false to prevent dialog from closing (thanks @benoit-ponsero)
  108. * Added version number to header comments (#26)
  109. ### 2.1.2
  110. * Added close button to re-scoped click handler (thanks @SeanMcGee and @kentbrew)
  111. ### 2.1.1
  112. * Fixed incorrect button click handler selector (thanks FGRibreau)
  113. ### 2.1.0
  114. * Added support for Bootstrap's Glyphicons via the ```icon``` option
  115. * Added inline license information into bootbox.js and bootbox.min.js
  116. * Tidied up source a little
  117. ### 2.0.1
  118. * Removed dummy Google Closure Compiler method from minified library (thanks j0k3r!)
  119. ### 2.0.0
  120. * Updated Bootstrap dependency from 1.4 to 2.0
  121. * Class definitions now require ```btn-``` prefix as per Bootstrap 2.0
  122. * Added Brazilian locale
  123. * Added ```animate``` dialog option
  124. * Added ```bootbox.animate(bool)``` option to set default animation preference
  125. * Animated dialogs now rely on ```bootstrap-transitions.js``` as required by Bootstrap 2.0
  126. ### 1.1.2
  127. * Added licensing information to README
  128. #### 1.1.1
  129. * Updated german locale
  130. #### 1.1.0
  131. * Secondary option of two-button dialog no longer has 'danger' class
  132. * New bootbox.modal() method for generic non-dialog popups
  133. * Allow jQuery objects to be passed as main dialog argument