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
e8569423
Commit
e8569423
authored
Apr 05, 2016
by
bahadircyildiz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FIX rref #5239, refs GH-92. Different approach on datepicker formatter implemented
parent
ef55b1ae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
form_service.js
app/zetalib/form_service.js
+5
-2
No files found.
app/zetalib/form_service.js
View file @
e8569423
...
@@ -326,7 +326,7 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
...
@@ -326,7 +326,7 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
try
{
try
{
if
(
item
.
type
===
'date'
)
{
if
(
item
.
type
===
'date'
)
{
scope
.
model
[
k
][
item
.
name
]
=
generator
.
dateformatter
(
scope
.
model
[
k
][
item
.
name
]);
//
scope.model[k][item.name] = generator.dateformatter(scope.model[k][item.name]);
}
}
}
catch
(
e
)
{
}
catch
(
e
)
{
$log
.
debug
(
'Error: '
,
e
.
message
);
$log
.
debug
(
'Error: '
,
e
.
message
);
...
@@ -549,7 +549,10 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
...
@@ -549,7 +549,10 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
},
},
format
:
'dd.MM.yyyy'
,
format
:
'dd.MM.yyyy'
,
onSelect
:
function
()
{
onSelect
:
function
()
{
scope
.
model
[
k
]
=
angular
.
copy
(
generator
.
dateformatter
(
scope
.
model
[
k
]));
var
tempDate
=
angular
.
copy
(
scope
.
model
[
k
]);
tempDate
=
Date
.
parse
(
tempDate
,
"dd.MM.yyyy"
);
scope
.
model
[
k
]
=
tempDate
;
//scope.model[k] = angular.copy(generator.dateformatter(scope.model[k]));
}
}
};
};
}
}
...
...
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