Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mytime
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Narendar Vakiti
mytime
Commits
27627f50
Commit
27627f50
authored
Jul 27, 2018
by
ssathu-nisum-com
Committed by
rbonthala-nisum-com
Jul 27, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Errormessage_or_Warningmessage_is_not_displayed (#75)
parent
88eb83a8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
4 deletions
+13
-4
AssignRolesController.js
src/main/webapp/WEB-INF/controllers/AssignRolesController.js
+1
-1
DomainController.js
src/main/webapp/WEB-INF/controllers/DomainController.js
+2
-2
ProjectTeamController.js
src/main/webapp/WEB-INF/controllers/ProjectTeamController.js
+10
-1
No files found.
src/main/webapp/WEB-INF/controllers/AssignRolesController.js
View file @
27627f50
...
@@ -409,7 +409,7 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
...
@@ -409,7 +409,7 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
var
totalFields
=
$scope
.
myForm
.
$$controls
;
var
totalFields
=
$scope
.
myForm
.
$$controls
;
for
(
key
in
totalFields
)
{
for
(
key
in
totalFields
)
{
console
.
log
(
"Model value of"
+
key
+
" ==>"
+
totalFields
[
key
].
$modelValue
)
console
.
log
(
"Model value of"
+
key
+
" ==>"
+
totalFields
[
key
].
$modelValue
)
if
(
totalFields
[
key
].
$modelValue
!==
''
&&
totalFields
[
key
].
$modelValue
!==
undefined
&&
totalFields
[
key
].
$modelValue
.
length
!==
0
)
{
if
(
totalFields
[
key
].
$modelValue
!==
''
&&
totalFields
[
key
].
$modelValue
!==
undefined
)
{
console
.
log
(
"Came here!"
);
console
.
log
(
"Came here!"
);
showConfirmDialog
=
true
;
showConfirmDialog
=
true
;
}
}
...
...
src/main/webapp/WEB-INF/controllers/DomainController.js
View file @
27627f50
...
@@ -235,9 +235,9 @@ myApp.controller("domainController",
...
@@ -235,9 +235,9 @@ myApp.controller("domainController",
var
allAccounts
=
myFactory
.
getAccounts
();
var
allAccounts
=
myFactory
.
getAccounts
();
function
getActiveAccounts
(){
function
getActiveAccounts
(){
var
activeAccounts
=
[];
var
activeAccounts
=
[];
for
(
i
in
allAccounts
){
for
(
var
i
in
allAccounts
){
console
.
log
(
allAccounts
[
i
]);
console
.
log
(
allAccounts
[
i
]);
if
(
allAccounts
[
i
].
status
==
"Y"
){
if
(
allAccounts
[
i
].
status
==
"
Active"
||
allAccounts
[
i
].
status
==
"
Y"
){
activeAccounts
.
push
(
allAccounts
[
i
]);
activeAccounts
.
push
(
allAccounts
[
i
]);
}
}
}
}
...
...
src/main/webapp/WEB-INF/controllers/ProjectTeamController.js
View file @
27627f50
...
@@ -716,7 +716,16 @@ myApp.controller("projectTeamController",function($scope, myFactory, $mdDialog,
...
@@ -716,7 +716,16 @@ myApp.controller("projectTeamController",function($scope, myFactory, $mdDialog,
};
};
$scope
.
cancel
=
function
()
{
$scope
.
cancel
=
function
()
{
if
(
this
.
myForm
.
$dirty
){
var
showConfirmDialog
=
false
;
var
totalFields
=
$scope
.
myForm
.
$$controls
;
for
(
key
in
totalFields
)
{
console
.
log
(
"Model value of"
+
key
+
" ==>"
+
totalFields
[
key
].
$modelValue
)
if
(
totalFields
[
key
].
$modelValue
!==
''
&&
totalFields
[
key
].
$modelValue
!==
undefined
)
{
console
.
log
(
"Came here!"
);
showConfirmDialog
=
true
;
}
}
if
(
showConfirmDialog
){
$mdDialog
.
show
(
$mdDialog
.
confirm
({
$mdDialog
.
show
(
$mdDialog
.
confirm
({
skipHide
:
true
,
skipHide
:
true
,
textContent
:
'Are you sure you want to cancel this?'
,
textContent
:
'Are you sure you want to cancel this?'
,
...
...
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