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
5090136e
Commit
5090136e
authored
Jul 24, 2018
by
nakavaram-nisum-com
Committed by
rbonthala-nisum-com
Jul 24, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MT-92 Error message or Warning message (#51)
parent
afdeb36f
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
105 additions
and
29 deletions
+105
-29
AssignRolesController.js
src/main/webapp/WEB-INF/controllers/AssignRolesController.js
+15
-6
DomainController.js
src/main/webapp/WEB-INF/controllers/DomainController.js
+13
-1
ProjectController.js
src/main/webapp/WEB-INF/controllers/ProjectController.js
+15
-4
ProjectTeamController.js
src/main/webapp/WEB-INF/controllers/ProjectTeamController.js
+16
-5
TravelController.js
src/main/webapp/WEB-INF/controllers/TravelController.js
+16
-5
VisaController.js
src/main/webapp/WEB-INF/controllers/VisaController.js
+17
-7
assignAccountsController.js
...in/webapp/WEB-INF/controllers/assignAccountsController.js
+13
-1
No files found.
src/main/webapp/WEB-INF/controllers/AssignRolesController.js
View file @
5090136e
...
@@ -152,7 +152,6 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
...
@@ -152,7 +152,6 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
$scope
.
cancel
=
function
()
{
$scope
.
cancel
=
function
()
{
$mdDialog
.
hide
();
$mdDialog
.
hide
();
};
};
$scope
.
deleteRole
=
function
(
row
){
$scope
.
deleteRole
=
function
(
row
){
$
(
'#home'
).
addClass
(
'md-scroll-mask'
);
$
(
'#home'
).
addClass
(
'md-scroll-mask'
);
var
confirm
=
$mdDialog
.
confirm
()
var
confirm
=
$mdDialog
.
confirm
()
...
@@ -167,7 +166,6 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
...
@@ -167,7 +166,6 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
console
.
log
(
"Cancelled dialog"
);
console
.
log
(
"Cancelled dialog"
);
});
});
};
};
function
deleteUserRole
(
empId
){
function
deleteUserRole
(
empId
){
var
req
=
{
var
req
=
{
method
:
'DELETE'
,
method
:
'DELETE'
,
...
@@ -373,9 +371,20 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
...
@@ -373,9 +371,20 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
};
};
$scope
.
cancel
=
function
()
{
$scope
.
cancel
=
function
()
{
if
(
this
.
myForm
.
$dirty
){
$mdDialog
.
show
(
$mdDialog
.
confirm
({
skipHide
:
true
,
textContent
:
'Are you sure you want to cancel this?'
,
ok
:
'ok'
,
cancel
:
'cancel'
})).
then
(
function
(){
$mdDialog
.
hide
(
'Cancelled'
);
$mdDialog
.
hide
(
'Cancelled'
);
})
}
else
{
$mdDialog
.
hide
(
'Cancelled'
);
}
};
};
function
updateGrid
(
action
,
record
){
function
updateGrid
(
action
,
record
){
if
(
$scope
.
alertMsg
==
""
){
if
(
$scope
.
alertMsg
==
""
){
if
(
$scope
.
result
==
"Success"
){
if
(
$scope
.
result
==
"Success"
){
...
...
src/main/webapp/WEB-INF/controllers/DomainController.js
View file @
5090136e
...
@@ -256,7 +256,19 @@ myApp.controller("domainController",
...
@@ -256,7 +256,19 @@ myApp.controller("domainController",
};
};
$scope
.
cancel
=
function
()
{
$scope
.
cancel
=
function
()
{
if
(
this
.
myForm
.
$dirty
){
$mdDialog
.
show
(
$mdDialog
.
confirm
({
skipHide
:
true
,
textContent
:
'Are you sure you want to cancel this?'
,
ok
:
'ok'
,
cancel
:
'cancel'
})).
then
(
function
(){
$mdDialog
.
hide
(
'Cancelled'
);
$mdDialog
.
hide
(
'Cancelled'
);
})
}
else
{
$mdDialog
.
hide
(
'Cancelled'
);
}
};
};
$scope
.
deliveryHeads
=
function
()
{
$scope
.
deliveryHeads
=
function
()
{
...
...
src/main/webapp/WEB-INF/controllers/ProjectController.js
View file @
5090136e
...
@@ -702,9 +702,20 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS
...
@@ -702,9 +702,20 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS
};
};
$scope
.
cancel
=
function
()
{
$scope
.
cancel
=
function
()
{
if
(
this
.
myForm
.
$dirty
){
$mdDialog
.
show
(
$mdDialog
.
confirm
({
skipHide
:
true
,
textContent
:
'Are you sure you want to cancel this?'
,
ok
:
'ok'
,
cancel
:
'cancel'
})).
then
(
function
(){
$mdDialog
.
hide
(
'Cancelled'
);
$mdDialog
.
hide
(
'Cancelled'
);
})
}
else
{
$mdDialog
.
hide
(
'Cancelled'
);
}
};
};
$scope
.
cancelDialog
=
function
()
{
$scope
.
cancelDialog
=
function
()
{
$mdDialog
.
hide
(
'Cancelled'
);
$mdDialog
.
hide
(
'Cancelled'
);
};
};
...
...
src/main/webapp/WEB-INF/controllers/ProjectTeamController.js
View file @
5090136e
...
@@ -236,7 +236,6 @@ myApp.controller("projectTeamController",function($scope, myFactory, $mdDialog,
...
@@ -236,7 +236,6 @@ myApp.controller("projectTeamController",function($scope, myFactory, $mdDialog,
$scope
.
cancel
=
function
()
{
$scope
.
cancel
=
function
()
{
$mdDialog
.
hide
();
$mdDialog
.
hide
();
};
};
$scope
.
deleteRole
=
function
(
row
,
id
){
$scope
.
deleteRole
=
function
(
row
,
id
){
$
(
'#home'
).
addClass
(
'md-scroll-mask'
);
$
(
'#home'
).
addClass
(
'md-scroll-mask'
);
var
confirm
=
$mdDialog
.
confirm
()
var
confirm
=
$mdDialog
.
confirm
()
...
@@ -716,7 +715,19 @@ myApp.controller("projectTeamController",function($scope, myFactory, $mdDialog,
...
@@ -716,7 +715,19 @@ myApp.controller("projectTeamController",function($scope, myFactory, $mdDialog,
};
};
$scope
.
cancel
=
function
()
{
$scope
.
cancel
=
function
()
{
if
(
this
.
myForm
.
$dirty
){
$mdDialog
.
show
(
$mdDialog
.
confirm
({
skipHide
:
true
,
textContent
:
'Are you sure you want to cancel this?'
,
ok
:
'ok'
,
cancel
:
'cancel'
})).
then
(
function
(){
$mdDialog
.
hide
(
'Cancelled'
);
})
}
else
{
$mdDialog
.
hide
(
'Cancelled'
);
$mdDialog
.
hide
(
'Cancelled'
);
}
};
};
function
updateGrid
(
action
,
record
){
function
updateGrid
(
action
,
record
){
...
...
src/main/webapp/WEB-INF/controllers/TravelController.js
View file @
5090136e
...
@@ -224,7 +224,6 @@ myApp.controller("travelController",function($scope, myFactory, $mdDialog, $http
...
@@ -224,7 +224,6 @@ myApp.controller("travelController",function($scope, myFactory, $mdDialog, $http
$scope
.
cancel
=
function
()
{
$scope
.
cancel
=
function
()
{
$mdDialog
.
hide
();
$mdDialog
.
hide
();
};
};
$scope
.
deleteRole
=
function
(
row
,
id
){
$scope
.
deleteRole
=
function
(
row
,
id
){
$
(
'#home'
).
addClass
(
'md-scroll-mask'
);
$
(
'#home'
).
addClass
(
'md-scroll-mask'
);
var
confirm
=
$mdDialog
.
confirm
()
var
confirm
=
$mdDialog
.
confirm
()
...
@@ -453,7 +452,19 @@ myApp.controller("travelController",function($scope, myFactory, $mdDialog, $http
...
@@ -453,7 +452,19 @@ myApp.controller("travelController",function($scope, myFactory, $mdDialog, $http
};
};
$scope
.
cancel
=
function
()
{
$scope
.
cancel
=
function
()
{
if
(
this
.
myForm
.
$dirty
){
$mdDialog
.
show
(
$mdDialog
.
confirm
({
skipHide
:
true
,
textContent
:
'Are you sure you want to cancel this?'
,
ok
:
'ok'
,
cancel
:
'cancel'
})).
then
(
function
(){
$mdDialog
.
hide
(
'Cancelled'
);
$mdDialog
.
hide
(
'Cancelled'
);
})
}
else
{
$mdDialog
.
hide
(
'Cancelled'
);
}
};
};
function
updateGrid
(
action
,
record
){
function
updateGrid
(
action
,
record
){
...
...
src/main/webapp/WEB-INF/controllers/VisaController.js
View file @
5090136e
...
@@ -216,7 +216,6 @@ myApp.controller("visaController",function($scope, myFactory, $mdDialog, $http,
...
@@ -216,7 +216,6 @@ myApp.controller("visaController",function($scope, myFactory, $mdDialog, $http,
$scope
.
cancel
=
function
()
{
$scope
.
cancel
=
function
()
{
$mdDialog
.
hide
();
$mdDialog
.
hide
();
};
};
$scope
.
deleteRole
=
function
(
row
,
id
){
$scope
.
deleteRole
=
function
(
row
,
id
){
$
(
'#home'
).
addClass
(
'md-scroll-mask'
);
$
(
'#home'
).
addClass
(
'md-scroll-mask'
);
var
confirm
=
$mdDialog
.
confirm
()
var
confirm
=
$mdDialog
.
confirm
()
...
@@ -401,9 +400,20 @@ myApp.controller("visaController",function($scope, myFactory, $mdDialog, $http,
...
@@ -401,9 +400,20 @@ myApp.controller("visaController",function($scope, myFactory, $mdDialog, $http,
};
};
$scope
.
cancel
=
function
()
{
$scope
.
cancel
=
function
()
{
if
(
this
.
myForm
.
$dirty
){
$mdDialog
.
show
(
$mdDialog
.
confirm
({
skipHide
:
true
,
textContent
:
'Are you sure you want to cancel this?'
,
ok
:
'ok'
,
cancel
:
'cancel'
})).
then
(
function
(){
$mdDialog
.
hide
(
'Cancelled'
);
})
}
else
{
$mdDialog
.
hide
(
'Cancelled'
);
$mdDialog
.
hide
(
'Cancelled'
);
}
};
};
function
updateGrid
(
action
,
record
){
function
updateGrid
(
action
,
record
){
if
(
$scope
.
alertMsg
==
""
){
if
(
$scope
.
alertMsg
==
""
){
if
(
$scope
.
result
==
"Success"
){
if
(
$scope
.
result
==
"Success"
){
...
...
src/main/webapp/WEB-INF/controllers/assignAccountsController.js
View file @
5090136e
...
@@ -160,7 +160,19 @@ myApp.controller("assignAccountsController",function($scope, myFactory, $mdDialo
...
@@ -160,7 +160,19 @@ myApp.controller("assignAccountsController",function($scope, myFactory, $mdDialo
$mdSelect
.
hide
();
$mdSelect
.
hide
();
}
}
$scope
.
cancel
=
function
(){
$scope
.
cancel
=
function
(){
$mdDialog
.
hide
(
"Cancelled"
);
if
(
this
.
myForm
.
$dirty
){
$mdDialog
.
show
(
$mdDialog
.
confirm
({
skipHide
:
true
,
textContent
:
'Are you sure you want to cancel this?'
,
ok
:
'ok'
,
cancel
:
'cancel'
})).
then
(
function
(){
$mdDialog
.
hide
(
'Cancelled'
);
})
}
else
{
$mdDialog
.
hide
(
'Cancelled'
);
}
}
}
$scope
.
updateSearch
=
function
(
e
)
{
$scope
.
updateSearch
=
function
(
e
)
{
e
.
stopPropagation
();
e
.
stopPropagation
();
...
...
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