Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Kulya
OpnSense
Commits
f0b6829f
Commit
f0b6829f
authored
Apr 16, 2015
by
Jos Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mvc fix tokenizer
parent
44b610ab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
jquery.tokenize.js
src/opnsense/www/js/jquery.tokenize.js
+1
-0
opnsense.js
src/opnsense/www/js/opnsense.js
+1
-3
No files found.
src/opnsense/www/js/jquery.tokenize.js
View file @
f0b6829f
...
...
@@ -442,6 +442,7 @@
if
(
$
(
'
option[value="
'
+
value
+
'
"]
'
,
this
.
select
).
length
){
$
(
'
option[value="
'
+
value
+
'
"]
'
,
this
.
select
).
attr
(
'
selected
'
,
'
selected
'
);
$
(
'
option[value="
'
+
value
+
'
"]
'
,
this
.
select
).
prop
(
"
selected
"
,
true
);
}
else
if
(
this
.
options
.
newElements
||
(
!
this
.
options
.
newElements
&&
$
(
'
li[data-value="
'
+
value
+
'
"]
'
,
this
.
dropdown
).
length
>
0
))
{
var
option
=
$
(
'
<option />
'
)
.
attr
(
'
selected
'
,
'
selected
'
)
...
...
src/opnsense/www/js/opnsense.js
View file @
f0b6829f
...
...
@@ -25,9 +25,7 @@ function getFormData(parent) {
// selectbox, collect selected items
var
tmp_str
=
""
;
$
(
this
).
children
().
each
(
function
(
index
){
// normally this should use prop, but this sometimes seem to return incorrect data....
// maybe replace this with a later version of jquery. tested with 1.11.2
if
(
$
(
this
).
attr
(
"
selected
"
)
!=
undefined
){
if
(
$
(
this
).
prop
(
"
selected
"
)){
if
(
tmp_str
!=
""
)
tmp_str
=
tmp_str
+
"
,
"
;
tmp_str
=
tmp_str
+
$
(
this
).
val
();
}
...
...
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