FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
roadmap/app/javascript/src/plans/index.js.erb at api-patch · DMPRoadmap/roadmap · GitHub
DMPRoadmap
roadmap
Repository navigation
Code
Issues
300
(300)
Pull requests
49
(49)
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
roadmap
/
app
/
javascript
/
src
/
plans
/
index.js.erb
Copy path
More file actions
More file actions
Latest commit
History
History
History
29 lines (26 loc) · 1 KB
Breadcrumbs
roadmap
/
app
/
javascript
/
src
/
plans
/
index.js.erb
Copy path
File metadata and controls
29 lines (26 loc) · 1 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import
*
as
notifier
from
'../utils/notificationHelper'
;
import
getConstant
from
'../utils/constants'
;
import
{
paginableSelector
}
from
'../utils/paginable'
;
$
(
(
)
=>
{
$
(
paginableSelector
)
.
on
(
'ajax:success'
,
'input.set_test_plan'
,
(
e
)
=>
{
const
checkbox
=
$
(
e
.
target
)
;
const
data
=
e
.
detail
[
0
]
;
if
(
data
.
code
===
1
&&
data
.
msg
&&
data
.
msg
!==
''
)
{
notifier
.
renderNotice
(
data
.
msg
)
;
}
else
{
notifier
.
renderAlert
(
data
.
msg
)
;
}
if
(
checkbox
.
is
(
':checked'
)
)
{
checkbox
.
parent
(
)
.
siblings
(
'.plan-visibility'
)
.
html
(
getConstant
(
'PLAN_VISIBILITY_WHEN_TEST'
)
)
.
attr
(
'title'
,
''
)
;
}
else
{
checkbox
.
parent
(
)
.
siblings
(
'.plan-visibility'
)
.
html
(
getConstant
(
'PLAN_VISIBILITY_WHEN_NOT_TEST'
)
)
.
attr
(
'title'
,
getConstant
(
'PLAN_VISIBILITY_WHEN_NOT_TEST_TOOLTIP'
)
)
;
}
}
)
;
$
(
paginableSelector
)
.
on
(
'ajax:error'
,
'input.set_test_plan'
,
(
e
)
=>
{
const
xhr
=
e
.
detail
(
2
)
;
notifier
.
renderAlert
(
xhr
.
responseText
)
;
}
)
;
$
(
'#create-modal'
)
.
modal
(
'show'
)
;
}
)
;
Back
|
FazBrowse Home
|
New Git URL