Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
pm-tools
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
Registry
Registry
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Yaroslav Lushnikov
pm-tools
Commits
0d89d300
Commit
0d89d300
authored
Apr 02, 2020
by
Yaroslav Lushnikov
🦆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Few changes
parent
ef02ce0f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
manifest.json
extension/manifest.json
+1
-1
search.js
extension/scripts/pm/search.js
+8
-2
No files found.
extension/manifest.json
View file @
0d89d300
{
"manifest_version"
:
2
,
"name"
:
"i20 tools"
,
"version"
:
"0.
0.5
"
,
"version"
:
"0.
1.0
"
,
"icons"
:
{
"16"
:
"images/logo_square.png"
,
"32"
:
"images/logo_square.png"
,
...
...
extension/scripts/pm/search.js
View file @
0d89d300
...
...
@@ -16,12 +16,12 @@
$
(
'body'
).
bind
(
'keydown'
,
function
(
event
)
{
if
(
search
.
wrapper
.
hasClass
(
'hide-form'
)
&&
(
event
.
altKey
===
true
&&
(
event
.
keyCode
===
68
||
event
.
keyCode
===
206
)))
{
(
event
.
altKey
===
true
&&
(
event
.
keyCode
===
68
||
event
.
keyCode
===
206
||
event
.
keyCode
===
75
)))
{
search
.
showForm
();
event
.
preventDefault
();
}
else
if
(
!
search
.
wrapper
.
hasClass
(
'hide-form'
))
{
if
(
event
.
keyCode
===
27
||
(
event
.
altKey
===
true
&&
(
event
.
keyCode
===
68
||
event
.
keyCode
===
206
)))
{
if
(
event
.
keyCode
===
27
||
(
event
.
altKey
===
true
&&
(
event
.
keyCode
===
68
||
event
.
keyCode
===
75
||
event
.
keyCode
===
206
)))
{
search
.
closeForm
();
event
.
preventDefault
();
}
...
...
@@ -52,6 +52,9 @@
event
.
preventDefault
();
return
false
;
}
else
{
search
.
input
.
focus
();
}
});
};
...
...
@@ -102,6 +105,9 @@
search
.
found
.
append
(
'Введите API ключ в настройках экстеншена.'
)
}
}
else
{
search
.
found
.
html
(
''
)
}
}
search
.
getApiKey
=
function
()
{
...
...
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