Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
web-apps
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
web-apps
Commits
769042fc
Commit
769042fc
authored
Aug 29, 2016
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Window: add alert without footer and close button.
parent
2bb4486c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
+10
-12
apps/common/main/lib/component/Window.js
apps/common/main/lib/component/Window.js
+10
-12
No files found.
apps/common/main/lib/component/Window.js
View file @
769042fc
...
@@ -410,23 +410,21 @@ define([
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment