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
cd48f6c9
Commit
cd48f6c9
authored
Jul 26, 2018
by
nakavaram-nisum-com
Committed by
tdutta-nisum-com
Jul 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MT-92 Error message or Warning message _Defect (#64)
parent
93d1721d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
60 additions
and
6 deletions
+60
-6
AssignRolesController.js
src/main/webapp/WEB-INF/controllers/AssignRolesController.js
+10
-1
DomainController.js
src/main/webapp/WEB-INF/controllers/DomainController.js
+10
-1
ProjectController.js
src/main/webapp/WEB-INF/controllers/ProjectController.js
+10
-1
TravelController.js
src/main/webapp/WEB-INF/controllers/TravelController.js
+10
-1
VisaController.js
src/main/webapp/WEB-INF/controllers/VisaController.js
+10
-1
assignAccountsController.js
...in/webapp/WEB-INF/controllers/assignAccountsController.js
+10
-1
No files found.
src/main/webapp/WEB-INF/controllers/AssignRolesController.js
View file @
cd48f6c9
...
...
@@ -371,7 +371,16 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
};
$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
&&
totalFields
[
key
].
$modelValue
.
length
!==
0
)
{
console
.
log
(
"Came here!"
);
showConfirmDialog
=
true
;
}
}
if
(
showConfirmDialog
){
$mdDialog
.
show
(
$mdDialog
.
confirm
({
skipHide
:
true
,
textContent
:
'Are you sure you want to cancel this?'
,
...
...
src/main/webapp/WEB-INF/controllers/DomainController.js
View file @
cd48f6c9
...
...
@@ -259,7 +259,16 @@ myApp.controller("domainController",
};
$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
&&
totalFields
[
key
].
$modelValue
.
length
!==
0
)
{
console
.
log
(
"Came here!"
);
showConfirmDialog
=
true
;
}
}
if
(
showConfirmDialog
){
$mdDialog
.
show
(
$mdDialog
.
confirm
({
skipHide
:
true
,
textContent
:
'Are you sure you want to cancel this?'
,
...
...
src/main/webapp/WEB-INF/controllers/ProjectController.js
View file @
cd48f6c9
...
...
@@ -703,7 +703,16 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS
};
$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
&&
totalFields
[
key
].
$modelValue
.
length
!==
0
)
{
console
.
log
(
"Came here!"
);
showConfirmDialog
=
true
;
}
}
if
(
showConfirmDialog
){
$mdDialog
.
show
(
$mdDialog
.
confirm
({
skipHide
:
true
,
textContent
:
'Are you sure you want to cancel this?'
,
...
...
src/main/webapp/WEB-INF/controllers/TravelController.js
View file @
cd48f6c9
...
...
@@ -452,7 +452,16 @@ myApp.controller("travelController",function($scope, myFactory, $mdDialog, $http
};
$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
&&
totalFields
[
key
].
$modelValue
.
length
!==
0
)
{
console
.
log
(
"Came here!"
);
showConfirmDialog
=
true
;
}
}
if
(
showConfirmDialog
){
$mdDialog
.
show
(
$mdDialog
.
confirm
({
skipHide
:
true
,
textContent
:
'Are you sure you want to cancel this?'
,
...
...
src/main/webapp/WEB-INF/controllers/VisaController.js
View file @
cd48f6c9
...
...
@@ -400,7 +400,16 @@ myApp.controller("visaController",function($scope, myFactory, $mdDialog, $http,
};
$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
&&
totalFields
[
key
].
$modelValue
.
length
!==
0
)
{
console
.
log
(
"Came here!"
);
showConfirmDialog
=
true
;
}
}
if
(
showConfirmDialog
){
$mdDialog
.
show
(
$mdDialog
.
confirm
({
skipHide
:
true
,
textContent
:
'Are you sure you want to cancel this?'
,
...
...
src/main/webapp/WEB-INF/controllers/assignAccountsController.js
View file @
cd48f6c9
...
...
@@ -167,7 +167,16 @@ myApp.controller("assignAccountsController",function($scope, myFactory, $mdDialo
$mdSelect
.
hide
();
}
$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
&&
totalFields
[
key
].
$modelValue
.
length
!==
0
)
{
console
.
log
(
"Came here!"
);
showConfirmDialog
=
true
;
}
}
if
(
showConfirmDialog
){
$mdDialog
.
show
(
$mdDialog
.
confirm
({
skipHide
:
true
,
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