thecore_ui_partial_snippets 1.1.3 → 1.1.5
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: 59e6bc9121949e91406948ffc25c8a8d00f9ff8a
|
4
|
+
data.tar.gz: 2c39a0817e91bf8b1070a20c31ab4775c1a229b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b395b09c1b533c1cd3a96803079d561c046137c8c0c7037c6f3d9fa7743ddbc9279b26d691a54956446bab7521762e6d435381d44fd6801def137cf9797153e
|
7
|
+
data.tar.gz: 8b65ac0b3b3e61ec1598f79010be2823646733c7308b84f5bd5a36b8793b0e9d74427dac8140828ff9e0e1b29438754d0cb9ba90ae624449ed314d8f8be18492
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<script>
|
2
|
-
|
3
|
-
|
2
|
+
function buildDTPicker(id, label, initialValue, ro){
|
3
|
+
var html = '<div class="input-group date" default-date="'+initialValue+'">';
|
4
4
|
html += '<label class="input-group-addon">'+label+'</label>';
|
5
5
|
html += '<input class="form-control" type="text" name="'+id+'" readonly/>';
|
6
6
|
html += '<label class="input-group-addon"><i class="fa fa-fw fa-calendar"></i></label>';
|
@@ -9,7 +9,7 @@
|
|
9
9
|
jqueryObj.datetimepicker({
|
10
10
|
locale: "<%=I18n.locale%>",
|
11
11
|
defaultDate: initialValue,
|
12
|
-
ignoreReadonly:
|
12
|
+
ignoreReadonly: !ro,
|
13
13
|
allowInputToggle: true,
|
14
14
|
sideBySide: true,
|
15
15
|
icons: {
|
@@ -25,5 +25,5 @@
|
|
25
25
|
},
|
26
26
|
});
|
27
27
|
return jqueryObj;
|
28
|
-
|
28
|
+
}
|
29
29
|
</script>
|
@@ -3,9 +3,9 @@ module ThecoreUiPartialSnippets
|
|
3
3
|
# This code makes the static assets present in this
|
4
4
|
# engine available to main app, even if this gem is
|
5
5
|
# just a dependency of another engine
|
6
|
-
initializer 'thecore_dataentry_commons.load_static_assets' do |app|
|
7
|
-
|
8
|
-
|
9
|
-
end
|
6
|
+
# initializer 'thecore_dataentry_commons.load_static_assets' do |app|
|
7
|
+
# puts "Loading static assets for #{root}"
|
8
|
+
# app.middleware.use ::ActionDispatch::Static, "#{root}/app"
|
9
|
+
# end
|
10
10
|
end
|
11
11
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thecore_ui_partial_snippets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriele Tassoni
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thecore
|