Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
media-resource
Overview
Overview
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨昕
media-resource
Commits
19d2b729
Commit
19d2b729
authored
Sep 07, 2020
by
杨昕
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test' into 'master'
test See merge request
!25
parents
f8a0c649
33836267
Pipeline
#11167
passed with stages
in 45 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
media_edit.blade.php
resources/views/admin/media/media_edit.blade.php
+3
-2
media_list.blade.php
resources/views/admin/media/media_list.blade.php
+1
-1
No files found.
resources/views/admin/media/media_edit.blade.php
View file @
19d2b729
...
...
@@ -43,6 +43,7 @@
<br>
<form
id=
"newForm"
>
<input
type=
"hidden"
name=
"_token"
value=
"{{csrf_token()}}"
>
<input
type=
"hidden"
name=
"media_type"
value=
"{{$media["
media_type_id
"]}}"
>
{{ method_field('PUT')}}
<div
class=
"form-group"
>
...
...
@@ -177,7 +178,7 @@
console
.
log
(
"formdata"
,
formdata
)
fetch_response
(
'POST'
,
"/web/media_m
anager
/{{$media['_id']}}"
,
formdata
).
then
(
function
(
res
)
{
fetch_response
(
'POST'
,
"/web/media_m
odel
/{{$media['_id']}}"
,
formdata
).
then
(
function
(
res
)
{
if
(
res
.
code
==
200
)
{
$
(
'body'
).
toast
({
position
:
'fixed'
,
...
...
@@ -186,7 +187,7 @@
top
:
'50%'
});
setTimeout
(
function
()
{
window
.
location
.
href
=
'/web/media_m
anager
'
;
window
.
location
.
href
=
'/web/media_m
odel
'
;
},
2000
)
}
else
{
...
...
resources/views/admin/media/media_list.blade.php
View file @
19d2b729
...
...
@@ -32,7 +32,7 @@
<div
class=
"row ml20"
>
<div
class=
"xblock"
>
<button
class=
"btn btn-primary"
onclick=
"x_admin_show('/web/media_m
anager
/create')"
>
<button
class=
"btn btn-primary"
onclick=
"x_admin_show('/web/media_m
odel
/create')"
>
添加
</button>
...
...
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