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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5926d489193b040feaa9fc2401ca383b05c0d63e353722342d89db80e948cb4e
|
|
4
|
+
data.tar.gz: 9efece4df8836e08499336c490c73e037eb3e9d226d0cc48fd01e6ffb71eb635
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 386dddaa6c540a02b3d149eee86395b8f03df54c56194be18cdcff32e190711ade5d6e0e379da7804d566f72dd31640b615e7fb5574b293de196fd05584472f9
|
|
7
|
+
data.tar.gz: c66839ff3b79f04aa273ac2232961fa215ec4ee37ab51164fdfe2e9ee2f9fe30dc5712aae691b4f8ffe32492a523145db7180b5ed1aa5e3aff508958ac4c430a
|
|
@@ -38,15 +38,11 @@ $('#category').bind('change', function() {
|
|
|
38
38
|
});
|
|
39
39
|
|
|
40
40
|
/*******************************************************************
|
|
41
|
-
*
|
|
41
|
+
* Resources: View or delete resource resetvation.
|
|
42
42
|
*******************************************************************/
|
|
43
|
-
$('.
|
|
44
|
-
var url =
|
|
45
|
-
|
|
46
|
-
|
|
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
|
-
|
|
22
|
-
<div id='iframe_edit' name='iframe_edit'>
|
|
21
|
+
<%= dc_iframe_edit(nil) %>
|
|
23
22
|
<div class="content"></div>
|
|
24
|
-
|
|
23
|
+
<!--
|
|
24
|
+
<div id="iframe_edit" name="iframe_edit"></div>
|
|
25
|
+
<div class="content"></div>
|
|
26
|
+
-->
|
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.
|
|
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-
|
|
11
|
+
date: 2019-11-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|