kuppayam 0.1.27 → 0.1.28

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: b80b6bdf0143d44d872a7c1c6b6f4ffe47a323d3
4
- data.tar.gz: 54f62ca7c82a575fc1311b595ea96507be9689c8
3
+ metadata.gz: 3bc60bd2680a4e050f279cd3c02f99d33c860640
4
+ data.tar.gz: 89cb6ac55e8c35b4efa330521810cbd975f9d7ee
5
5
  SHA512:
6
- metadata.gz: 76697ed6537a54d7790dd83a5060f21f5054858f7492daf9807663a1622b7f610859bcc9868eb7c3e384706ad0debffc6243ef1f9f0548831d019db221f0a98a
7
- data.tar.gz: 3f530ba7d5b91c581e85e7c535c81d3fb814615d5436e5e8e8c1c6a04844bb64d67293d4369c26bba175800e9d6be4ca3b47eba1a305f091be522945b1ba0766
6
+ metadata.gz: f6acfa2fa261a811896a4bc796016fb6006506d5ab3db70fa54d2da1f8f235de686567828d188c5c920c0cdf4a15d880271dea6e760f9ccdce81bd6dafd48372
7
+ data.tar.gz: 2561eef4780903fd388eba7e2ebba234e75e16b70ae190a816fa84b93fe6d516b77bf78dd94853c468302a41045a5be951c425b14c9383e55db4f78c7b399807
@@ -1,5 +1,5 @@
1
1
  // Load the form
2
- var heading = "Add <%= @resource_options[:collection_name].to_s.titleize %>";
2
+ var heading = "Add <%= @resource_options[:item_name].to_s.titleize %>";
3
3
  var bodyContent = "<%= escape_javascript(render(:partial=>"#{@resource_options[:view_path]}/form")) %>";
4
4
  showGenericModal(heading, bodyContent, true);
5
5
 
@@ -4,9 +4,11 @@
4
4
  $("#tr_<%= @resource_options[:item_name] %>_<%= @r_object.id %>").replaceWith("<%= escape_javascript(render(:partial=>"#{@resource_options[:view_path]}/row", locals: { @resource_options[:item_name].to_sym => @r_object, i: -1})) %>");
5
5
  $("#tr_<%= @resource_options[:item_name] %>_<%= @r_object.id %>").css("background-color", "#fffddd");
6
6
 
7
+ <% if @resource_options[:show_modal_after_update] %>
7
8
  // Refresh the modal content if it is open
8
9
  $("#div_<%= @resource_options[:item_name] %>_show").replaceWith("<%= escape_javascript(render(:partial=>"#{@resource_options[:view_path]}/show")) %>")
9
-
10
+ <%end %>
11
+
10
12
  // Closing the modal
11
13
  showAndHideModals();
12
14
 
@@ -4,8 +4,10 @@
4
4
  $("#tr_<%= @resource_options[:item_name] %>_<%= @r_object.id %>").replaceWith("<%= escape_javascript(render(:partial=>"#{@resource_options[:view_path]}/row", locals: { @resource_options[:item_name].to_sym => @r_object, i: -1})) %>");
5
5
  $("#tr_<%= @resource_options[:item_name] %>_<%= @r_object.id %>").css("background-color", "#fffddd");
6
6
 
7
+ <% if @resource_options[:show_modal_after_update] %>
7
8
  // Refresh the modal content if it is open
8
9
  $("#div_<%= @resource_options[:item_name] %>_show").replaceWith("<%= escape_javascript(render(:partial=>"#{@resource_options[:view_path]}/show")) %>")
10
+ <%end %>
9
11
 
10
12
  // Closing the modal
11
13
  showAndHideModals();
@@ -1,3 +1,3 @@
1
1
  module Kuppayam
2
- VERSION = '0.1.27'
2
+ VERSION = '0.1.28'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kuppayam
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.27
4
+ version: 0.1.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - kpvarma