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
Hide 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
...
...
@@ -400,7 +400,7 @@ define([
}
}
options
.
dontshow
=
options
.
dontshow
||
false
;
if
(
!
options
.
width
)
options
.
width
=
'
auto
'
;
var
template
=
'
<div class="info-box">
'
+
...
...
@@ -410,24 +410,22 @@ define([
'
</div>
'
+
'
</div>
'
+
'
<% 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) { %>
'
+
'
<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
)
}),
chDontShow
=
null
;
});
var
win
=
new
Common
.
UI
.
Window
(
options
),
chDontShow
=
null
;
function
autoSize
(
window
)
{
var
text_cnt
=
window
.
getChild
(
'
.info-box
'
);
...
...
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