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
406dcbbc
Commit
406dcbbc
authored
Apr 18, 2014
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backout bug 984980
parent
ae77f294
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
44 deletions
+0
-44
field.js
js/field.js
+0
-31
create.html.tmpl
template/en/default/attachment/create.html.tmpl
+0
-7
show-header.html.tmpl
template/en/default/bug/show-header.html.tmpl
+0
-6
No files found.
js/field.js
View file @
406dcbbc
...
...
@@ -1083,33 +1083,3 @@ function updateRemainingTime() {
// if the remaining time is changed manually, update bz_remaining_time
bz_remaining_time
=
document
.
changeform
.
remaining_time
.
value
;
}
var
keys
=
[];
function
keys_pressed
(
e
,
bug_id
)
{
// Store an entry for every key pressed
keys
[
e
.
keyCode
]
=
true
;
// (Ctrl XOR cmd) + Shift + P
if
((
!
keys
[
17
]
!=
!
keys
[
224
])
&&
keys
[
16
]
&&
keys
[
80
])
{
// Check if we are already in preview mode
if
(
YAHOO
.
util
.
Dom
.
hasClass
(
'comment_preview_tab'
,
'active_comment_tab'
)){
show_comment_edit
();
document
.
getElementById
(
'comment'
).
focus
();
YAHOO
.
util
.
Event
.
preventDefault
(
e
);
}
else
{
// Ensure that we switch to preview mode only if the textarea is in focus
var
comment
=
document
.
getElementById
(
'comment'
);
if
(
document
.
activeElement
==
comment
)
{
show_comment_preview
(
bug_id
);
YAHOO
.
util
.
Event
.
preventDefault
(
e
);
}
}
}
}
function
keys_released
(
e
)
{
// Mark keys that were released
keys
[
e
.
keyCode
]
=
false
;
}
\ No newline at end of file
template/en/default/attachment/create.html.tmpl
View file @
406dcbbc
...
...
@@ -11,13 +11,6 @@
[% header = BLOCK %]Create New Attachment for
[%+ "$terms.Bug $bug.bug_id" FILTER bug_link(bug) FILTER none %][% END %]
[% subheader = BLOCK %][% bug.short_desc FILTER html %][% END %]
[% javascript = BLOCK %]
YAHOO.util.Event.onDOMReady(function() {
YAHOO.util.Event.addListener(window, 'keydown', keys_pressed, [% bug.id FILTER none %]);
YAHOO.util.Event.addListener(window, 'keyup', keys_released);
});
[% END %]
[% PROCESS global/header.html.tmpl
title = title
...
...
template/en/default/bug/show-header.html.tmpl
View file @
406dcbbc
...
...
@@ -56,12 +56,6 @@
[% javascript FILTER none %]
[% END %]
[% END %]
[% javascript = BLOCK %]
YAHOO.util.Event.onDOMReady(function() {
YAHOO.util.Event.addListener(window, 'keydown', keys_pressed, [% bug.id FILTER none %]);
YAHOO.util.Event.addListener(window, 'keyup', keys_released);
});
[% END %]
[% style_urls = ['skins/standard/bug.css'] %]
[% doc_section = "using.html#anatomy-of-a-bug" %]
[% bodyclasses = ['bz_bug',
...
...
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