Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
ulakbus-ui
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
ulakbus
ulakbus-ui
Commits
6f23fe82
Commit
6f23fe82
authored
Jul 09, 2015
by
Evren Kutar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clear_wf fix for list and show ctrl
parent
ea6a647a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
17 deletions
+3
-17
staff_controller.js
app/components/staff/staff_controller.js
+3
-17
No files found.
app/components/staff/staff_controller.js
View file @
6f23fe82
...
@@ -26,11 +26,7 @@ staff.controller('StaffAddEditCtrl', function ($scope, $rootScope, $http, $log,
...
@@ -26,11 +26,7 @@ staff.controller('StaffAddEditCtrl', function ($scope, $rootScope, $http, $log,
else
{
else
{
form_params
[
'cmd'
]
=
'add_object'
;
form_params
[
'cmd'
]
=
'add_object'
;
}
}
if
(
$rootScope
.
staffwfclear
){
form_params
[
'clear_wf'
]
=
1
;
form_params
[
'clear_wf'
]
=
1
;
}
else
{
$rootScope
.
staffwfclear
=
1
}
Generator
.
get_form
(
$scope
.
url
,
form_params
).
then
(
function
(
object
)
{
Generator
.
get_form
(
$scope
.
url
,
form_params
).
then
(
function
(
object
)
{
var
d
=
object
.
data
.
forms
;
var
d
=
object
.
data
.
forms
;
...
@@ -61,12 +57,7 @@ staff.controller('StaffAddEditCtrl', function ($scope, $rootScope, $http, $log,
...
@@ -61,12 +57,7 @@ staff.controller('StaffAddEditCtrl', function ($scope, $rootScope, $http, $log,
*/
*/
staff
.
controller
(
'StaffListCtrl'
,
function
(
$scope
,
$rootScope
,
Generator
)
{
staff
.
controller
(
'StaffListCtrl'
,
function
(
$scope
,
$rootScope
,
Generator
)
{
var
form_params
=
{};
var
form_params
=
{
"clear_wf"
:
1
};
if
(
$rootScope
.
staffwfclear
){
form_params
[
'clear_wf'
]
=
1
;
}
else
{
$rootScope
.
staffwfclear
=
1
}
Generator
.
get_form
(
'personel_duzenle_basitlestirilmis'
,
form_params
)
Generator
.
get_form
(
'personel_duzenle_basitlestirilmis'
,
form_params
)
.
then
(
function
(
res
)
{
.
then
(
function
(
res
)
{
console
.
log
(
res
);
console
.
log
(
res
);
...
@@ -78,12 +69,7 @@ staff.controller('StaffListCtrl', function ($scope, $rootScope, Generator) {
...
@@ -78,12 +69,7 @@ staff.controller('StaffListCtrl', function ($scope, $rootScope, Generator) {
* Staff Show Controller
* Staff Show Controller
*/
*/
staff
.
controller
(
'StaffShowCtrl'
,
function
(
$scope
,
$rootScope
,
Generator
,
$routeParams
)
{
staff
.
controller
(
'StaffShowCtrl'
,
function
(
$scope
,
$rootScope
,
Generator
,
$routeParams
)
{
var
form_params
=
{
"object_id"
:
$routeParams
.
id
};
var
form_params
=
{
"object_id"
:
$routeParams
.
id
,
"clear_wf"
:
1
};
if
(
$rootScope
.
staffwfclear
){
form_params
[
'clear_wf'
]
=
1
;
}
else
{
$rootScope
.
staffwfclear
=
1
}
Generator
.
get_form
(
'personel_duzenle_basitlestirilmis'
,
form_params
).
then
(
function
(
res
)
{
Generator
.
get_form
(
'personel_duzenle_basitlestirilmis'
,
form_params
).
then
(
function
(
res
)
{
debugger
;
debugger
;
// todo: get this line below more clear way
// todo: get this line below more clear way
...
...
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