Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
internship
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Skripnikov
internship
Commits
2aaa9b5a
Commit
2aaa9b5a
authored
Feb 07, 2018
by
Alina Habibulina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+ blue message
parent
03942d7d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
7 deletions
+44
-7
src/main/webapp/css/beau.css
src/main/webapp/css/beau.css
+21
-1
src/main/webapp/index.html
src/main/webapp/index.html
+6
-0
src/main/webapp/js/Player.js
src/main/webapp/js/Player.js
+17
-6
No files found.
src/main/webapp/css/beau.css
View file @
2aaa9b5a
...
...
@@ -111,6 +111,26 @@
border-radius
:
50%
;
background
:
#49b785
;
position
:
absolute
;
z-index
:
10000
;
z-index
:
1000
;
}
#rectangle
{
width
:
300px
;
height
:
50px
;
position
:
absolute
;
top
:
30px
;
left
:
530px
;
z-index
:
10
;
background
:
#F0FFFF
;
border-style
:
solid
solid
solid
solid
;
border-radius
:
10px
;
border-width
:
4px
;
border-color
:
#B0C4DE
;
}
#msg
{
font-family
:
"Сomic Sans MS"
;
font-size
:
16px
;
position
:
relative
;
top
:
34%
;
}
src/main/webapp/index.html
View file @
2aaa9b5a
...
...
@@ -30,5 +30,11 @@
</div>
</div>
</div>
<!--MsgRect-->
<div
class=
"MsgRect"
>
<div
id=
"rectangle"
>
<div
class=
"msg"
id=
"msg"
align=
"center"
></>
</div>
</div>
</body>
</html>
\ No newline at end of file
src/main/webapp/js/Player.js
View file @
2aaa9b5a
...
...
@@ -3,7 +3,6 @@
AS
.
OPTIONS
.
locale
=
"
ru
"
;
AS
.
OPTIONS
.
coreUrl
=
"
http://intern-dev.arta.kz/Synergy/
"
;
function
CreateAuthForm
(){
$
(
"
.saveBtn
"
).
hide
();
...
...
@@ -59,6 +58,17 @@ function CreateAuthForm(){
authFunc
();
};
function
ShowMessage
(
message
){
if
(
message
.
length
>
30
){
$
(
"
.msg
"
).
css
({
'
top
'
:
'
20%
'
})
}
else
$
(
"
.msg
"
).
css
({
'
top
'
:
'
34%
'
})
$
(
"
.MsgRect
"
).
show
();
document
.
getElementById
(
"
msg
"
).
innerHTML
=
message
;
setTimeout
(
function
(){
$
(
"
.MsgRect
"
).
hide
();
},
3000
);
};
var
portal
=
{
player
:
null
,
...
...
@@ -74,11 +84,11 @@ var portal = {
AS
.
FORMS
.
ApiUtils
.
simpleAsyncGet
(
'
rest/api/registry/create_doc?registryCode=registry_timesheets
'
,
function
(
result
){
if
(
result
.
errorCode
!=
"
0
"
)
{
AS
.
SERVICES
.
hideWaitWindow
();
alert
(
"
Ошибка во время создания документа..
"
);
ShowMessage
(
"
Ошибка во время создания документа..
"
);
return
;
}
else
{
AS
.
SERVICES
.
hideWaitWindow
();
alert
(
"
Документ успешно создан!
"
);
ShowMessage
(
"
Документ успешно создан!
"
);
portal
.
player
.
view
.
setEditable
(
true
);
portal
.
player
.
showFormData
(
result
.
documentID
,
0
,
result
.
dataUUID
);
portal
.
player
.
view
.
appendTo
(
$
(
'
#form_player_div
'
));
...
...
@@ -89,7 +99,7 @@ var portal = {
var
errors
=
portal
.
player
.
model
.
getErrors
();
if
(
errors
.
length
>
0
)
{
AS
.
SERVICES
.
hideWaitWindow
();
alert
(
"
Введите все обязательные поля
"
);
ShowMessage
(
"
Введите все обязательные поля
"
);
return
;
}
...
...
@@ -97,10 +107,10 @@ var portal = {
portal
.
player
.
saveFormData
(
function
(
data
){
if
(
_
.
isUndefined
(
data
)){
AS
.
SERVICES
.
hideWaitWindow
();
alert
(
"
Во время сохранения данных возникла ошибка
"
);
ShowMessage
(
"
Во время сохранения данных возникла ошибка
"
);
}
else
{
AS
.
SERVICES
.
hideWaitWindow
();
alert
(
"
Данные сохранены
"
);
ShowMessage
(
"
Данные сохранены
"
);
}
});
}
...
...
@@ -179,6 +189,7 @@ $(document).ready(function(){
$
(
"
.error
"
).
hide
();
$
(
"
.saveBtn
"
).
hide
();
$
(
"
.container
"
).
hide
();
$
(
"
.MsgRect
"
).
hide
();
$
(
"
.saveBtn
"
).
on
(
"
click
"
,
function
(
event
){
AS
.
SERVICES
.
showWaitWindow
();
...
...
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