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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3bc60bd2680a4e050f279cd3c02f99d33c860640
|
4
|
+
data.tar.gz: 89cb6ac55e8c35b4efa330521810cbd975f9d7ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6acfa2fa261a811896a4bc796016fb6006506d5ab3db70fa54d2da1f8f235de686567828d188c5c920c0cdf4a15d880271dea6e760f9ccdce81bd6dafd48372
|
7
|
+
data.tar.gz: 2561eef4780903fd388eba7e2ebba234e75e16b70ae190a816fa84b93fe6d516b77bf78dd94853c468302a41045a5be951c425b14c9383e55db4f78c7b399807
|
@@ -1,5 +1,5 @@
|
|
1
1
|
// Load the form
|
2
|
-
var heading = "Add <%= @resource_options[:
|
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();
|
data/lib/kuppayam/version.rb
CHANGED