Commit 66b36908 authored by Rafael Ostertag's avatar Rafael Ostertag
Browse files

use `.focus` configuration option.

parent ecd84cc2
......@@ -23,7 +23,7 @@
<script>
$(function () {
$('#showalert1').click(function () {
var alert = new QfqNS.Alert("This is alert 1", 'error', [{label: "OK", eventName: "ok"},
var alert = new QfqNS.Alert("This is alert 1", 'error', [{label: "OK", eventName: "ok", focus: true},
{label: "Cancel", eventName: "cancel"}]);
alert.on('alert.ok', function () {
console.log("OK button alert 1");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment