Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
Latest commit dec871f Jan 3, 2018 History
0 contributors

Users who have contributed to this file

34 lines (30 sloc) 623 Bytes
/**
* jQuery error handler
*
* Requires:
* jQuery and jQuery UI
*/
(function ($) {
"use strict";
$(document).ready(function () {
// set up hidden error dialog
var errorDialogID = "error-dialog";
var errorDialog = $('<div/>')
.css('display', 'hidden')
.attr({
'id': errorDialogID,
'title': 'ERROR!'
})
.appendTo('body').dialog({
'autoOpen': false,
'resizable': false,
'modal': true,
'width': 400
});
// display a message in the dialog
$.displayErrorMsg = function (msg) {
$('#' + errorDialogID).text(msg);
errorDialog.dialog("open");
};
});
}(jQuery));