drg_resources_plugin 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dded601b12b36c4c6e51e849f6df0182a798647bac3c4b10e1de925620019100
4
- data.tar.gz: 95a5955a9b54431544927406790c0f03651725515b43a43ca8c75d6064e6f51e
3
+ metadata.gz: 5926d489193b040feaa9fc2401ca383b05c0d63e353722342d89db80e948cb4e
4
+ data.tar.gz: 9efece4df8836e08499336c490c73e037eb3e9d226d0cc48fd01e6ffb71eb635
5
5
  SHA512:
6
- metadata.gz: 7fc9d2777264428dc007a2375ab2b1fab63bfa717a935ea0ffce528cb2ae0217a139c3bfa7a42c93309ca593ab5316466a96139dbeb2cac298a9afc4c2c1594b
7
- data.tar.gz: 4487e2a5d3b94cbe22ad8e1e5e845112f46c0f077725ca29928c04d464c5fb7f07b5e4c6b6602498a813c0afec624606750fa11e7a1bb7083fa340da5d498469
6
+ metadata.gz: 386dddaa6c540a02b3d149eee86395b8f03df54c56194be18cdcff32e190711ade5d6e0e379da7804d566f72dd31640b615e7fb5574b293de196fd05584472f9
7
+ data.tar.gz: c66839ff3b79f04aa273ac2232961fa215ec4ee37ab51164fdfe2e9ee2f9fe30dc5712aae691b4f8ffe32492a523145db7180b5ed1aa5e3aff508958ac4c430a
@@ -38,15 +38,11 @@ $('#category').bind('change', function() {
38
38
  });
39
39
 
40
40
  /*******************************************************************
41
- * Popup CMS edit menu option clicked
41
+ * Resources: View or delete resource resetvation.
42
42
  *******************************************************************/
43
- $('.resources-table .usage div').on('click',function(e) {
44
- var url = e.target.getAttribute("data-url");
45
- // $('#iframe_edit').attr('src', url);
46
- $('#iframe_edit').bPopup({
47
- content:'iframe', //'ajax', 'iframe' or 'image'
48
- contentContainer: '.content',
49
- loadUrl: url
50
- });
43
+ $('.resource-usage').on('click',function(e) {
44
+ var url = $(this).data('url');
45
+ $('#iframe_edit').attr('src', url);
46
+
51
47
  });
52
48
  });
@@ -36,7 +36,7 @@ def render_usages(resource_usages, date)
36
36
  next if time1 == time2
37
37
  # url for displaying detail data
38
38
  url = "/cms/#{usage.id}/edit?form_name=resource_usage_show&table=resource_usage"
39
- html << %Q[<div title="Click to view" data-url="#{url}"><b>#{time1} - #{time2}</b><br>#{usage.description}</div>]
39
+ html << %Q[<div class="resource-usage" title="Click to view" data-url="#{url}"><b>#{time1} - #{time2}</b><br>#{usage.description}</div>]
40
40
  end
41
41
  end
42
42
  html.html_safe
@@ -18,7 +18,9 @@
18
18
  <%= javascript_tag(date_picker.js) %>
19
19
  <hr class='hr-separator'>
20
20
 
21
- <% # = dc_iframe_edit(nil) %>
22
- <div id='iframe_edit' name='iframe_edit'>
21
+ <%= dc_iframe_edit(nil) %>
23
22
  <div class="content"></div>
24
- </div>
23
+ <!--
24
+ <div id="iframe_edit" name="iframe_edit"></div>
25
+ <div class="content"></div>
26
+ -->
@@ -1,3 +1,3 @@
1
1
  module DrgResourcesPlugin
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: drg_resources_plugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damjan Rems
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-22 00:00:00.000000000 Z
11
+ date: 2019-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails