abstracted 0.4.13 → 0.4.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/abstracted/app.fab_delete.coffee +6 -5
- data/app/helpers/fab_button_helper.rb +1 -0
- data/app/views/abstract_resources/edit.html.haml +3 -1
- data/app/views/abstract_resources/new.html.haml +3 -1
- data/app/views/abstract_resources/show.html.haml +1 -1
- data/lib/abstracted/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e94662b590205430d680f86c0c0dcaac7588d9b5
|
4
|
+
data.tar.gz: b89dceacbb970ccf25f2f1f695b9462ee5807dc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66f9faaff4a646fa1dc926413114a6ce6f197f49684d6ed3a5438d38dd1dc46d8f621b2e24c1489bd26824ad70850e90bd96e0790935b265f24c39fd3fc6c9d8
|
7
|
+
data.tar.gz: b35cbb3780b953daf5b6593187de5004ae6c37ed7d3d7653f145b44b5bfbaedc675c489b1ec6995fd6728386e31f5be968b3efbba7294797ec779a2223a646fe
|
@@ -59,10 +59,11 @@ class App.fabDelete
|
|
59
59
|
loaded_element = elem.closest('.fixed-action-btn')
|
60
60
|
|
61
61
|
switch elem.data('action')
|
62
|
-
when
|
63
|
-
when '
|
64
|
-
when '
|
65
|
-
when '
|
62
|
+
when undefined then alert 'Fejl!\n Kontakt ALCO på 9791 1470\n (fejlen er: handleFABLinks ikke sat)'
|
63
|
+
when 'new' then App.shared.openNewWindow(elem) # data-action="new", data-url="/endpoint", data-selector="#id.modal"
|
64
|
+
when 'submit' then App.shared.submitForm(elem) # data-action="submit", data-selector="form"
|
65
|
+
when 'ajax' then App.shared.callAjax(elem,loaded_element) # data-action="ajax", data-url="/endpoint", data-selector="#id.modal", data-method="get", data-type="html"
|
66
|
+
when 'get' then window.location.href = elem.data('url') # data-action="get", data-url="/endpoint"
|
66
67
|
else eval(elem.data('action')) # data-action="$(document.body).trigger({ type: 'app:modal:state:changed', state: {print_format: 'record' }})"
|
67
68
|
|
68
69
|
|
@@ -118,5 +119,5 @@ class App.fabDelete
|
|
118
119
|
$(document.body).on 'click.fab', 'a.fab-button', @handleFABLinks
|
119
120
|
|
120
121
|
catch error
|
121
|
-
alert 'App.fabDelete did not prepare!'
|
122
|
+
alert 'Fejl!\nLuk din browser og start igen - hvis fejlen stadig opstår, ring så til ALCO på tlf 9791 1470\nFejl: App.fabDelete did not prepare!'
|
122
123
|
console.log error
|
@@ -3,4 +3,6 @@
|
|
3
3
|
%h3= render partial: 'title'
|
4
4
|
- @disabled = false
|
5
5
|
= render 'form'
|
6
|
-
=
|
6
|
+
= render partial: 'edit'
|
7
|
+
- unless params[:format] == 'js'
|
8
|
+
= build_fab_button build_fab_options( resource, fab_button_options.merge!( action: params[:action] ))
|
@@ -3,4 +3,6 @@
|
|
3
3
|
%h3= render partial: 'title'
|
4
4
|
- @disabled = false
|
5
5
|
= render 'form'
|
6
|
-
=
|
6
|
+
= render partial: 'new'
|
7
|
+
- unless params[:format] == 'js'
|
8
|
+
= build_fab_button build_fab_options( resource, fab_button_options.merge!( action: params[:action] ))
|
data/lib/abstracted/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: abstracted
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Walther H Diechmann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|