Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
douban-api-proxy
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
douban-api-proxy
Commits
61e0405f
Commit
61e0405f
authored
Jul 18, 2017
by
Jonathan Rehm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move TinyMCE into edit_books.js
parent
5715d27c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
edit_books.js
cps/static/js/edit_books.js
+7
-0
book_edit.html
cps/templates/book_edit.html
+0
-8
No files found.
cps/static/js/edit_books.js
View file @
61e0405f
...
...
@@ -3,6 +3,13 @@
*/
/* global Bloodhound, language */
tinymce
.
init
({
selector
:
'#description'
,
branding
:
false
,
menubar
:
'edit view format'
,
language
:
language
});
if
(
!
Modernizr
.
inputtypes
.
date
)
{
$
(
'#pubdate'
).
datepicker
({
format
:
'yyyy-mm-dd'
,
...
...
cps/templates/book_edit.html
View file @
61e0405f
...
...
@@ -200,14 +200,6 @@
{% if not g.user.locale == 'en' %}
<script
src=
"{{ url_for('static', filename='js/libs/bootstrap-datepicker/locales/bootstrap-datepicker.' + g.user.locale + '.min.js') }}"
charset=
"UTF-8"
></script>
{% endif %}
<script
type=
"text/javascript"
>
tinymce
.
init
({
selector
:
'#description'
,
branding
:
false
,
menubar
:
'edit view format'
,
language
:
'{{ g.user.locale }}'
});
</script>
<script
src=
"{{ url_for('static', filename='js/edit_books.js') }}"
></script>
{% endblock %}
{% block header %}
...
...
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