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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8356a5cae50252a773af6e9e9bc3d018f528b457
4
- data.tar.gz: 6a9b34b1d54fe93e2247092b568a2bdf12cfeb30
3
+ metadata.gz: e94662b590205430d680f86c0c0dcaac7588d9b5
4
+ data.tar.gz: b89dceacbb970ccf25f2f1f695b9462ee5807dc1
5
5
  SHA512:
6
- metadata.gz: c9b56efbf6988d4173710953b7dc4340536e7fef21ea8489d75383d847df1e355d6ebcbf70aba64992b1e468975cd72daf70205fc40cd4073d00a1a4e2541f37
7
- data.tar.gz: b933343e8ace51e0ce9b172ee8f2ba5561f28a5bbd191546347ba2ef939e4f37d540ce0d8671b178dd16349d5e0988db1f7f22ec0166bbb418f75c21beab1e79
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 'new' then App.shared.openNewWindow(elem) # data-action="new", data-url="/endpoint", data-selector="#id.modal"
63
- when 'submit' then App.shared.submitForm(elem) # data-action="submit", data-selector="form"
64
- 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"
65
- when 'get' then window.location.href = elem.data('url') # data-action="get", data-url="/endpoint"
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
@@ -62,6 +62,7 @@ LISTEND
62
62
  if !options[:items].nil?
63
63
  options[:items].each do |k,item|
64
64
  item[:ajax] ||= 'get'
65
+ item[:action] ||= item[:ajax]
65
66
  item[:oxremote] ||= 'false'
66
67
  item[:class] ||= ''
67
68
  item[:icon] ||= ''
@@ -3,4 +3,6 @@
3
3
  %h3= render partial: 'title'
4
4
  - @disabled = false
5
5
  = render 'form'
6
- = build_fab_button build_fab_options( resource, fab_button_options.merge!( action: params[:action] ))
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
- = build_fab_button build_fab_options( resource, fab_button_options.merge!( action: params[:action] ))
6
+ = render partial: 'new'
7
+ - unless params[:format] == 'js'
8
+ = build_fab_button build_fab_options( resource, fab_button_options.merge!( action: params[:action] ))
@@ -3,6 +3,6 @@
3
3
  %h3= render partial: 'title'
4
4
  - @disabled = true
5
5
  = render 'form'
6
+ = render partial: 'show'
6
7
  - unless params[:format] == 'js'
7
8
  = build_fab_button build_fab_options( resource, fab_button_options.merge!( action: params[:action] ))
8
- = render partial: 'show'
@@ -1,3 +1,3 @@
1
1
  module Abstracted
2
- VERSION = "0.4.13"
2
+ VERSION = "0.4.14"
3
3
  end
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.13
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: 2016-11-18 00:00:00.000000000 Z
11
+ date: 2017-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails