Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
minerva
core
Commits
404c48a2
Commit
404c48a2
authored
7 years ago
by
Piotr Gawron
Browse files
Options
Downloads
Patches
Plain Diff
dialog style imrpoved
parent
5428d6fe
No related branches found
No related tags found
1 merge request
!31
Resolve "Login"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend-js/src/main/js/gui/LoginDialog.js
+7
-20
7 additions, 20 deletions
frontend-js/src/main/js/gui/LoginDialog.js
with
7 additions
and
20 deletions
frontend-js/src/main/js/gui/LoginDialog.js
+
7
−
20
View file @
404c48a2
...
...
@@ -18,7 +18,7 @@ function LoginDialog(params) {
autoOpen
:
false
,
resizable
:
false
,
});
var
loginButton
=
self
.
getControlElement
(
PanelControlElementType
.
USER_TAB_LOGIN_BUTTON
);
loginButton
.
onclick
=
function
()
{
var
login
=
self
.
getControlElement
(
PanelControlElementType
.
USER_TAB_LOGIN_INPUT_TEXT
).
value
;
...
...
@@ -26,7 +26,7 @@ function LoginDialog(params) {
return
ServerConnector
.
login
(
login
,
password
).
then
(
function
()
{
window
.
location
.
reload
(
false
);
}).
then
(
null
,
function
(
error
){
}).
then
(
null
,
function
(
error
)
{
if
(
error
instanceof
InvalidCredentialsError
)
{
GuiConnector
.
alert
(
"
invalid credentials
"
);
}
else
{
...
...
@@ -34,7 +34,7 @@ function LoginDialog(params) {
}
});
};
}
LoginDialog
.
prototype
=
Object
.
create
(
AbstractGuiElement
.
prototype
);
...
...
@@ -59,25 +59,12 @@ LoginDialog.prototype.createTableRow = function(elements) {
LoginDialog
.
prototype
.
_createLoginTab
=
function
()
{
var
self
=
this
;
var
loginTabDiv
=
Functions
.
createElement
({
type
:
"
div
"
,
name
:
"
userLoginTab
"
,
className
:
"
searchPanel
"
});
this
.
getElement
().
appendChild
(
loginTabDiv
);
this
.
setControlElement
(
PanelControlElementType
.
USER_TAB_LOGIN_DIV
,
loginTabDiv
);
var
authirizationTitle
=
Functions
.
createElement
({
type
:
"
h5
"
,
content
:
"
AUTHORIZATION FORM:
"
});
loginTabDiv
.
appendChild
(
authirizationTitle
);
var
authorizationFormTab
=
Functions
.
createElement
({
type
:
"
div
"
,
style
:
"
width:100%;display: table;border-spacing: 10px;
"
});
loginTabDiv
.
appendChild
(
authorizationFormTab
);
this
.
getElement
()
.
appendChild
(
authorizationFormTab
);
var
loginLabel
=
Functions
.
createElement
({
type
:
"
div
"
,
...
...
@@ -95,7 +82,7 @@ LoginDialog.prototype._createLoginTab = function() {
var
passwordLabel
=
Functions
.
createElement
({
type
:
"
div
"
,
content
:
"
LOGIN
:
"
content
:
"
PASSWORD
:
"
});
var
passwordInput
=
Functions
.
createElement
({
type
:
"
input
"
,
...
...
@@ -110,7 +97,7 @@ LoginDialog.prototype._createLoginTab = function() {
var
centerTag
=
Functions
.
createElement
({
type
:
"
center
"
});
loginTabDiv
.
appendChild
(
centerTag
);
this
.
getElement
()
.
appendChild
(
centerTag
);
var
loginButton
=
Functions
.
createElement
({
type
:
"
button
"
,
...
...
@@ -124,7 +111,7 @@ LoginDialog.prototype._createLoginTab = function() {
LoginDialog
.
prototype
.
open
=
function
()
{
var
self
=
this
;
$
(
self
.
getElement
()).
dialog
(
'
option
'
,
'
title
'
,
'
AUTHORIZATION FORM
'
);
$
(
self
.
getElement
()).
dialog
(
"
open
"
);
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment