Skip to content
This repository has been archived by the owner on Jun 29, 2020. It is now read-only.

Commit

Permalink
ブログカテゴリの追加UIが消えていたのを元に戻した
Browse files Browse the repository at this point in the history
  • Loading branch information
giginet committed Sep 23, 2014
1 parent 8a28e30 commit 21c2e7a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/kawaz/statics/coffee/category.coffee
Expand Up @@ -2,6 +2,10 @@
angular.kawaz.controller('BlogCategoryController', ($scope, $http) ->
# カテゴリ選択用のフィールド
$categorySelect = $('#id_category')
$addButton = $(".blog-category-add-button").parent()
$addButton.remove()
$categorySelect.after($addButton)

$dialog = $('#blog-category-dialog').on('show.bs.modal', ->
$input = $(@).find("input[type='text']")
.hide()
Expand Down
1 change: 1 addition & 0 deletions src/kawaz/templates/blogs/entry_form.html
Expand Up @@ -34,6 +34,7 @@ <h1>新しいブログエントリーを作成</h1>
{% block tab-content %}
<div class="tab-pane active" id="editor-main" ng-init="previewURL = '{% url 'blogs_entry_preview' %}';">
{% crispy form %}
<p><a href="#" class="blog-category-add-button" data-toggle="modal" data-target="#blog-category-dialog"><span class="glyphicon glyphicon-plus"></span>新しいカテゴリを作る</a></p>
</div>
{% endblock %}
{% block post_javascript %}
Expand Down

0 comments on commit 21c2e7a

Please sign in to comment.