itsf_backend 1.1.0 → 1.1.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: 0ffa546d06fa0354188bd813e8008669f78c7414
4
- data.tar.gz: 8beb0930dca5b42b1255e7d8eca157c0f2073c89
3
+ metadata.gz: 7c5effb4be53bb3a4a8279de9c0a910c577fecb1
4
+ data.tar.gz: a09098bb1dbab6ab603ce5c34b18e2405b2800e3
5
5
  SHA512:
6
- metadata.gz: 3805570e74492a6b1319c473f7973a8dbe99fd5a40fe9c105a926f6bd9624b051e5779aaead6fbe84f7afcd2795a0fdd1db59b1bc467ff42f447645ab68f26d8
7
- data.tar.gz: 9bf3b6ce775cc2146332376515ba3cf12ecfea1f6eed1b04757bcaaf3efccec756622e3b7f9ef0bf3215ab16d37fd88912b0dbc8755a9b5fd0d342ae9665873a
6
+ metadata.gz: 91be9828da2c14bf90776a7f5ab58d8fb97d504de53e1e6bdbaf570e02839640b11817b61f7fec80b564af78015385f3fe5270f625a65f04e603bc0d5ceff300
7
+ data.tar.gz: 603ce2173b887de39fbbd51d47d85453a0f4352194593ae5fcaf0b2be6dc9527da64ddc19c963d432201cf71c8ffb456785b9515b7cb067d088b1b0bf4e4168b
@@ -397,6 +397,9 @@
397
397
  function swapNodes(a, b) {
398
398
  var aparent = a.parentNode;
399
399
  var asibling = a.nextSibling === b ? a : a.nextSibling;
400
+ if(b === undefined) {
401
+ return;
402
+ }
400
403
  b.parentNode.insertBefore(a, b);
401
404
  aparent.insertBefore(b, asibling);
402
405
  }
@@ -1,8 +1,2 @@
1
1
  - resource_class.attribute_names.delete_if { |name| Itsf::Backend.hidden_attributes_for[:edit].include?(name.to_sym) }.each do |name|
2
- - if form.object.class.columns_hash[name].type == :hstore
3
- = simple_fields_for name do |hstore_form|
4
- - if form.object.send(name).respond_to?(:each)
5
- - form.object.send(name).each do |key, value|
6
- = hstore_form.input key, input_html: { value: value }
7
- - else
8
- = form.input name
2
+ = form.input name
@@ -1,5 +1,5 @@
1
1
  module Itsf
2
2
  module Backend
3
- VERSION = '1.1.0'
3
+ VERSION = '1.1.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itsf_backend
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-19 00:00:00.000000000 Z
11
+ date: 2016-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails