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
7d068599
Commit
7d068599
authored
Jun 20, 2018
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gadget_html5_select: update upstream
parent
ac7df36b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
gadget_html5_select.js
gadget_html5_select.js
+7
-7
No files found.
gadget_html5_select.js
View file @
7d068599
...
...
@@ -34,7 +34,7 @@
required
:
false
})
.
declareMethod
(
'
render
'
,
function
(
options
)
{
.
declareMethod
(
'
render
'
,
function
render
(
options
)
{
var
state_dict
=
{
value
:
getFirstNonEmpty
(
options
.
value
,
""
),
item_list
:
JSON
.
stringify
(
options
.
item_list
),
...
...
@@ -48,7 +48,7 @@
return
this
.
changeState
(
state_dict
);
})
.
onStateChange
(
function
(
modification_dict
)
{
.
onStateChange
(
function
onStateChange
(
modification_dict
)
{
var
i
,
found
=
false
,
template
,
...
...
@@ -108,7 +108,7 @@
}
})
.
declareMethod
(
'
getContent
'
,
function
()
{
.
declareMethod
(
'
getContent
'
,
function
getContent
()
{
var
result
=
{},
select
=
this
.
element
.
querySelector
(
'
select
'
);
if
(
this
.
state
.
editable
)
{
...
...
@@ -124,7 +124,7 @@
})
.
declareAcquiredMethod
(
"
notifyValid
"
,
"
notifyValid
"
)
.
declareMethod
(
'
checkValidity
'
,
function
()
{
.
declareMethod
(
'
checkValidity
'
,
function
checkValidity
()
{
var
result
=
this
.
element
.
querySelector
(
'
select
'
).
checkValidity
();
if
(
result
)
{
return
this
.
notifyValid
()
...
...
@@ -136,13 +136,13 @@
})
.
declareAcquiredMethod
(
"
notifyChange
"
,
"
notifyChange
"
)
.
onEvent
(
'
change
'
,
function
(
e
)
{
.
onEvent
(
'
change
'
,
function
change
(
e
)
{
return
RSVP
.
all
([
this
.
checkValidity
(),
this
.
notifyChange
(
e
)
]);
},
false
,
false
)
.
onEvent
(
'
input
'
,
function
(
e
)
{
.
onEvent
(
'
input
'
,
function
input
(
e
)
{
return
RSVP
.
all
([
this
.
checkValidity
(),
this
.
notifyChange
(
e
)
...
...
@@ -150,7 +150,7 @@
},
false
,
false
)
.
declareAcquiredMethod
(
"
notifyInvalid
"
,
"
notifyInvalid
"
)
.
onEvent
(
'
invalid
'
,
function
(
evt
)
{
.
onEvent
(
'
invalid
'
,
function
invalid
(
evt
)
{
// invalid event does not bubble
return
this
.
notifyInvalid
(
evt
.
target
.
validationMessage
);
},
true
,
false
);
...
...
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