Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
748152ed
Commit
748152ed
authored
Mar 13, 2013
by
Byron Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 850309: Allow pasted attachments to be flagged as patches
r=LpSolit, a=LpSolit
parent
56216f17
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
attachment.js
js/attachment.js
+4
-6
No files found.
js/attachment.js
View file @
748152ed
...
@@ -24,13 +24,12 @@ function updateCommentPrivacy(checkbox) {
...
@@ -24,13 +24,12 @@ function updateCommentPrivacy(checkbox) {
}
}
}
}
function
setContentTypeDisabledState
(
form
)
function
setContentTypeDisabledState
(
form
)
{
{
var
isdisabled
=
false
;
var
isdisabled
=
false
;
if
(
form
.
ispatch
.
checked
)
if
(
form
.
ispatch
.
checked
)
isdisabled
=
true
;
isdisabled
=
true
;
for
(
var
i
=
0
;
i
<
form
.
contenttypemethod
.
length
;
i
++
)
for
(
var
i
=
0
;
i
<
form
.
contenttypemethod
.
length
;
i
++
)
form
.
contenttypemethod
[
i
].
disabled
=
isdisabled
;
form
.
contenttypemethod
[
i
].
disabled
=
isdisabled
;
form
.
contenttypeselection
.
disabled
=
isdisabled
;
form
.
contenttypeselection
.
disabled
=
isdisabled
;
...
@@ -39,9 +38,8 @@ function setContentTypeDisabledState(form)
...
@@ -39,9 +38,8 @@ function setContentTypeDisabledState(form)
function
TextFieldHandler
()
{
function
TextFieldHandler
()
{
var
field_text
=
document
.
getElementById
(
"attach_text"
);
var
field_text
=
document
.
getElementById
(
"attach_text"
);
var
greyfields
=
new
Array
(
"data"
,
"ispatch"
,
"autodetect"
,
var
greyfields
=
new
Array
(
"data"
,
"autodetect"
,
"list"
,
"manual"
,
"list"
,
"manual"
,
"contenttypeselection"
,
"contenttypeselection"
,
"contenttypeentry"
);
"contenttypeentry"
);
var
i
,
thisfield
;
var
i
,
thisfield
;
if
(
field_text
.
value
.
match
(
/^
\s
*$/
))
{
if
(
field_text
.
value
.
match
(
/^
\s
*$/
))
{
for
(
i
=
0
;
i
<
greyfields
.
length
;
i
++
)
{
for
(
i
=
0
;
i
<
greyfields
.
length
;
i
++
)
{
...
...
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