Fixes oops in dialog code

pull/39/head
Ruben Daniels 2015-02-17 18:13:36 +00:00
rodzic 854d1b7aa0
commit 6490a22d8d
1 zmienionych plików z 2 dodań i 4 usunięć

Wyświetl plik

@ -79,9 +79,6 @@ define(function(require, module, exports) {
var widths = options.widths || {};
var count = 0;
if (custom === undefined)
custom = !(body || heading);
var dialog, buttons, titles;
var loaded;
@ -183,7 +180,8 @@ define(function(require, module, exports) {
implementation();
// Update UI
if (!custom && (heading || body)) {
var custom = options.custom || !(heading || body);
if (!custom) {
titles.$int.innerHTML = "<h3 style='margin:0 0 10px 0'>"
+ heading + "</h3><div class='alertMsg'>"
+ body + "</div>";