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
33836267
Commit
33836267
authored
Sep 07, 2020
by
杨昕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
512a12a2
Pipeline
#11165
passed with stages
in 58 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 @
33836267
...
@@ -43,6 +43,7 @@
...
@@ -43,6 +43,7 @@
<br>
<br>
<form
id=
"newForm"
>
<form
id=
"newForm"
>
<input
type=
"hidden"
name=
"_token"
value=
"{{csrf_token()}}"
>
<input
type=
"hidden"
name=
"_token"
value=
"{{csrf_token()}}"
>
<input
type=
"hidden"
name=
"media_type"
value=
"{{$media["
media_type_id
"]}}"
>
{{ method_field('PUT')}}
{{ method_field('PUT')}}
<div
class=
"form-group"
>
<div
class=
"form-group"
>
...
@@ -177,7 +178,7 @@
...
@@ -177,7 +178,7 @@
console
.
log
(
"formdata"
,
formdata
)
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
)
{
if
(
res
.
code
==
200
)
{
$
(
'body'
).
toast
({
$
(
'body'
).
toast
({
position
:
'fixed'
,
position
:
'fixed'
,
...
@@ -186,7 +187,7 @@
...
@@ -186,7 +187,7 @@
top
:
'50%'
top
:
'50%'
});
});
setTimeout
(
function
()
{
setTimeout
(
function
()
{
window
.
location
.
href
=
'/web/media_m
anager
'
;
window
.
location
.
href
=
'/web/media_m
odel
'
;
},
2000
)
},
2000
)
}
else
{
}
else
{
...
...
resources/views/admin/media/media_list.blade.php
View file @
33836267
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
<div
class=
"row ml20"
>
<div
class=
"row ml20"
>
<div
class=
"xblock"
>
<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>
</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