Window: add alert without footer and close button.
This commit is contained in:
parent
2bb4486c72
commit
769042fc93
|
@ -410,23 +410,21 @@ define([
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'<% if (dontshow) { %><div class="separator horizontal" style="width: 100%;"/><% } %>' +
|
'<% if (dontshow) { %><div class="separator horizontal" style="width: 100%;"/><% } %>' +
|
||||||
'<div class="footer <% if (dontshow) { %> dontshow <% } %>">' +
|
|
||||||
'<% if (_.size(buttons) > 0) { %>' +
|
'<% if (_.size(buttons) > 0) { %>' +
|
||||||
|
'<div class="footer <% if (dontshow) { %> dontshow <% } %>">' +
|
||||||
'<% for(var bt in buttons) { %>' +
|
'<% for(var bt in buttons) { %>' +
|
||||||
'<button class="btn normal dlg-btn <%= buttons[bt].cls %>" result="<%= bt %>"><%= buttons[bt].text %></button>'+
|
'<button class="btn normal dlg-btn <%= buttons[bt].cls %>" result="<%= bt %>"><%= buttons[bt].text %></button>'+
|
||||||
'<% } %>' +
|
'<% } %>' +
|
||||||
'<% } else { %>' +
|
'</div>' +
|
||||||
'<button class="btn normal dlg-btn primary" result="ok">OK</button>'+
|
'<% } %>';
|
||||||
'<% } %>' +
|
|
||||||
'</div>';
|
|
||||||
|
|
||||||
var win = new Common.UI.Window({
|
_.extend(options, {
|
||||||
cls: 'alert',
|
cls: 'alert',
|
||||||
title: options.title,
|
|
||||||
width: options.width,
|
|
||||||
onprimary: onKeyDown,
|
onprimary: onKeyDown,
|
||||||
tpl: _.template(template, options)
|
tpl: _.template(template, options)
|
||||||
}),
|
});
|
||||||
|
|
||||||
|
var win = new Common.UI.Window(options),
|
||||||
chDontShow = null;
|
chDontShow = null;
|
||||||
|
|
||||||
function autoSize(window) {
|
function autoSize(window) {
|
||||||
|
|
Loading…
Reference in a new issue