Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
VIPSWeb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VIPS
VIPSWeb
Commits
a20714dc
Commit
a20714dc
authored
9 years ago
by
Tor-Einar Skog
Browse files
Options
Downloads
Patches
Plain Diff
Fixing selecting cropCategories in iE
parent
050be1e1
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
VIPSWeb/static/js/frontpage.js
+4
-1
4 additions, 1 deletion
VIPSWeb/static/js/frontpage.js
VIPSWeb/static/js/util.js
+1
-1
1 addition, 1 deletion
VIPSWeb/static/js/util.js
with
5 additions
and
2 deletions
VIPSWeb/static/js/frontpage.js
+
4
−
1
View file @
a20714dc
...
@@ -729,7 +729,9 @@ function restoreSelectedCropCategoryIds()
...
@@ -729,7 +729,9 @@ function restoreSelectedCropCategoryIds()
if
(
selectedCropCategoryIds
!=
null
)
if
(
selectedCropCategoryIds
!=
null
)
{
{
// Loop through existing crops, set as checked/unchecked
// Loop through existing crops, set as checked/unchecked
formFields
=
document
.
getElementsByName
(
"
cropCategoryIds
"
);
// Since this is an HTMLCollection, we must do some magic
formFields
=
[].
slice
.
call
(
document
.
getElementsByName
(
"
cropCategoryIds
"
));
for
(
i
in
formFields
)
for
(
i
in
formFields
)
{
{
if
(
formFields
[
i
].
value
==
undefined
)
if
(
formFields
[
i
].
value
==
undefined
)
...
@@ -739,6 +741,7 @@ function restoreSelectedCropCategoryIds()
...
@@ -739,6 +741,7 @@ function restoreSelectedCropCategoryIds()
var
previouslySelected
=
false
;
var
previouslySelected
=
false
;
for
(
var
j
in
selectedCropCategoryIds
)
for
(
var
j
in
selectedCropCategoryIds
)
{
{
// Need to use eval() as values are strings with [] representing arrays
// Need to use eval() as values are strings with [] representing arrays
if
(
parseInt
(
formFields
[
i
].
value
)
==
parseInt
(
selectedCropCategoryIds
[
j
]))
if
(
parseInt
(
formFields
[
i
].
value
)
==
parseInt
(
selectedCropCategoryIds
[
j
]))
{
{
...
...
This diff is collapsed.
Click to expand it.
VIPSWeb/static/js/util.js
+
1
−
1
View file @
a20714dc
...
@@ -149,7 +149,7 @@ function storeLocalSettings(settingsDict)
...
@@ -149,7 +149,7 @@ function storeLocalSettings(settingsDict)
{
{
return
;
return
;
}
}
for
(
var
key
in
settingsDict
)
for
(
var
key
in
settingsDict
)
{
{
if
(
!
settingsDict
.
hasOwnProperty
(
key
))
if
(
!
settingsDict
.
hasOwnProperty
(
key
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment