thecore_ui_partial_snippets 1.1.10 → 1.1.11

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
- SHA1:
3
- metadata.gz: '038f5841c5572963a5efe7d7f77718fe12a16fd9'
4
- data.tar.gz: 11f135e5859aac8dcb346649a4e46013207013d9
2
+ SHA256:
3
+ metadata.gz: 6370d1dc1a4e29279b9faefe47e13b0bfef926a0ce1f4be32e553395d441e5ec
4
+ data.tar.gz: 3b73ea45fe176957689605bbb17c7f4a21b022e88ddc7f2c02bd760478a3183e
5
5
  SHA512:
6
- metadata.gz: f2c51417551db99a00e560a55e76e3d087932967e229db5c16c02c2801e79a44d3c45c1fb253720dab108de0b8e0a18683c988f9543a846a1da165be88ee2dda
7
- data.tar.gz: 96757ccc180c44c33cbfbbdf12f4cf08c868ac38b97f930b886c1cdb5e69da65f0de8167911f753fc9de186dc034cc7f33497ae9aedb615b60938f61b78bc181
6
+ metadata.gz: 6a73abb6bb9d5ec28767272bc2e3e2c4ba1d5e9dcfafae65db40c5fe5efe3947fd7bf4186b2777eb8b9eabbbc08a57a271603bf2ad62aad3f273013035e8a3cb
7
+ data.tar.gz: ec77a465efb5c507f1e00ed1050de9da3bf9d669d5675a1842bc9498014def68b2c4a1c40628e5c14d63bd5cb6e0afe29d01bf75b654bba280f3a96b8e09a2c6
@@ -28,7 +28,38 @@
28
28
  dtParams.format = "L";
29
29
  jqueryObj.datetimepicker(dtParams).on('dp.change', function (e){
30
30
  returnedData[id.replace(/-/g, '_')] = e.date.format();
31
+ $(this).datetimepicker('hide');
31
32
  });
32
33
  return jqueryObj;
33
34
  }
35
+
36
+ function buildDatePicker(id, initialValue) {
37
+ var html = '<div class="input-group date" id="' + id + '">';
38
+ html += '<input type="text" class="form-control" />';
39
+ html += '<label class="input-group-addon"><i class="fa fa-fw fa-calendar"></i></label>';
40
+ html += '</div>';
41
+ var jqueryObj = $(html);
42
+ var dtParams = {
43
+ locale: "<%=I18n.locale%>",
44
+ defaultDate: initialValue,
45
+ allowInputToggle: true,
46
+ format: 'L',
47
+ icons: {
48
+ time: 'fa fa-clock',
49
+ date: 'fa fa-calendar',
50
+ up: 'fa fa-chevron-up',
51
+ down: 'fa fa-chevron-down',
52
+ previous: 'fa fa-chevron-left',
53
+ next: 'fa fa-chevron-right',
54
+ today: 'fa fa-calendar-check',
55
+ clear: 'fa fa-trash',
56
+ close: 'fa fa-times'
57
+ }
58
+ }
59
+ jqueryObj.datetimepicker(dtParams).on('dp.change', function (e){
60
+ $(this).datetimepicker('hide');
61
+ //returnedData[id.replace(/-/g, '_')] = e.date.format();
62
+ });
63
+ return jqueryObj;
64
+ }
34
65
  </script>
@@ -1,3 +1,3 @@
1
1
  module ThecoreUiPartialSnippets
2
- VERSION = '1.1.10'.freeze
2
+ VERSION = '1.1.11'.freeze
3
3
  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.10
4
+ version: 1.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-16 00:00:00.000000000 Z
11
+ date: 2019-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore
@@ -57,8 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
57
57
  - !ruby/object:Gem::Version
58
58
  version: '0'
59
59
  requirements: []
60
- rubyforge_project:
61
- rubygems_version: 2.6.14
60
+ rubygems_version: 3.0.1
62
61
  signing_key:
63
62
  specification_version: 4
64
63
  summary: Rails partials useful in Thecore Atomic Components.