tjadmin 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tjadmin/version.rb +1 -1
  3. data/vendor/assets/font/DXI1ORHCpsQm3Vp6mXoaTXhCUOGz7vYGh680lGh-uXM.woff +0 -0
  4. data/vendor/assets/font/FontAwesome.otf +0 -0
  5. data/vendor/assets/font/cJZKeOuBrn4kERxqtaUH3T8E0i7KZn-EPnyo3HZu7kw.woff +0 -0
  6. data/vendor/assets/font/fontawesome-webfont.eot +0 -0
  7. data/vendor/assets/font/fontawesome-webfont.svg +399 -0
  8. data/vendor/assets/font/fontawesome-webfont.ttf +0 -0
  9. data/vendor/assets/font/fontawesome-webfont.woff +0 -0
  10. data/vendor/assets/javascripts/tjadmin/ace-elements.js +866 -0
  11. data/vendor/assets/javascripts/tjadmin/ace-extra.js +374 -0
  12. data/vendor/assets/javascripts/tjadmin/ace.js +310 -0
  13. data/vendor/assets/javascripts/tjadmin/additional-methods.js +617 -0
  14. data/vendor/assets/javascripts/tjadmin/bootbox.js +660 -0
  15. data/vendor/assets/javascripts/tjadmin/bootstrap-colorpicker.js +540 -0
  16. data/vendor/assets/javascripts/tjadmin/bootstrap-tag.js +206 -0
  17. data/vendor/assets/javascripts/tjadmin/bootstrap-wysiwyg.js +206 -0
  18. data/vendor/assets/javascripts/tjadmin/bootstrap.js +2280 -0
  19. data/vendor/assets/javascripts/tjadmin/chosen.jquery.js +1166 -0
  20. data/vendor/assets/javascripts/tjadmin/date-time/bootstrap-datepicker.js +1016 -0
  21. data/vendor/assets/javascripts/tjadmin/date-time/bootstrap-timepicker.js +888 -0
  22. data/vendor/assets/javascripts/tjadmin/date-time/daterangepicker.js +854 -0
  23. data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.bg.js +14 -0
  24. data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.ca.js +14 -0
  25. data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.cs.js +15 -0
  26. data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.da.js +14 -0
  27. data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.de.js +16 -0
  28. data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.el.js +13 -0
  29. data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.es.js +14 -0
  30. data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.fi.js +14 -0
  31. data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.fr.js +16 -0
  32. data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.he.js +15 -0
  33. data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.hr.js +13 -0
  34. data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.hu.js +16 -0
  35. data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.id.js +13 -0
  36. data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.is.js +14 -0
  37. data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.it.js +16 -0
  38. data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.ja.js +15 -0
  39. data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.kr.js +13 -0
  40. data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.lt.js +16 -0
  41. data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.lv.js +16 -0
  42. data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.ms.js +14 -0
  43. data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.nb.js +14 -0
  44. data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.nl.js +14 -0
  45. data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.pl.js +15 -0
  46. data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.pt-BR.js +14 -0
  47. data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.pt.js +14 -0
  48. data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.ro.js +15 -0
  49. data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.rs-latin.js +14 -0
  50. data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.rs.js +14 -0
  51. data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.ru.js +14 -0
  52. data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.sk.js +15 -0
  53. data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.sl.js +14 -0
  54. data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.sv.js +14 -0
  55. data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.sw.js +15 -0
  56. data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.th.js +14 -0
  57. data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.tr.js +15 -0
  58. data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.uk.js +14 -0
  59. data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.zh-CN.js +14 -0
  60. data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.zh-TW.js +13 -0
  61. data/vendor/assets/javascripts/tjadmin/date-time/moment.js +1400 -0
  62. data/vendor/assets/javascripts/tjadmin/excanvas.js +1428 -0
  63. data/vendor/assets/javascripts/tjadmin/flot/jquery.flot.js +3061 -0
  64. data/vendor/assets/javascripts/tjadmin/flot/jquery.flot.pie.js +817 -0
  65. data/vendor/assets/javascripts/tjadmin/flot/jquery.flot.resize.js +60 -0
  66. data/vendor/assets/javascripts/tjadmin/fuelux/data/fuelux.tree-sampledata.js +174 -0
  67. data/vendor/assets/javascripts/tjadmin/fuelux/fuelux.spinner.js +201 -0
  68. data/vendor/assets/javascripts/tjadmin/fuelux/fuelux.tree.js +173 -0
  69. data/vendor/assets/javascripts/tjadmin/fuelux/fuelux.wizard.js +172 -0
  70. data/vendor/assets/javascripts/tjadmin/fullcalendar.js +5973 -0
  71. data/vendor/assets/javascripts/tjadmin/jquery-1.10.2.js +9789 -0
  72. data/vendor/assets/javascripts/tjadmin/jquery-2.0.3.js +8829 -0
  73. data/vendor/assets/javascripts/tjadmin/jquery-ui-1.10.3.custom.js +5423 -0
  74. data/vendor/assets/javascripts/tjadmin/jquery.autosize.js +242 -0
  75. data/vendor/assets/javascripts/tjadmin/jquery.colorbox.js +1063 -0
  76. data/vendor/assets/javascripts/tjadmin/jquery.dataTables.js +12099 -0
  77. data/vendor/assets/javascripts/tjadmin/jquery.easy-pie-chart.js +200 -0
  78. data/vendor/assets/javascripts/tjadmin/jquery.gritter.js +418 -0
  79. data/vendor/assets/javascripts/tjadmin/jquery.hotkeys.js +113 -0
  80. data/vendor/assets/javascripts/tjadmin/jquery.inputlimiter.1.3.1.js +172 -0
  81. data/vendor/assets/javascripts/tjadmin/jquery.knob.js +656 -0
  82. data/vendor/assets/javascripts/tjadmin/jquery.maskedinput.js +338 -0
  83. data/vendor/assets/javascripts/tjadmin/jquery.mobile.custom.js +1081 -0
  84. data/vendor/assets/javascripts/tjadmin/jquery.slimscroll.js +448 -0
  85. data/vendor/assets/javascripts/tjadmin/jquery.sparkline.js +3054 -0
  86. data/vendor/assets/javascripts/tjadmin/jquery.ui.touch-punch.js +160 -0
  87. data/vendor/assets/javascripts/tjadmin/jquery.validate.js +1231 -0
  88. data/vendor/assets/javascripts/tjadmin/markdown/bootstrap-markdown.js +993 -0
  89. data/vendor/assets/javascripts/tjadmin/markdown/markdown.js +1616 -0
  90. data/vendor/assets/javascripts/tjadmin/markdown/to-markdown.js +184 -0
  91. data/vendor/assets/javascripts/tjadmin/select2.js +3168 -0
  92. data/vendor/assets/javascripts/tjadmin/spin.js +349 -0
  93. data/vendor/assets/javascripts/tjadmin/x-editable/ace-editable.js +368 -0
  94. data/vendor/assets/javascripts/tjadmin/x-editable/bootstrap-editable.js +6827 -0
  95. data/vendor/assets/javascripts/tjadmin.js +5 -0
  96. data/vendor/assets/stylesheets/tjadmin/ace-fonts.css.scss +13 -0
  97. data/vendor/assets/stylesheets/tjadmin/ace-ie.css +293 -0
  98. data/vendor/assets/stylesheets/tjadmin/ace-responsive.css +1113 -0
  99. data/vendor/assets/stylesheets/tjadmin/ace-skins.css +1301 -0
  100. data/vendor/assets/stylesheets/tjadmin/ace.css +14701 -0
  101. data/vendor/assets/stylesheets/tjadmin/bootstrap-responsive.css +1109 -0
  102. data/vendor/assets/stylesheets/tjadmin/bootstrap.css +6167 -0
  103. data/vendor/assets/stylesheets/tjadmin/chosen.css +430 -0
  104. data/vendor/assets/stylesheets/tjadmin/font-awesome-ie7.css +1203 -0
  105. data/vendor/assets/stylesheets/tjadmin/font-awesome.css +1479 -0
  106. data/vendor/assets/stylesheets/tjadmin/jquery-ui-1.10.3.custom.css +223 -0
  107. data/vendor/assets/stylesheets/tjadmin.css +9 -0
  108. metadata +106 -1
@@ -0,0 +1,172 @@
1
+ /*
2
+ * Fuel UX Wizard
3
+ * https://github.com/ExactTarget/fuelux
4
+ *
5
+ * Copyright (c) 2012 ExactTarget
6
+ * Licensed under the MIT license.
7
+ */
8
+
9
+ (function($ , undefined) {
10
+
11
+ //var $ = require('jquery');
12
+
13
+
14
+ // WIZARD CONSTRUCTOR AND PROTOTYPE
15
+
16
+ var Wizard = function (element, options) {
17
+ var kids;
18
+
19
+ this.$element = $(element);
20
+ this.options = $.extend({}, $.fn.wizard.defaults, options);
21
+ this.currentStep = 1;
22
+ this.numSteps = this.$element.find('li').length;
23
+ this.$prevBtn = this.$element.find('button.btn-prev');
24
+ this.$nextBtn = this.$element.find('button.btn-next');
25
+
26
+ kids = this.$nextBtn.children().detach();
27
+ this.nextText = $.trim(this.$nextBtn.text());
28
+ this.$nextBtn.append(kids);
29
+
30
+ // handle events
31
+ this.$prevBtn.on('click', $.proxy(this.previous, this));
32
+ this.$nextBtn.on('click', $.proxy(this.next, this));
33
+ this.$element.on('click', 'li.complete', $.proxy(this.stepclicked, this));
34
+
35
+ this.$stepContainer = this.$element.data('target') || 'body';
36
+ this.$stepContainer = $(this.$stepContainer);
37
+ };
38
+
39
+ Wizard.prototype = {
40
+
41
+ constructor: Wizard,
42
+
43
+ setState: function () {
44
+ var canMovePrev = (this.currentStep > 1);
45
+ var firstStep = (this.currentStep === 1);
46
+ var lastStep = (this.currentStep === this.numSteps);
47
+
48
+ // disable buttons based on current step
49
+ this.$prevBtn.attr('disabled', (firstStep === true || canMovePrev === false));
50
+
51
+ // change button text of last step, if specified
52
+ var data = this.$nextBtn.data();
53
+ if (data && data.last) {
54
+ this.lastText = data.last;
55
+ if (typeof this.lastText !== 'undefined') {
56
+ // replace text
57
+ var text = (lastStep !== true) ? this.nextText : this.lastText;
58
+ var kids = this.$nextBtn.children().detach();
59
+ this.$nextBtn.text(text).append(kids);
60
+ }
61
+ }
62
+
63
+ // reset classes for all steps
64
+ var $steps = this.$element.find('li');
65
+ $steps.removeClass('active').removeClass('complete');
66
+ $steps.find('span.badge').removeClass('badge-info').removeClass('badge-success');
67
+
68
+ // set class for all previous steps
69
+ var prevSelector = 'li:lt(' + (this.currentStep - 1) + ')';
70
+ var $prevSteps = this.$element.find(prevSelector);
71
+ $prevSteps.addClass('complete');
72
+ $prevSteps.find('span.badge').addClass('badge-success');
73
+
74
+ // set class for current step
75
+ var currentSelector = 'li:eq(' + (this.currentStep - 1) + ')';
76
+ var $currentStep = this.$element.find(currentSelector);
77
+ $currentStep.addClass('active');
78
+ $currentStep.find('span.badge').addClass('badge-info');
79
+
80
+ // set display of target element
81
+ var target = $currentStep.data().target;
82
+ //$('.step-pane').removeClass('active');
83
+ this.$stepContainer.find('.step-pane').removeClass('active');
84
+ $(target).addClass('active');
85
+
86
+ this.$element.trigger('changed');
87
+ },
88
+
89
+ stepclicked: function (e) {
90
+ var li = $(e.currentTarget);
91
+
92
+ var index = this.$element.find('li').index(li);
93
+
94
+ var evt = $.Event('stepclick');
95
+ this.$element.trigger(evt, {step: index + 1});
96
+ if (evt.isDefaultPrevented()) return;
97
+
98
+ this.currentStep = (index + 1);
99
+ this.setState();
100
+ },
101
+
102
+ previous: function () {
103
+ var canMovePrev = (this.currentStep > 1);
104
+ if (canMovePrev) {
105
+ var e = $.Event('change');
106
+ this.$element.trigger(e, {step: this.currentStep, direction: 'previous'});
107
+ if (e.isDefaultPrevented()) return;
108
+
109
+ this.currentStep -= 1;
110
+ this.setState();
111
+ }
112
+ },
113
+
114
+ next: function () {
115
+ var canMoveNext = (this.currentStep + 1 <= this.numSteps);
116
+ var lastStep = (this.currentStep === this.numSteps);
117
+
118
+ if (canMoveNext) {
119
+ var e = $.Event('change');
120
+ this.$element.trigger(e, {step: this.currentStep, direction: 'next'});
121
+
122
+ if (e.isDefaultPrevented()) return;
123
+
124
+ this.currentStep += 1;
125
+ this.setState();
126
+ }
127
+ else if (lastStep) {
128
+ this.$element.trigger('finished');
129
+ }
130
+ },
131
+
132
+ selectedItem: function (val) {
133
+ return {
134
+ step: this.currentStep
135
+ };
136
+ }
137
+ };
138
+
139
+
140
+ // WIZARD PLUGIN DEFINITION
141
+
142
+ $.fn.wizard = function (option, value) {
143
+ var methodReturn;
144
+
145
+ var $set = this.each(function () {
146
+ var $this = $(this);
147
+ var data = $this.data('wizard');
148
+ var options = typeof option === 'object' && option;
149
+
150
+ if (!data) $this.data('wizard', (data = new Wizard(this, options)));
151
+ if (typeof option === 'string') methodReturn = data[option](value);
152
+ });
153
+
154
+ return (methodReturn === undefined) ? $set : methodReturn;
155
+ };
156
+
157
+ $.fn.wizard.defaults = {};
158
+
159
+ $.fn.wizard.Constructor = Wizard;
160
+
161
+
162
+ // WIZARD DATA-API
163
+
164
+ $(function () {
165
+ $('body').on('mousedown.wizard.data-api', '.wizard', function () {
166
+ var $this = $(this);
167
+ if ($this.data('wizard')) return;
168
+ $this.wizard($this.data());
169
+ });
170
+ });
171
+
172
+ })(window.jQuery);