Commit 769042fc authored by Julia Radzhabova's avatar Julia Radzhabova

Window: add alert without footer and close button.

parent 2bb4486c
......@@ -410,23 +410,21 @@ define([
'</div>' +
'</div>' +
'<% if (dontshow) { %><div class="separator horizontal" style="width: 100%;"/><% } %>' +
'<div class="footer <% if (dontshow) { %> dontshow <% } %>">' +
'<% if (_.size(buttons) > 0) { %>' +
'<div class="footer <% if (dontshow) { %> dontshow <% } %>">' +
'<% for(var bt in buttons) { %>' +
'<button class="btn normal dlg-btn <%= buttons[bt].cls %>" result="<%= bt %>"><%= buttons[bt].text %></button>'+
'<% } %>' +
'<% } else { %>' +
'<button class="btn normal dlg-btn primary" result="ok">OK</button>'+
'<% } %>' +
'</div>';
'</div>' +
'<% } %>';
var win = new Common.UI.Window({
_.extend(options, {
cls: 'alert',
title: options.title,
width: options.width,
onprimary: onKeyDown,
tpl: _.template(template, options)
}),
});
var win = new Common.UI.Window(options),
chDontShow = null;
function autoSize(window) {
......
Markdown is supported
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