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
3b98b426
Commit
3b98b426
authored
Aug 01, 2018
by
nakavaram-nisum-com
Committed by
rbonthala-nisum-com
Aug 01, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Error or warning message in manage projects view screen (#101)
parent
c3ac2705
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
ProjectController.js
src/main/webapp/WEB-INF/controllers/ProjectController.js
+19
-3
No files found.
src/main/webapp/WEB-INF/controllers/ProjectController.js
View file @
3b98b426
...
@@ -1001,7 +1001,7 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS
...
@@ -1001,7 +1001,7 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS
else
if
(
action
==
"Add"
&&
(
$scope
.
newBillingStartDate
>
$scope
.
endDate
)){
else
if
(
action
==
"Add"
&&
(
$scope
.
newBillingStartDate
>
$scope
.
endDate
)){
$scope
.
alertMsg
=
"Assignment End Date should be less than New Billability Start Date "
;
$scope
.
alertMsg
=
"Assignment End Date should be less than New Billability Start Date "
;
}
}
else
if
(
action
==
"Update"
&&
(
$scope
.
endDate
<
$scope
.
startDate
<
$scope
.
newBillingStartDate
))
{
else
if
(
action
==
"Update"
&&
((
$scope
.
endDate
<
$scope
.
startDate
)
&&
(
$scope
.
startDate
<=
$scope
.
newBillingStartDate
)
&&
(
$scope
.
endDate
<
$scope
.
newBillingStartDate
)))
{
$scope
.
alertMsg
=
"EndDate should be greater than StartDate and new BillingStartDate "
;
$scope
.
alertMsg
=
"EndDate should be greater than StartDate and new BillingStartDate "
;
}
}
else
if
(
employeeModel
!=
undefined
&&
projectModel
!=
undefined
&&
action
==
"Add"
else
if
(
employeeModel
!=
undefined
&&
projectModel
!=
undefined
&&
action
==
"Add"
...
@@ -1174,8 +1174,24 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS
...
@@ -1174,8 +1174,24 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS
$mdDialog
.
hide
(
'Cancelled'
);
$mdDialog
.
hide
(
'Cancelled'
);
};
};
$scope
.
cancelTab
=
function
()
{
$scope
.
cancelTab
=
function
()
{
removeTab
(
"cancel"
);
if
(
dataToPass
.
action
==
"View"
)
{
if
(
$scope
.
myForm
.
$dirty
)
{
$mdDialog
.
show
(
$mdDialog
.
confirm
({
skipHide
:
true
,
textContent
:
'Are you sure you want to cancel this?'
,
ok
:
'ok'
,
cancel
:
'cancel'
})).
then
(
function
()
{
removeTab
(
"cancel"
);
$scope
.
myForm
.
$setPristine
();
})
}
else
{
removeTab
(
"cancel"
)
}
}
};
};
$scope
.
getEmployeeSelected
=
function
(){
$scope
.
getEmployeeSelected
=
function
(){
...
...
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