active_administration 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +2 -1
  4. data/active_administration.gemspec +2 -1
  5. data/app/assets/javascripts/active_administration/README.md +0 -0
  6. data/app/assets/javascripts/active_administration/metro-accordion.js +70 -0
  7. data/app/assets/javascripts/active_administration/metro-button-set.js +88 -0
  8. data/app/assets/javascripts/active_administration/metro-calendar.js +437 -0
  9. data/app/assets/javascripts/active_administration/metro-carousel.js +304 -0
  10. data/app/assets/javascripts/active_administration/metro-core.js +39 -0
  11. data/app/assets/javascripts/active_administration/metro-countdown.js +200 -0
  12. data/app/assets/javascripts/active_administration/metro-date-format.js +137 -0
  13. data/app/assets/javascripts/active_administration/metro-datepicker.js +138 -0
  14. data/app/assets/javascripts/active_administration/metro-dialog.js +221 -0
  15. data/app/assets/javascripts/active_administration/metro-drag-tile.js +46 -0
  16. data/app/assets/javascripts/active_administration/metro-dropdown.js +112 -0
  17. data/app/assets/javascripts/active_administration/metro-fluentmenu.js +57 -0
  18. data/app/assets/javascripts/active_administration/metro-global.js +4 -0
  19. data/app/assets/javascripts/active_administration/metro-hint.js +104 -0
  20. data/app/assets/javascripts/active_administration/metro-initiator.js +271 -0
  21. data/app/assets/javascripts/active_administration/metro-input-control.js +318 -0
  22. data/app/assets/javascripts/active_administration/metro-listview.js +53 -0
  23. data/app/assets/javascripts/active_administration/metro-live-tile.js +162 -0
  24. data/app/assets/javascripts/active_administration/metro-loader.js +46 -0
  25. data/app/assets/javascripts/active_administration/metro-locale.js +132 -0
  26. data/app/assets/javascripts/active_administration/metro-notify.js +120 -0
  27. data/app/assets/javascripts/active_administration/metro-panel.js +41 -0
  28. data/app/assets/javascripts/active_administration/metro-plugin-template.js +21 -0
  29. data/app/assets/javascripts/active_administration/metro-progressbar.js +97 -0
  30. data/app/assets/javascripts/active_administration/metro-pull.js +38 -0
  31. data/app/assets/javascripts/active_administration/metro-rating.js +99 -0
  32. data/app/assets/javascripts/active_administration/metro-scroll.js +756 -0
  33. data/app/assets/javascripts/active_administration/metro-slider.js +304 -0
  34. data/app/assets/javascripts/active_administration/metro-stepper.js +105 -0
  35. data/app/assets/javascripts/active_administration/metro-streamer.js +214 -0
  36. data/app/assets/javascripts/active_administration/metro-tab-control.js +96 -0
  37. data/app/assets/javascripts/active_administration/metro-table.js +74 -0
  38. data/app/assets/javascripts/active_administration/metro-tile-transform.js +65 -0
  39. data/app/assets/javascripts/active_administration/metro-times.js +190 -0
  40. data/app/assets/javascripts/active_administration/metro-touch-handler.js +65 -0
  41. data/app/assets/javascripts/active_administration/metro-treeview.js +64 -0
  42. data/app/assets/javascripts/active_administration/metro-wizard.js +148 -0
  43. data/app/assets/stylesheets/active_administration/accordion.less +64 -0
  44. data/app/assets/stylesheets/active_administration/balloon.less +88 -0
  45. data/app/assets/stylesheets/active_administration/breadcrumbs.less +118 -0
  46. data/app/assets/stylesheets/active_administration/buttons.less +383 -0
  47. data/app/assets/stylesheets/active_administration/calendar.less +123 -0
  48. data/app/assets/stylesheets/active_administration/carousel.less +118 -0
  49. data/app/assets/stylesheets/active_administration/colors.less +589 -0
  50. data/app/assets/stylesheets/active_administration/countdown.less +57 -0
  51. data/app/assets/stylesheets/active_administration/dataTables.less +134 -0
  52. data/app/assets/stylesheets/active_administration/fluent-menu.less +231 -0
  53. data/app/assets/stylesheets/active_administration/forms.less +414 -0
  54. data/app/assets/stylesheets/active_administration/funcs.less +178 -0
  55. data/app/assets/stylesheets/active_administration/grid.less +91 -0
  56. data/app/assets/stylesheets/active_administration/hint.less +120 -0
  57. data/app/assets/stylesheets/active_administration/iconFont-content.less +1353 -0
  58. data/app/assets/stylesheets/active_administration/iconFont.less +47 -0
  59. data/app/assets/stylesheets/active_administration/icons.less +10 -0
  60. data/app/assets/stylesheets/active_administration/images.less +75 -0
  61. data/app/assets/stylesheets/active_administration/layout.less +137 -0
  62. data/app/assets/stylesheets/active_administration/lists.less +258 -0
  63. data/app/assets/stylesheets/active_administration/menus.less +469 -0
  64. data/app/assets/stylesheets/active_administration/metro-bootstrap-responsive.less +300 -0
  65. data/app/assets/stylesheets/active_administration/metro-bootstrap.less +68 -0
  66. data/app/assets/stylesheets/active_administration/misc.less +72 -0
  67. data/app/assets/stylesheets/active_administration/navigation-bar.less +317 -0
  68. data/app/assets/stylesheets/active_administration/notice.less +52 -0
  69. data/app/assets/stylesheets/active_administration/notify.less +43 -0
  70. data/app/assets/stylesheets/active_administration/pagination.less +83 -0
  71. data/app/assets/stylesheets/active_administration/panels.less +38 -0
  72. data/app/assets/stylesheets/active_administration/progress-bar.less +25 -0
  73. data/app/assets/stylesheets/active_administration/rating.less +103 -0
  74. data/app/assets/stylesheets/active_administration/reset.less +219 -0
  75. data/app/assets/stylesheets/active_administration/scroll.less +141 -0
  76. data/app/assets/stylesheets/active_administration/sidebar.less +158 -0
  77. data/app/assets/stylesheets/active_administration/slider.less +106 -0
  78. data/app/assets/stylesheets/active_administration/stepper.less +80 -0
  79. data/app/assets/stylesheets/active_administration/streamer.less +250 -0
  80. data/app/assets/stylesheets/active_administration/tab-control.less +79 -0
  81. data/app/assets/stylesheets/active_administration/tables.less +170 -0
  82. data/app/assets/stylesheets/active_administration/tiles.less +599 -0
  83. data/app/assets/stylesheets/active_administration/transform.less +23 -0
  84. data/app/assets/stylesheets/active_administration/treeview.less +96 -0
  85. data/app/assets/stylesheets/active_administration/typography.less +382 -0
  86. data/app/assets/stylesheets/active_administration/utils.less +180 -0
  87. data/app/assets/stylesheets/active_administration/variables.less +250 -0
  88. data/app/assets/stylesheets/active_administration/window.less +225 -0
  89. data/app/assets/stylesheets/active_administration/wizard.less +53 -0
  90. data/lib/active_admin/version.rb +1 -1
  91. metadata +103 -10
@@ -0,0 +1,46 @@
1
+ (function( $ ) {
2
+ $.widget("metro.dragtile", {
3
+
4
+ version: "1.0.0",
5
+
6
+ options: {
7
+ },
8
+
9
+ _create: function(){
10
+ var that = this, element = tile = this.element,
11
+ area = element.parents('.tile-area'),
12
+ tiles = area.find(".tile"),
13
+ groups = area.find(".tile-group");
14
+
15
+ tile.attr("draggable", "true");
16
+
17
+ addTouchEvents(tile[0]);
18
+
19
+ tile[0].addEventListener('dragstart', this._dragStart, false);
20
+ tile[0].addEventListener('dragend', this._dragEnd, false);
21
+
22
+ tile.on('mousedown', function(e){
23
+ });
24
+
25
+ tile.on('mouseup', function(e){
26
+ });
27
+ },
28
+
29
+ _dragStart: function(e){
30
+ $(this).css('opacity',.4);
31
+ },
32
+
33
+ _dragEnd: function(e){
34
+ $(this).css('opacity',1);
35
+ },
36
+
37
+ _destroy: function(){
38
+
39
+ },
40
+
41
+ _setOption: function(key, value){
42
+ this._super('_setOption', key, value);
43
+ }
44
+ })
45
+ })( jQuery );
46
+
@@ -0,0 +1,112 @@
1
+ (function( $ ) {
2
+ $.widget("metro.dropdown", {
3
+
4
+ version: "1.0.1",
5
+
6
+ options: {
7
+ effect: 'slide',
8
+ toggleElement: false
9
+ },
10
+
11
+ _create: function(){
12
+ var that = this,
13
+ menu = this.element,
14
+ name = this.name,
15
+ parent = this.element.parent(),
16
+ toggle = this.options.toggleElement || parent.children('.dropdown-toggle');
17
+
18
+ if (menu.data('effect') != undefined) {
19
+ this.options.effect = menu.data('effect');
20
+ }
21
+
22
+ toggle.on('click.'+name, function(e){
23
+ e.preventDefault();
24
+ e.stopPropagation();
25
+
26
+ if (menu.css('display') == 'block' && !menu.hasClass('keep-open')) {
27
+ that._close(menu);
28
+ } else {
29
+ $('.dropdown-menu').each(function(i, el){
30
+ if (!menu.parents('.dropdown-menu').is(el) && !$(el).hasClass('keep-open') && $(el).css('display')=='block') {
31
+ that._close(el);
32
+ }
33
+ });
34
+ that._open(menu);
35
+ }
36
+ });
37
+
38
+ $(menu).find('li.disabled a').on('click', function(e){
39
+ e.preventDefault();
40
+ });
41
+
42
+ },
43
+
44
+ _open: function(el){
45
+ switch (this.options.effect) {
46
+ case 'fade': $(el).fadeIn('fast'); break;
47
+ case 'slide': $(el).slideDown('fast'); break;
48
+ default: $(el).hide();
49
+ }
50
+ this._trigger("onOpen", null, el);
51
+ },
52
+
53
+ _close: function(el){
54
+ switch (this.options.effect) {
55
+ case 'fade': $(el).fadeOut('fast'); break;
56
+ case 'slide': $(el).slideUp('fast'); break;
57
+ default: $(el).hide();
58
+ }
59
+ this._trigger("onClose", null, el);
60
+ },
61
+
62
+ _destroy: function(){
63
+ },
64
+
65
+ _setOption: function(key, value){
66
+ this._super('_setOption', key, value);
67
+ }
68
+ });
69
+ })( jQuery );
70
+
71
+ /*
72
+ (function($){
73
+ $.fn.PullDown = function( options ){
74
+ var defaults = {
75
+ };
76
+
77
+ var $this = $(this)
78
+ ;
79
+
80
+ var initSelectors = function(selectors){
81
+
82
+ addTouchEvents(selectors[0]);
83
+
84
+ selectors.on('click', function(e){
85
+ var $m = $this.parent().children(".element-menu");
86
+ console.log($m);
87
+ if ($m.css('display') == "block") {
88
+ $m.slideUp('fast');
89
+ } else {
90
+ $m.slideDown('fast');
91
+ }
92
+ e.preventDefault();
93
+ e.stopPropagation();
94
+ });
95
+ };
96
+
97
+ return this.each(function(){
98
+ if ( options ) {
99
+ $.extend(defaults, options);
100
+ }
101
+
102
+ initSelectors($this);
103
+ });
104
+ };
105
+
106
+ $(function () {
107
+ $('.pull-menu, .menu-pull').each(function () {
108
+ $(this).PullDown();
109
+ });
110
+ });
111
+ })(window.jQuery);
112
+ */
@@ -0,0 +1,57 @@
1
+ (function( $ ) {
2
+ $.widget("metro.fluentmenu", {
3
+
4
+ version: "1.0.0",
5
+
6
+ options: {
7
+ onSpecialClick: function(e, el){},
8
+ onTabClick: function(e, el){}
9
+ },
10
+
11
+ _create: function(){
12
+ var that = this, element = this.element, o = this.options,
13
+ tabs = element.find('.tabs-holder > li > a');
14
+
15
+ this._hidePanels();
16
+ this._showPanel();
17
+
18
+ tabs.on('click', function(e){
19
+ if ($(this).parent('li').hasClass('special')) {
20
+ o.onSpecialClick(e, $(this));
21
+ } else {
22
+ var panel = $($(this).attr('href'));
23
+
24
+ that._hidePanels();
25
+ that._showPanel(panel);
26
+ element.find('.tabs-holder > li').removeClass('active');
27
+ $(this).parent('li').addClass('active');
28
+
29
+ o.onTabClick(e, $(this));
30
+ }
31
+ e.preventDefault();
32
+ });
33
+ },
34
+
35
+ _hidePanels: function(){
36
+ this.element.find('.tab-panel').hide();
37
+ },
38
+
39
+ _showPanel: function(panel){
40
+ if (panel == undefined) {
41
+ panel = this.element.find('.tabs-holder li.active a').attr('href');
42
+ }
43
+ $(panel).show();
44
+ },
45
+
46
+ _destroy: function(){
47
+
48
+ },
49
+
50
+ _setOption: function(key, value){
51
+ this._super('_setOption', key, value);
52
+ }
53
+ })
54
+ })( jQuery );
55
+
56
+
57
+
@@ -0,0 +1,4 @@
1
+ var METRO_AUTO_REINIT;
2
+ var METRO_LOCALE;
3
+ var METRO_WEEK_START;
4
+ var METRO_DIALOG = false;
@@ -0,0 +1,104 @@
1
+ (function( $ ) {
2
+ $.widget("metro.hint", {
3
+
4
+ version: "1.0.0",
5
+
6
+ options: {
7
+ position: "bottom",
8
+ background: '#FFFCC0',
9
+ shadow: false,
10
+ border: false,
11
+ _hint: undefined
12
+ },
13
+
14
+ _create: function(){
15
+ var that = this;
16
+ var o = this.options;
17
+
18
+
19
+ this.element.on('mouseenter', function(e){
20
+ that.createHint();
21
+ o._hint.stop().fadeIn();
22
+ e.preventDefault();
23
+ });
24
+
25
+ this.element.on('mouseleave', function(e){
26
+ o._hint.stop().fadeOut(function(){
27
+ o._hint.remove();
28
+ });
29
+ e.preventDefault();
30
+ });
31
+ },
32
+
33
+ createHint: function(){
34
+ var that = this, element = this.element,
35
+ hint = element.data('hint').split("|"),
36
+ o = this.options;
37
+
38
+ var _hint;
39
+
40
+ if (element.data('hintPosition') != undefined) o.position = element.data('hintPosition');
41
+ if (element.data('hintBackground') != undefined) o.background = element.data('hintBackground');
42
+ if (element.data('hintShadow') != undefined) o.shadow = element.data('hintShadow');
43
+ if (element.data('hintBorder') != undefined) o.border = element.data('hintBorder');
44
+
45
+ if (element[0].tagName == 'TD' || element[0].tagName == 'TH') {
46
+ var wrp = $("<div/>").css("display", "inline-block").html(element.html());
47
+ element.html(wrp);
48
+ element = wrp;
49
+ }
50
+
51
+ var hint_title = hint.length > 1 ? hint[0] : false;
52
+ var hint_text = hint.length > 1 ? hint[1] : hint[0];
53
+
54
+ //_hint = $("<div/>").addClass("hint").appendTo(element.parent());
55
+ _hint = $("<div/>").addClass("hint").appendTo('body');
56
+ if (hint_title) {
57
+ $("<div/>").addClass("hint-title").html(hint_title).appendTo(_hint);
58
+ }
59
+ $("<div/>").addClass("hint-text").html(hint_text).appendTo(_hint);
60
+
61
+ _hint.addClass(o.position);
62
+
63
+ if (o.shadow) _hint.addClass("shadow");
64
+ if (o.background) {_hint.css("background-color", o.background);}
65
+ if (o.border) _hint.css("border-color", o.border);
66
+
67
+ //console.log(_hint);
68
+
69
+ if (o.position == 'top') {
70
+ _hint.css({
71
+ top: element.offset().top - $(window).scrollTop() - _hint.outerHeight() - 20,
72
+ left: element.offset().left - $(window).scrollLeft()
73
+ });
74
+ } else if (o.position == 'bottom') {
75
+ _hint.css({
76
+ top: element.offset().top - $(window).scrollTop() + element.outerHeight(),
77
+ left: element.offset().left - $(window).scrollLeft()
78
+ });
79
+ } else if (o.position == 'right') {
80
+ _hint.css({
81
+ top: element.offset().top - 10 - $(window).scrollTop(),
82
+ left: element.offset().left + element.outerWidth() + 10 - $(window).scrollLeft()
83
+ });
84
+ } else if (o.position == 'left') {
85
+ _hint.css({
86
+ top: element.offset().top - 10 - $(window).scrollTop(),
87
+ left: element.offset().left - _hint.outerWidth() - 10 - $(window).scrollLeft()
88
+ });
89
+ }
90
+
91
+ o._hint = _hint;
92
+ },
93
+
94
+ _destroy: function(){
95
+ },
96
+
97
+ _setOption: function(key, value){
98
+ this._super('_setOption', key, value);
99
+ }
100
+ })
101
+ })( jQuery );
102
+
103
+
104
+
@@ -0,0 +1,271 @@
1
+ (function($){
2
+ /*
3
+ * Init or ReInit components
4
+ * */
5
+
6
+ $.Metro.initAccordions = function(area){
7
+ if (area != undefined) {
8
+ $(area).find('[data-role=accordion]').accordion();
9
+ } else {
10
+ $('[data-role=accordion]').accordion();
11
+ }
12
+ };
13
+
14
+ $.Metro.initButtonSets = function(area){
15
+ if (area != undefined) {
16
+ $(area).find('[data-role=button-set]').buttonset();
17
+ $(area).find('[data-role=button-group]').buttongroup();
18
+ } else {
19
+ $('[data-role=button-set]').buttonset();
20
+ $('[data-role=button-group]').buttongroup();
21
+ }
22
+ };
23
+
24
+ $.Metro.initCalendars = function(area){
25
+ if (area != undefined) {
26
+ $(area).find('[data-role=calendar]').calendar();
27
+ } else {
28
+ $('[data-role=calendar]').calendar();
29
+ }
30
+ };
31
+
32
+ $.Metro.initCarousels = function(area){
33
+ if (area != undefined) {
34
+ $(area).find('[data-role=carousel]').carousel();
35
+ } else {
36
+ $('[data-role=carousel]').carousel();
37
+ }
38
+ };
39
+
40
+ $.Metro.initCountdowns = function(area){
41
+ if (area != undefined) {
42
+ $(area).find('[data-role=countdown]').countdown();
43
+ } else {
44
+ $('[data-role=countdown]').countdown();
45
+ }
46
+ };
47
+
48
+ $.Metro.initDatepickers = function(area){
49
+ if (area != undefined) {
50
+ $(area).find('[data-role=datepicker]').datepicker();
51
+ } else {
52
+ $('[data-role=datepicker]').datepicker();
53
+ }
54
+ };
55
+
56
+ $.Metro.initDropdowns = function(area){
57
+ if (area != undefined) {
58
+ $(area).find('[data-role=dropdown]').dropdown();
59
+ } else {
60
+ $('[data-role=dropdown]').dropdown();
61
+ }
62
+ };
63
+
64
+ $.Metro.initFluentMenus = function(area){
65
+ if (area != undefined) {
66
+ $(area).find('[data-role=fluentmenu]').fluentmenu();
67
+ } else {
68
+ $('[data-role=fluentmenu]').fluentmenu();
69
+ }
70
+ };
71
+
72
+ $.Metro.initHints = function(area){
73
+ if (area != undefined) {
74
+ $(area).find('[data-hint]').hint();
75
+ } else {
76
+ $('[data-hint]').hint();
77
+ }
78
+ };
79
+
80
+ $.Metro.initInputs = function(area){
81
+ if (area != undefined) {
82
+ $(area).find('[data-role=input-control], .input-control').inputControl();
83
+ } else {
84
+ $('[data-role=input-control], .input-control').inputControl();
85
+ }
86
+ };
87
+
88
+ $.Metro.transformInputs = function(area){
89
+ if (area != undefined) {
90
+ $(area).find('[data-transform=input-control]').inputTransform();
91
+ } else {
92
+ $('[data-transform=input-control]').inputTransform();
93
+ }
94
+ };
95
+
96
+ $.Metro.initListViews = function(area){
97
+ if (area != undefined) {
98
+ $(area).find('[data-role=listview]').listview();
99
+ } else {
100
+ $('[data-role=listview]').listview();
101
+ }
102
+ };
103
+
104
+ $.Metro.initLives = function(area){
105
+ if (area != undefined) {
106
+ $(area).find('[data-role=live-tile], [data-role=live]').livetile();
107
+ } else {
108
+ $('[data-role=live-tile], [data-role=live]').livetile();
109
+ }
110
+ };
111
+
112
+ $.Metro.initProgreeBars = function(area){
113
+ if (area != undefined) {
114
+ $(area).find('[data-role=progress-bar]').progressbar();
115
+ } else {
116
+ $('[data-role=progress-bar]').progressbar();
117
+ }
118
+ };
119
+
120
+ $.Metro.initRatings = function(area){
121
+ if (area != undefined) {
122
+ $(area).find('[data-role=rating]').rating();
123
+ } else {
124
+ $('[data-role=rating]').rating();
125
+ }
126
+ };
127
+
128
+ $.Metro.initScrolls = function(area){
129
+ if (area != undefined) {
130
+ $(area).find('[data-role=scrollbox]').scrollbar();
131
+ } else {
132
+ $('[data-role=scrollbox]').scrollbar();
133
+ }
134
+ };
135
+
136
+ $.Metro.initSliders = function(area){
137
+ if (area != undefined) {
138
+ $(area).find('[data-role=slider]').slider();
139
+ } else {
140
+ $('[data-role=slider]').slider();
141
+ }
142
+ };
143
+
144
+ $.Metro.initTabs = function(area){
145
+ if (area != undefined) {
146
+ $(area).find('[data-role=tab-control]').tabcontrol();
147
+ } else {
148
+ $('[data-role=tab-control]').tabcontrol();
149
+ }
150
+ };
151
+
152
+ $.Metro.initTimes = function(area){
153
+ if (area != undefined) {
154
+ $(area).find('[data-role=times]').times();
155
+ } else {
156
+ $('[data-role=times]').times();
157
+ }
158
+ };
159
+
160
+ $.Metro.initTrees = function(area){
161
+ if (area != undefined) {
162
+ $(area).find('[data-role=treeview]').treeview();
163
+ } else {
164
+ $('[data-role=treeview]').treeview();
165
+ }
166
+ };
167
+
168
+ /*
169
+ * Components in develop
170
+ * */
171
+
172
+ $.Metro.initSteppers = function(area){
173
+ if (area != undefined) {
174
+ $(area).find('[data-role=stepper]').stepper();
175
+ } else {
176
+ $('[data-role=stepper]').stepper();
177
+ }
178
+ };
179
+
180
+ $.Metro.initStreamers = function(area){
181
+ if (area != undefined) {
182
+ $(area).find('[data-role=streamer]').streamer();
183
+ } else {
184
+ $('[data-role=streamer]').streamer();
185
+ }
186
+ };
187
+
188
+ $.Metro.initDragTiles = function(area){
189
+ if (area != undefined) {
190
+ $(area).find('[data-role=drag-drop]').dragtile();
191
+ } else {
192
+ $('[data-role=drag-drop]').dragtile();
193
+ }
194
+ };
195
+
196
+ $.Metro.initPulls = function(area){
197
+ if (area != undefined) {
198
+ $(area).find('[data-role=pull-menu], .pull-menu').pullmenu();
199
+ } {
200
+ $('[data-role=pull-menu], .pull-menu').pullmenu();
201
+ }
202
+ };
203
+
204
+ $.Metro.initPanels = function(area){
205
+ if (area != undefined) {
206
+ $(area).find('[data-role=panel]').panel();
207
+ } {
208
+ $('[data-role=panel]').panel();
209
+ }
210
+ };
211
+
212
+ $.Metro.initTileTransform = function(area){
213
+ if (area != undefined) {
214
+ $(area).find('[data-click=transform]').tileTransform();
215
+ } {
216
+ $('[data-click=transform]').tileTransform();
217
+ }
218
+ };
219
+
220
+ $.Metro.initAll = function(area) {
221
+ $.Metro.initAccordions(area);
222
+ $.Metro.initButtonSets(area);
223
+ $.Metro.initCalendars(area);
224
+ $.Metro.initCarousels(area);
225
+ $.Metro.initCountdowns(area);
226
+ $.Metro.initDatepickers(area);
227
+ $.Metro.initDropdowns(area);
228
+ $.Metro.initFluentMenus(area);
229
+ $.Metro.initHints(area);
230
+ $.Metro.initInputs(area);
231
+ $.Metro.transformInputs(area);
232
+ $.Metro.initListViews(area);
233
+ $.Metro.initLives(area);
234
+ $.Metro.initProgreeBars(area);
235
+ $.Metro.initRatings(area);
236
+ $.Metro.initScrolls(area);
237
+ $.Metro.initSliders(area);
238
+ $.Metro.initTabs(area);
239
+ $.Metro.initTimes(area);
240
+ $.Metro.initTrees(area);
241
+ $.Metro.initSteppers(area);
242
+ $.Metro.initStreamers(area);
243
+ $.Metro.initDragTiles(area);
244
+ $.Metro.initPulls(area);
245
+ $.Metro.initPanels(area);
246
+ $.Metro.initTileTransform(area);
247
+ }
248
+ })(jQuery);
249
+
250
+ $(function(){
251
+ $.Metro.initAll();
252
+ });
253
+
254
+
255
+ $(function(){
256
+ if (METRO_AUTO_REINIT) {
257
+ //$(".metro").bind('DOMSubtreeModified', function(){ $.Metro.initAll(); });
258
+ var originalDOM = $('.metro').html(),
259
+ actualDOM;
260
+
261
+ setInterval(function () {
262
+ actualDOM = $('.metro').html();
263
+
264
+ if (originalDOM !== actualDOM) {
265
+ originalDOM = actualDOM;
266
+
267
+ $.Metro.initAll();
268
+ }
269
+ }, 500);
270
+ }
271
+ });