fuelux-rails 2.1.1 → 2.1.02
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.
- data/lib/fuelux-rails/version.rb +1 -1
- data/vendor/assets/javascripts/fuelux.js +0 -1
- data/vendor/assets/javascripts/fuelux/datagrid.js +1 -2
- data/vendor/assets/javascripts/fuelux/loader.js +0 -7
- data/vendor/assets/javascripts/fuelux/pillbox.js +3 -1
- data/vendor/assets/javascripts/fuelux/search.js +1 -8
- data/vendor/assets/javascripts/fuelux/spinner.js +2 -1
- metadata +2 -3
- data/vendor/assets/javascripts/fuelux/combobox.js +0 -67
data/lib/fuelux-rails/version.rb
CHANGED
|
@@ -2874,7 +2874,6 @@ define('fuelux/search',['require','jquery'],function(require) {
|
|
|
2874
2874
|
this.$element = $(element);
|
|
2875
2875
|
this.options = $.extend({}, $.fn.search.defaults, options);
|
|
2876
2876
|
this.$element.find('button').on('click', $.proxy(this.buttonclicked, this));
|
|
2877
|
-
this.$input = this.$element.find('input').on('keydown', $.proxy(this.keypress, this));
|
|
2878
2877
|
this.$input = this.$element.find('input').on('keyup', $.proxy(this.keypressed, this));
|
|
2879
2878
|
this.$icon = this.$element.find('i');
|
|
2880
2879
|
this.activeSearch = '';
|
|
@@ -2914,12 +2913,6 @@ define('fuelux/search',['require','jquery'],function(require) {
|
|
|
2914
2913
|
this.action();
|
|
2915
2914
|
},
|
|
2916
2915
|
|
|
2917
|
-
keypress: function (e) {
|
|
2918
|
-
if (e.which === 13) {
|
|
2919
|
-
e.preventDefault();
|
|
2920
|
-
}
|
|
2921
|
-
},
|
|
2922
|
-
|
|
2923
2916
|
keypressed: function (e) {
|
|
2924
2917
|
var val, inputPresentAndUnchanged;
|
|
2925
2918
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Licensed under the MIT license.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
!function($){
|
|
9
|
+
!function ($) {
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
// SEARCH CONSTRUCTOR AND PROTOTYPE
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
this.$element = $(element);
|
|
16
16
|
this.options = $.extend({}, $.fn.search.defaults, options);
|
|
17
17
|
this.$element.find('button').on('click', $.proxy(this.buttonclicked, this));
|
|
18
|
-
this.$input = this.$element.find('input').on('keydown', $.proxy(this.keypress, this));
|
|
19
18
|
this.$input = this.$element.find('input').on('keyup', $.proxy(this.keypressed, this));
|
|
20
19
|
this.$icon = this.$element.find('i');
|
|
21
20
|
this.activeSearch = '';
|
|
@@ -55,12 +54,6 @@
|
|
|
55
54
|
this.action();
|
|
56
55
|
},
|
|
57
56
|
|
|
58
|
-
keypress: function (e) {
|
|
59
|
-
if (e.which === 13) {
|
|
60
|
-
e.preventDefault();
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
|
|
64
57
|
keypressed: function (e) {
|
|
65
58
|
var val, inputPresentAndUnchanged;
|
|
66
59
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fuelux-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.02
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-11-
|
|
12
|
+
date: 2012-11-06 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: railties
|
|
@@ -105,7 +105,6 @@ files:
|
|
|
105
105
|
- lib/fuelux-rails.rb
|
|
106
106
|
- lib/generators/fuelux/install_generator.rb
|
|
107
107
|
- lib/tasks/fuelux-rails_tasks.rake
|
|
108
|
-
- vendor/assets/javascripts/fuelux/combobox.js
|
|
109
108
|
- vendor/assets/javascripts/fuelux/datagrid.js
|
|
110
109
|
- vendor/assets/javascripts/fuelux/loader.js
|
|
111
110
|
- vendor/assets/javascripts/fuelux/pillbox.js
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Fuel UX Combobox
|
|
3
|
-
* https://github.com/ExactTarget/fuelux
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) 2012 ExactTarget
|
|
6
|
-
* Licensed under the MIT license.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
!function($){
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
// COMBOBOX CONSTRUCTOR AND PROTOTYPE
|
|
13
|
-
|
|
14
|
-
var Combobox = function (element, options) {
|
|
15
|
-
this.$element = $(element);
|
|
16
|
-
this.options = $.extend({}, $.fn.combobox.defaults, options);
|
|
17
|
-
this.$element.on('click', 'a', $.proxy(this.itemclicked, this));
|
|
18
|
-
this.$input = this.$element.find('input');
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
Combobox.prototype = {
|
|
22
|
-
|
|
23
|
-
constructor: Combobox,
|
|
24
|
-
|
|
25
|
-
select: function (val) {
|
|
26
|
-
this.$input.val(val).change();
|
|
27
|
-
return this;
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
itemclicked: function (e) {
|
|
31
|
-
this.select($(e.target).text());
|
|
32
|
-
$('body').click();
|
|
33
|
-
e.preventDefault();
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
// COMBOBOX PLUGIN DEFINITION
|
|
40
|
-
|
|
41
|
-
$.fn.combobox = function (option) {
|
|
42
|
-
return this.each(function () {
|
|
43
|
-
var $this = $(this);
|
|
44
|
-
var data = $this.data('combobox');
|
|
45
|
-
var options = typeof option === 'object' && option;
|
|
46
|
-
|
|
47
|
-
if (!data) $this.data('combobox', (data = new Combobox(this, options)));
|
|
48
|
-
if (typeof option === 'string') data[option]();
|
|
49
|
-
});
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
$.fn.combobox.defaults = {};
|
|
53
|
-
|
|
54
|
-
$.fn.combobox.Constructor = Combobox;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
// COMBOBOX DATA-API
|
|
58
|
-
|
|
59
|
-
$(function () {
|
|
60
|
-
$('body').on('mousedown.combobox.data-api', '.combobox', function (e) {
|
|
61
|
-
var $this = $(this);
|
|
62
|
-
if ($this.data('combobox')) return;
|
|
63
|
-
$this.combobox($this.data());
|
|
64
|
-
});
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
}(window.jQuery);
|