qbrick 2.5.0 → 2.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cbc6383e5dcb546e55e7bb7ee0031c30fe1444a1
4
- data.tar.gz: df58035ffe10022dd61d3b3125428cb2d7d9e37e
3
+ metadata.gz: 804014427b99e939f821cc5e765471277c9a1fb4
4
+ data.tar.gz: 3bf8c10faa4a43073d0917b6f764f310f9be17e6
5
5
  SHA512:
6
- metadata.gz: f5b3d0e6dc9aecc3ab98fca0292822f41e26cdde76f34a28f16522164bc7fb850f66f2c9c027ca915223aadeb2f763808316b0901a4b794b07234690c499f2c9
7
- data.tar.gz: aac7dffced31342c8a6fd4afded9f15eeb5dfb874138840ec0fa4197734b796c887c4d41700e70e0dd720d0031eb34bf64cedd1642e6a507c79b5cac87337d77
6
+ metadata.gz: 9d450b05fa732ee0ae4b2480b7555bdebafbd28d88fafb054921f6ce150491c0874b28e2b6243da72b21c33c510cb3a1f64b2f19b8c6d3fd2a4bab85f70f2164
7
+ data.tar.gz: 2c4e15dfe45d8d0d06c0e3958cb09024da21f04d694f8c3a15582c15bfa589d3233a8f918720bce3ad923a6a16cc8b32c4c185d664768165b39fc0dd4cf51924
@@ -50,7 +50,6 @@ module Qbrick
50
50
  def destroy
51
51
  @page = Qbrick::Page.find(params[:id])
52
52
  @page.destroy
53
- redirect_to qbrick.cms_pages_path
54
53
  end
55
54
 
56
55
  def sort
@@ -8,7 +8,7 @@
8
8
 
9
9
  .button-group
10
10
  - if page.children.empty?
11
- = link_to qbrick.cms_page_path(page), confirm: t('qbrick.cms.backend.confirm_delete', name: page.title), method: :delete, class: 'btn btn-small btn-danger' do
11
+ = link_to qbrick.cms_page_path(page), data: { confirm: t('qbrick.cms.backend.confirm_delete', name: page.title) }, method: :delete, class: 'btn btn-small btn-danger', remote: true do
12
12
  %i.icon-trash.icon-white
13
13
 
14
14
  = link_to qbrick.new_cms_page_path(parent_id: page.id), class: 'btn btn-small' do
@@ -0,0 +1,2 @@
1
+ var pageId = <%= @page.id %>;
2
+ $('[data-id='+ pageId +']').fadeOut();
@@ -1,3 +1,3 @@
1
1
  module Qbrick
2
- VERSION = '2.5.0'
2
+ VERSION = '2.5.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qbrick
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0
4
+ version: 2.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Immanuel Häussermann
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2015-04-23 00:00:00.000000000 Z
15
+ date: 2015-04-30 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rspec-rails
@@ -640,6 +640,7 @@ files:
640
640
  - app/views/qbrick/cms/pages/_branch.html.haml
641
641
  - app/views/qbrick/cms/pages/_form.html.haml
642
642
  - app/views/qbrick/cms/pages/_mirror_modal.html.haml
643
+ - app/views/qbrick/cms/pages/destroy.js.erb
643
644
  - app/views/qbrick/cms/pages/edit.html.haml
644
645
  - app/views/qbrick/cms/pages/index.html.haml
645
646
  - app/views/qbrick/cms/pages/mirror.js.haml