![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
bootstrap-dialogs
Advanced tools
Asynchronous modal dialogs for the synchronous window.alert
, window.confirm
and window.prompt
, styled and managed by Twitter Bootstrap.
Pretty similar to Bootbox, yet using
jQuery's Deferred objects.
alert
, confirm
and prompt
all support custom title and body. Additionally,
they support setting the button text and severity (default and danger at the moment).
// Alert dialog with custom title and body
Bootstrap.Dialogs.alert({ title: 'Alert title', body: 'Alert body' })
.done(function () {
...
});
// Confirm dialog with default text
Bootstrap.Dialogs.confirm()
.done(function () {
...
})
.fail(function () {
...
});
// Prompt dialog with custom title and body
Bootstrap.Dialogs.prompt({ title: 'What is your name?', body: 'Please enter your name' })
.done(function (name) {
...
})
.fail(function () {
...
});
// Confirm dialog with custom button text
Bootstrap.Dialogs.confirm({ ok: 'Confirm', cancel: 'Abort' });
// Critical alert dialog
Bootstrap.Dialogs.alert({ danger: true });
TL;DR: npm install && npm test
Install Node and Npm using your packet manager of choice.
Install development dependencies:
npm install
Build and run the tests:
npm test
Start a development cycle listening for changes to files running a simple static server, CoffeeScript linting + compilation, and the test suite:
npm start
To see the examples in action, issue npm install && npm start
and access
http://localhost:8000/examples/.
In order to upgrade the distribution files bundled in the repo, run npm run-script dist
.
Release notes
package.json
and bower.json
version numbersnpm run dist
to update all distribution sourcesgit tag -a <tag>
with the appropriate version numbernoButtons
with lock
option.noButtons
option to .dialog.return
option to allow confirm dialogs to optionally be
resolvable by pressing the return key.Distrubuted under the ISC license. Please refer to the LICENSE.
FAQs
Twitter Bootstrap Modal Dialogs
The npm package bootstrap-dialogs receives a total of 1 weekly downloads. As such, bootstrap-dialogs popularity was classified as not popular.
We found that bootstrap-dialogs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.