thecore_ui_partial_snippets 1.1.7 → 1.1.8

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
  SHA1:
3
- metadata.gz: 5a7be3508a62e35d0ba5404bb8c8bb2e07ad5310
4
- data.tar.gz: 0a14f6fe5f54c6fdc81684989a108db7577b80d3
3
+ metadata.gz: 2cfc1a42b7e423aa80efc9e61f993b167c50971a
4
+ data.tar.gz: 9df3d08d6d65edc6a6f61ed4ee6e27ef208a6ad3
5
5
  SHA512:
6
- metadata.gz: '01691e1cbabc364cf781023d2af316d574622a97fd65bf55afad84e8f21897918c7bc8a3a8f4758b7fcc2f30df8406e640f2ead28d57ee699b69dc5c0a663f5b'
7
- data.tar.gz: a4d9a7f5dc13a1206a828ff897b4dd9fff1e3d67c29407d2999f64061f694f476cb564430efb5916b79fb8d953ebc29419e1b87c27d9a7cb2471e6e942f6e2e8
6
+ metadata.gz: 46fe6735599fa6b3ef727ba8f3b78a8fe9b08039960a283242afe71b5acbf707a79d4f7af7d203e077d6208259740677d8a8c772b6b4f8d93a72031755f6e730
7
+ data.tar.gz: 4ea3981776d4b42c0e684fbf99e66125678584ea3f390f61a149dded90792631dc9017b0d5a0b2c7ee19bfb8214cbcd11f97260581b185229427fcfbd226de86
@@ -2,7 +2,7 @@
2
2
  function buildDTPicker(id, label, initialValue, ro, date_only){
3
3
  var html = '<div class="input-group date" default-date="'+initialValue+'">';
4
4
  html += '<label class="input-group-addon">'+label+'</label>';
5
- html += '<input class="form-control" type="text" name="'+id+'" readonly/>';
5
+ html += '<input class="form-control" type="text" readonly/>';
6
6
  html += '<label class="input-group-addon"><i class="fa fa-fw fa-calendar"></i></label>';
7
7
  html += '</div>';
8
8
  var jqueryObj = $(html);
@@ -26,7 +26,9 @@
26
26
  }
27
27
  if(date_only)
28
28
  dtParams.format = "L";
29
- jqueryObj.datetimepicker(dtParams);
29
+ jqueryObj.datetimepicker(dtParams).on('dp.change', function (e){
30
+ returnedData[id.replace(/-/g, '_')] = e.date.format();
31
+ });
30
32
  return jqueryObj;
31
33
  }
32
34
  </script>
@@ -1,3 +1,3 @@
1
1
  module ThecoreUiPartialSnippets
2
- VERSION = '1.1.7'.freeze
2
+ VERSION = '1.1.8'.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.7
4
+ version: 1.1.8
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-02-20 00:00:00.000000000 Z
11
+ date: 2018-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore