提交 | 用户 | 时间
|
58d006
|
1 |
# Bootbox - Twitter Bootstrap powered alert, confirm and flexible dialog boxes |
A |
2 |
|
|
3 |
Please see http://bootboxjs.com for full usage instructions, or head over to http://paynedigital.com/bootbox for |
|
4 |
the original writeup about the project. |
|
5 |
|
|
6 |
## Contact |
|
7 |
|
|
8 |
The easiest thing is to [find me on twitter @makeusabrew](http://twitter.com/makeusabrew). |
|
9 |
|
|
10 |
## Contributing |
|
11 |
|
|
12 |
Please see the [CONTRIBUTING](https://github.com/makeusabrew/bootbox/blob/master/CONTRIBUTING.md) file for guidelines. |
|
13 |
|
|
14 |
## Running Tests [![Build Status](https://api.travis-ci.org/makeusabrew/bootbox.png)](http://travis-ci.org/makeusabrew/bootbox) |
|
15 |
|
|
16 |
Tests are run using [Karma](http://karma-runner.github.io/0.8/index.html) using the Mocha test adapter. |
|
17 |
To run the tests yourself, simply run ```npm install``` within the project followed by ```npm test```. |
|
18 |
Please note that this will require [PhantomJS](http://phantomjs.org/) being installed and in your path - if |
|
19 |
it is not, you may run the tests and capture browsers manually by running ```karma start``` from the root |
|
20 |
of the project. |
|
21 |
|
|
22 |
The project is also hosted on [Travis CI](https://travis-ci.org/makeusabrew/bootbox) - when submitting |
|
23 |
pull requests **please** ensure your tests pass as failing requests will be rejected. See the |
|
24 |
[CONTRIBUTING](https://github.com/makeusabrew/bootbox/blob/master/CONTRIBUTING.md) file for more information. |
|
25 |
|
|
26 |
## Building a minified release |
|
27 |
|
|
28 |
The repository no longer contains a minified bootbox.min.js file - this is now only generated |
|
29 |
[for releases](https://github.com/makeusabrew/bootbox/releases). To build your own minified copy |
|
30 |
for use in development simply run ```npm install``` if you haven't already, followed by ```grunt uglify```. |
|
31 |
This will generate a bootbox.min.js file in your working directory. |
|
32 |
|
|
33 |
## A note on Bootstrap dependencies |
|
34 |
|
|
35 |
Bootbox **4.0.0** is the first release to support Bootstrap 3.0.0. |
|
36 |
|
|
37 |
Bootbox **3.3.0** is the *last* release to support Bootstrap 2.2.x. |
|
38 |
|
|
39 |
Much more dependency information can be found [on the Bootbox website](http://bootboxjs.com/#dependencies). |
|
40 |
|
|
41 |
### Roadmap |
|
42 |
|
|
43 |
The latest major release of Bootbox - 4.0.0 - involved a total rewrite of the |
|
44 |
internal code and introduced an entirely new public API. It has not re-implemented |
|
45 |
some functionality from the 3.x series as of yet; this will be addressed in the |
|
46 |
coming weeks in the form of new minor releases; |
|
47 |
[a task list for 4.2.0 is available](https://github.com/makeusabrew/bootbox/issues/162) - |
|
48 |
please feel free to add feedback and requests. |
|
49 |
|
|
50 |
There is no new major (e.g. 5.x) release on the roadmap at present. |
|
51 |
|
|
52 |
## Latest Release: 4.1.0 |
|
53 |
|
|
54 |
* Add support for placeholder attribute in prompts |
|
55 |
* Add select, email and checkbox types for prompts (thanks [@tarlepp](https://github.com/tarlepp)) |
|
56 |
* Add Norwegian locale |
|
57 |
* Allow setDefaults to take two key/val arguments |
|
58 |
* Add unique classes for main dialog methods |
|
59 |
* Create bower package |
|
60 |
|
|
61 |
For a full list of releases and changes please see [the changelog](https://github.com/makeusabrew/bootbox/blob/master/CHANGELOG.md). |
|
62 |
|
|
63 |
## License |
|
64 |
|
|
65 |
(The MIT License) |
|
66 |
|
|
67 |
Copyright (C) 2011-2013 by Nick Payne <nick@kurai.co.uk> |
|
68 |
|
|
69 |
Permission is hereby granted, free of charge, to any person obtaining a copy |
|
70 |
of this software and associated documentation files (the "Software"), to deal |
|
71 |
in the Software without restriction, including without limitation the rights |
|
72 |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
73 |
copies of the Software, and to permit persons to whom the Software is |
|
74 |
furnished to do so, subject to the following conditions: |
|
75 |
|
|
76 |
The above copyright notice and this permission notice shall be included in |
|
77 |
all copies or substantial portions of the Software. |
|
78 |
|
|
79 |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
80 |
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
81 |
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
|
82 |
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
83 |
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
|
84 |
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
|
85 |
THE SOFTWARE |