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
a086e648
Commit
a086e648
authored
Dec 24, 2015
by
Evren Kutar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
linkedmodel object_name
parent
1610ed77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
form_service.js
app/zetalib/form_service.js
+3
-3
No files found.
app/zetalib/form_service.js
View file @
a086e648
...
@@ -385,18 +385,18 @@ angular.module('formService', ['ui.bootstrap'])
...
@@ -385,18 +385,18 @@ angular.module('formService', ['ui.bootstrap'])
if
(
scope
.
model
[
k
])
{
if
(
scope
.
model
[
k
])
{
generator
.
get_list
({
generator
.
get_list
({
url
:
'crud'
,
url
:
'crud'
,
form_params
:
{
model
:
v
.
model_name
,
object_id
:
scope
.
model
[
k
],
cmd
:
'
show
'
}
form_params
:
{
model
:
v
.
model_name
,
object_id
:
scope
.
model
[
k
],
cmd
:
'
object_name
'
}
})
})
.
then
(
function
(
data
)
{
.
then
(
function
(
data
)
{
try
{
try
{
scope
.
$watch
(
document
.
querySelector
(
'input[name='
+
v
.
model_name
+
']'
),
scope
.
$watch
(
document
.
querySelector
(
'input[name='
+
v
.
model_name
+
']'
),
function
()
{
function
()
{
angular
.
element
(
document
.
querySelector
(
'input[name='
+
k
+
']'
)).
val
(
data
.
data
.
object
.
unicode
)
;
document
.
querySelector
(
'input[name='
+
k
+
']'
).
value
=
data
.
data
.
object_name
;
}
}
);
);
}
}
catch
(
e
)
{
catch
(
e
)
{
angular
.
element
(
document
.
querySelector
(
'input[name='
+
k
+
']'
)).
val
(
data
.
data
.
object
.
unicode
)
;
document
.
querySelector
(
'input[name='
+
k
+
']'
).
value
=
data
.
data
.
object_name
;
$log
.
debug
(
'exception'
,
e
);
$log
.
debug
(
'exception'
,
e
);
}
}
...
...
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