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 +4 -4
- data/lib/combo_auto_box/version.rb +1 -1
- data/vendor/assets/javascripts/combo-auto-box.js +20 -4
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4f444e5cbe3ac0648bed00bd1f3ca60e71cd4b01
|
|
4
|
+
data.tar.gz: 1f7df631a41667b9af72a167231caa759ff48743
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d9f772a423cabba75a7ccb6adf0847f3f8a37e2e53a9bf7bf3851dcb68e6c6d70e7a16b9105cb1c6abca676c355d2c1ea35821e0963aa6acf638201f504634a3
|
|
7
|
+
data.tar.gz: 37988d24056b81e386a4a48b99ca49fad400de9aff7eb6fbbb790a7f1e03fb78e896e588afaa7f6a7169582d25446c2b795595231772f25952d8201a12974e0c
|
|
@@ -519,13 +519,17 @@ var ComboAutoBox = {
|
|
|
519
519
|
'</div>' +
|
|
520
520
|
'</div>' +
|
|
521
521
|
'</div>';
|
|
522
|
-
|
|
523
|
-
|
|
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
|
-
|
|
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.
|
|
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-
|
|
11
|
+
date: 2016-01-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|