combo_auto_box 0.0.42 → 0.0.43

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: 7c7b23b9c95db9f2529c12c426ec3fa615f315db
4
- data.tar.gz: 7ca652a7161675f1a9ae49ed76b1b57684ffcd0d
3
+ metadata.gz: 4f444e5cbe3ac0648bed00bd1f3ca60e71cd4b01
4
+ data.tar.gz: 1f7df631a41667b9af72a167231caa759ff48743
5
5
  SHA512:
6
- metadata.gz: 2e79659af6b0dec4d9fe21739275ac1771b5b5560fbb5d3979dbc1e0bb3c8c2a712b92c868c2121dd69b85cc03cd620d34b59849a0eee720de6eed8bce4f9f73
7
- data.tar.gz: aa92f844a1dcb65dd10eac1fbd85d25c3fc40c99426915da3da506c2e9f869665389d55933500dd806e2c38e6988ccbe642a05b8083b78c5f89c4da2bcf2a4db
6
+ metadata.gz: d9f772a423cabba75a7ccb6adf0847f3f8a37e2e53a9bf7bf3851dcb68e6c6d70e7a16b9105cb1c6abca676c355d2c1ea35821e0963aa6acf638201f504634a3
7
+ data.tar.gz: 37988d24056b81e386a4a48b99ca49fad400de9aff7eb6fbbb790a7f1e03fb78e896e588afaa7f6a7169582d25446c2b795595231772f25952d8201a12974e0c
@@ -1,3 +1,3 @@
1
1
  module ComboAutoBox
2
- VERSION = '0.0.42'
2
+ VERSION = '0.0.43'
3
3
  end
@@ -519,13 +519,17 @@ var ComboAutoBox = {
519
519
  '</div>' +
520
520
  '</div>' +
521
521
  '</div>';
522
-
523
- $(modal).appendTo('#' + container);
522
+
523
+ if (options.appendModalTo != null) {
524
+ $(modal).appendTo(options.appendModalTo);
525
+ } else {
526
+ $(modal).appendTo('#' + container);
527
+ }
524
528
 
525
529
  getListForModalDialog(modalDialogId);
526
530
 
527
- $(targetObject).click(function() {
528
- $('#' + modalDialogId).modal('show');
531
+ $(targetObject).click(function() {
532
+ $('#' + modalDialogId).modal('show');
529
533
  // fix to allways show back-shadow
530
534
  $('.modal-backdrop').css('z-index', parseInt($('#' + modalDialogId).css("z-index")) - 1);
531
535
  });
@@ -533,6 +537,18 @@ var ComboAutoBox = {
533
537
  $('div#' + modalDialogId + ' > div.modal-dialog > div.modal-content > div.modal-footer > button.selectAll').click(function() {
534
538
  selectAllData(container, modalDialogId);
535
539
  });
540
+
541
+ $('#' + modalDialogId).on('hide.bs.modal', function (e) {
542
+ if (options.onHideModal != null) {
543
+ options.onHideModal();
544
+ }
545
+ });
546
+
547
+ $('#' + modalDialogId).on('show.bs.modal', function (e) {
548
+ if (options.onShowModal != null) {
549
+ options.onShowModal();
550
+ }
551
+ });
536
552
  };
537
553
 
538
554
  // Selects an item form modal dialog when clicked on
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: combo_auto_box
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.42
4
+ version: 0.0.43
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adilson Chacon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-12 00:00:00.000000000 Z
11
+ date: 2016-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec