active_frontend 14.1.3 → 14.1.4
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: 7830346dc945a84812bc0cc72c5d7bd0d6292b57
|
4
|
+
data.tar.gz: 1cc4a5465102001188d40663149ff5f5f8500bf5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a0b5a850efb4d8284836576a4f0f0fd5c2fd6718f6e061f288a47fc6aeeb0ced31fd0727851c00b28eaca0ceb1504f4b8ad06d19aa58a4d7359f911180ca87d
|
7
|
+
data.tar.gz: e6f92503852fd1f6c319baee8cd5967a246fd5ba82bd72a814774589de21f504e514b06f183a8b9410b7d6faa5b2e3d9ee100fdd5318f1a77e8ed384786384a2
|
@@ -16,7 +16,7 @@
|
|
16
16
|
};
|
17
17
|
this.options = $.extend({}, Animation.DEFAULTS, this.settings, options);
|
18
18
|
|
19
|
-
this.
|
19
|
+
this.trigger();
|
20
20
|
};
|
21
21
|
|
22
22
|
Animation.VERSION = '1.0.0';
|
@@ -32,7 +32,7 @@
|
|
32
32
|
|
33
33
|
Animation.prototype.constructor = Animation;
|
34
34
|
|
35
|
-
Animation.prototype.
|
35
|
+
Animation.prototype.trigger = function () {
|
36
36
|
var _self = this;
|
37
37
|
var element = this.reset();
|
38
38
|
var animation = this.animationClass();
|
@@ -65,7 +65,7 @@
|
|
65
65
|
};
|
66
66
|
|
67
67
|
Animation.prototype.reset = function () {
|
68
|
-
this.$element.before(this.$element.clone(
|
68
|
+
this.$element.before(this.$element.clone());
|
69
69
|
|
70
70
|
var clone = this.$element.prev();
|
71
71
|
this.$element.remove();
|
@@ -35,8 +35,7 @@
|
|
35
35
|
var options = this.options;
|
36
36
|
|
37
37
|
this.$element.click(function () {
|
38
|
-
var target = $(
|
39
|
-
var next = _self.getNext();
|
38
|
+
var target = $(options.target);
|
40
39
|
var toggle = 'out';
|
41
40
|
|
42
41
|
if (target.hasClass('hidden') || target.is(':hidden') || target.css('visibility') === 'hidden') {
|
@@ -52,22 +51,10 @@
|
|
52
51
|
hide: toggle === 'out'
|
53
52
|
});
|
54
53
|
|
55
|
-
|
54
|
+
options.onToggleCallback(toggle);
|
56
55
|
});
|
57
56
|
};
|
58
57
|
|
59
|
-
Layout.prototype.getNext = function () {
|
60
|
-
var next = $(this.options.target).next();
|
61
|
-
var id = next.attr('id');
|
62
|
-
|
63
|
-
if (id === undefined || id === '') {
|
64
|
-
id = 'show-bs-layout';
|
65
|
-
next.attr('id', id);
|
66
|
-
}
|
67
|
-
|
68
|
-
return $('#' + id);
|
69
|
-
};
|
70
|
-
|
71
58
|
Layout.prototype.togglePosition = function (klass) {
|
72
59
|
var target = $(this.options.target);
|
73
60
|
|
@@ -55,10 +55,11 @@
|
|
55
55
|
|
56
56
|
this.setWidget();
|
57
57
|
|
58
|
-
this.$element.on('mousedown', function(e) {
|
59
|
-
|
60
|
-
|
61
|
-
|
58
|
+
this.$element.on('mousedown', function (e) {
|
59
|
+
e.stopPropagation();
|
60
|
+
e.preventDefault();
|
61
|
+
this.blur();
|
62
|
+
this.focus();
|
62
63
|
}).on({
|
63
64
|
'focus.bs.selectpicker': $.proxy(this.showWidget, this),
|
64
65
|
'click.bs.selectpicker': $.proxy(this.showWidget, this),
|
@@ -293,17 +294,12 @@
|
|
293
294
|
// SELECTPICKER DATA-API
|
294
295
|
// =====================
|
295
296
|
|
296
|
-
$(document)
|
297
|
-
|
298
|
-
$('[data-toggle="selectpicker"]').each(function () {
|
299
|
-
var $this = $(this);
|
300
|
-
if ($this.data('selectpicker')) return;
|
301
|
-
Plugin.call($this, $this.data());
|
302
|
-
});
|
303
|
-
}).on('focus.bs.selectpicker.data-api click.bs.selectpicker.data-api', '[data-toggle="selectpicker"]', function (e) {
|
297
|
+
$(document).on('ready.bs.selectpicker.data-api focus.bs.selectpicker.data-api click.bs.selectpicker.data-api', function (e) {
|
298
|
+
$('[data-toggle="selectpicker"]').each(function () {
|
304
299
|
var $this = $(this);
|
305
300
|
if ($this.data('selectpicker')) return;
|
306
301
|
Plugin.call($this, $this.data());
|
307
302
|
});
|
303
|
+
});
|
308
304
|
|
309
305
|
}(jQuery);
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_frontend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 14.1.
|
4
|
+
version: 14.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Gomez
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|