Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
QLNS_N01
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nguyễn Văn Hiếu
QLNS_N01
Commits
78cc0705
Commit
78cc0705
authored
Jun 14, 2019
by
Phạm Duy Phi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
5c69f55e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
src/main/resources/public/pages/timesheet/timeSheetController.js
...n/resources/public/pages/timesheet/timeSheetController.js
+10
-5
No files found.
src/main/resources/public/pages/timesheet/timeSheetController.js
View file @
78cc0705
/*
*/
angular
.
module
(
"
myApp
"
).
controller
(
"
timeSheetController
"
,
function
(
$scope
,
$http
)
{
angular
.
module
(
"
myApp
"
).
controller
(
"
timeSheetController
"
,
function
(
$scope
,
$http
,
$state
)
{
console
.
log
(
"
Time Sheet controller
"
);
$scope
.
ts
=
{
...
...
@@ -40,9 +40,10 @@ angular.module("myApp").controller("timeSheetController", function($scope, $http
url
:
"
http://localhost:8080/eproject/timesheet/delete/
"
+
ts
.
id
}).
then
(
function
successCallback
(
response
)
{
console
.
log
(
response
);
$s
cope
.
config
.
timeSheets
=
response
.
data
;
$s
tate
.
reload
()
;
},
function
errorCallback
(
response
)
{
console
.
log
(
response
)
console
.
log
(
response
);
$state
.
reload
();
});
};
...
...
@@ -56,8 +57,10 @@ angular.module("myApp").controller("timeSheetController", function($scope, $http
data
:
$scope
.
tsdto
}).
then
(
function
successCallback
(
response
)
{
console
.
log
(
response
);
$state
.
reload
();
},
function
errorCallback
(
response
)
{
console
.
log
(
response
)
console
.
log
(
response
);
$state
.
reload
();
});
}
...
...
@@ -79,8 +82,10 @@ angular.module("myApp").controller("timeSheetController", function($scope, $http
data
:
$scope
.
tsdto
}).
then
(
function
successCallback
(
response
)
{
console
.
log
(
response
);
$state
.
reload
();
},
function
errorCallback
(
response
)
{
console
.
log
(
response
)
console
.
log
(
response
);
$state
.
reload
();
});
}
}).
directive
(
'
pgnTable
'
,
[
'
$compile
'
,
function
(
$compile
)
{
...
...
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