Trying to reproduce z-index failure.
by mark69_fnd
HTML
<div id="dt"></div>
JavaScript
YUI.add('dialog-fn', function (Y) {
"use strict";
Y.createDialog = (function () {
function setDefault(config, key, def) {
if (config[key] === undefined) {
config[key] = def;
}
}
return function (config) {
var panel;
if (!config.contentBox && !config.srcNode) {
config.contentBox = Y.Node.create('<div/>');
}
setDefault(config, 'centered', true);
setDefault(config, 'modal', true);
setDefault(config, 'zIndex', 100);
setDefault(config, 'hideOn', []);
setDefault(config, 'visible', true);
setDefault(config, 'render', true);
if (config.headerContent) {
setDefault(config, 'plugins', [Y.Plugin.Drag]);
}
panel = new Y.Panel(config);
if (panel.dd) {
panel.dd.addHandle('.yui3-widget-hd');
}
return panel;
};
}());
}, '0.1', {requires: ['dd-plugin', 'panel']});
YUI.add('alert-error', function (Y) {
"use strict";
var errorMessageTemplate = Y.Handlebars.compile('<div class="message icon-error">{{&message}}{{#if code}}<br/><br/>(Error code {{code}}){{/if}}</div>'),
errorMessageListTemplate = Y.Handlebars.compile('<div class="message icon-error">' +
' <ul class="errorMessageList">' +
' {{#each message}}' +
' <li>{{this}}</li>' +
' {{/each}}' +
' </ul>' +
' {{#if code}}' +
' <br/><br/>(Error code {{code}})' +
' {{/if}}' +
'</div>');
// Recognized objects:
// 'error message'
// Error object
// XMLHttpRequest
// {caption: 'caption', code: number, message: 'error message'}
// {caption: 'caption', code: number, message: ['error message']}
// {caption: 'caption', code: number, message: [{key: 'error message'}]}
Y.alertError = (function () {
function open(body, caption) {
var panel = Y.createDialog({
headerContent: caption || 'Error',
bodyContent: body,
render: '#footer',
buttons: {footer: [
...