Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
rjs_json_form
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
rjs_json_form
Commits
b2706afe
Commit
b2706afe
authored
Jan 01, 2019
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
notifyChange send changed context now
parent
99b797d1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
7 deletions
+18
-7
jsonform.gadget.js
jsonform.gadget.js
+2
-2
jsonform/gadget_json_generated_form_child.js
jsonform/gadget_json_generated_form_child.js
+16
-5
No files found.
jsonform.gadget.js
View file @
b2706afe
...
...
@@ -656,9 +656,9 @@
})
.
declareAcquiredMethod
(
"
resolveExternalReference
"
,
"
resolveExternalReference
"
)
.
declareAcquiredMethod
(
"
notifyChange
"
,
"
notifyChange
"
)
.
allowPublicAcquisition
(
"
rootNotifyChange
"
,
function
()
{
.
allowPublicAcquisition
(
"
rootNotifyChange
"
,
function
(
arr
,
scope
)
{
this
.
props
.
changed
=
true
;
return
this
.
notifyChange
();
return
this
.
notifyChange
(
arr
[
0
],
scope
);
})
.
declareAcquiredMethod
(
"
notifyValid
"
,
"
notifyValid
"
)
.
declareAcquiredMethod
(
"
notifyInvalid
"
,
"
notifyInvalid
"
)
...
...
jsonform/gadget_json_generated_form_child.js
View file @
b2706afe
...
...
@@ -635,6 +635,8 @@
return
g
.
render
(
render_options
);
})
.
push
(
function
()
{
// XXX need path argument
// absent in current context
return
gadget
.
rootNotifyChange
();
});
},
...
...
@@ -691,6 +693,8 @@
}
else
{
input
.
removeAttribute
(
"
style
"
);
}
// XXX need path argument
// absent in current context
return
gadget
.
rootNotifyChange
();
});
},
...
...
@@ -1740,7 +1744,14 @@
g
.
props
=
{};
g
.
options
=
{};
})
.
declareAcquiredMethod
(
"
rootNotifyChange
"
,
"
rootNotifyChange
"
)
.
declareAcquiredMethod
(
"
rNotifyChange
"
,
"
rootNotifyChange
"
)
.
declareMethod
(
"
rootNotifyChange
"
,
function
(
path
)
{
var
g
=
this
;
return
this
.
getJsonPath
(
path
)
.
push
(
function
(
p
)
{
return
g
.
rNotifyChange
(
p
);
});
})
.
declareAcquiredMethod
(
"
selfRemove
"
,
"
deleteChildren
"
)
.
allowPublicAcquisition
(
"
deleteChildren
"
,
function
(
arr
,
scope
)
{
var
g
=
this
,
...
...
@@ -1923,13 +1934,13 @@
})
.
allowPublicAcquisition
(
"
notifyChange
"
,
function
(
arr
,
sub_scope
)
{
var
g
=
this
,
op
t
=
arr
[
0
],
ev
t
=
arr
[
0
],
event_object
;
event_object
=
g
.
props
.
add_custom_data
[
sub_scope
];
if
(
event_object
&&
op
t
.
type
===
"
change
"
)
{
if
(
event_object
&&
ev
t
.
type
===
"
change
"
)
{
return
event_object
.
event
();
}
return
g
.
rootNotifyChange
();
return
g
.
rootNotifyChange
(
evt
.
target
.
name
);
})
.
declareMethod
(
'
renderForm
'
,
function
(
options
)
{
var
g
=
this
,
...
...
@@ -2048,7 +2059,7 @@
}
}
if
(
changed
)
{
return
gadget
.
rootNotifyChange
();
return
gadget
.
rootNotifyChange
(
input
.
name
);
}
})
...
...
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