Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
die_coolen_jungs
our_own_cloud_project
Commits
e44cc8ea
Commit
e44cc8ea
authored
12 years ago
by
Christopher Schäpers
Browse files
Options
Downloads
Patches
Plain Diff
Fix OC.dialogs.form()
Don't do _too_ much escapeHTML()
parent
9c53f35d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/js/oc-dialogs.js
+3
-3
3 additions, 3 deletions
core/js/oc-dialogs.js
with
3 additions
and
3 deletions
core/js/oc-dialogs.js
+
3
−
3
View file @
e44cc8ea
...
...
@@ -110,7 +110,7 @@ var OCdialogs = {
var
dialog_name
=
'
oc-dialog-
'
+
OCdialogs
.
dialogs_counter
+
'
-content
'
;
var
dialog_id
=
'
#
'
+
dialog_name
;
var
dialog_div
=
'
<div id="
'
+
dialog_name
+
'
" title="
'
+
escapeHTML
(
title
)
+
'
">
'
+
escapeHTML
(
content
)
+
'
</div>
'
;
var
dialog_div
=
'
<div id="
'
+
dialog_name
+
'
" title="
'
+
escapeHTML
(
title
)
+
'
">
'
+
content
+
'
</div>
'
;
if
(
modal
===
undefined
)
{
modal
=
false
};
$
(
'
body
'
).
append
(
dialog_div
);
var
buttonlist
=
[{
...
...
@@ -205,7 +205,7 @@ var OCdialogs = {
message
:
function
(
content
,
title
,
dialog_type
,
buttons
,
callback
,
modal
)
{
var
dialog_name
=
'
oc-dialog-
'
+
OCdialogs
.
dialogs_counter
+
'
-content
'
;
var
dialog_id
=
'
#
'
+
dialog_name
;
var
dialog_div
=
'
<div id="
'
+
dialog_name
+
'
" title="
'
+
escapeHTML
(
title
)
+
'
">
'
+
escapeHTML
(
content
)
+
'
</div>
'
;
var
dialog_div
=
'
<div id="
'
+
dialog_name
+
'
" title="
'
+
escapeHTML
(
title
)
+
'
">
'
+
content
+
'
</div>
'
;
if
(
modal
===
undefined
)
{
modal
=
false
};
$
(
'
body
'
).
append
(
dialog_div
);
var
buttonlist
=
[];
...
...
@@ -285,7 +285,7 @@ var OCdialogs = {
if
(
callback
!==
undefined
)
{
var
valuelist
=
[];
$
(
dialog_id
+
'
input,
'
+
dialog_id
+
'
select
'
).
each
(
function
(
index
,
element
)
{
valuelist
[
index
]
=
{
name
:
$
(
elem
).
attr
(
'
name
'
),
value
:
OCdialogs
.
determineValue
(
elem
)
};
valuelist
[
index
]
=
{
name
:
$
(
elem
ent
).
attr
(
'
name
'
),
value
:
OCdialogs
.
determineValue
(
elem
ent
)
};
});
$
(
dialog_id
).
dialog
(
'
close
'
);
callback
(
valuelist
);
...
...
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