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,242 @@
1
+ /*!
2
+ Autosize v1.17.2 - 2013-07-30
3
+ Automatically adjust textarea height based on user input.
4
+ (c) 2013 Jack Moore - http://www.jacklmoore.com/autosize
5
+ license: http://www.opensource.org/licenses/mit-license.php
6
+ */
7
+ (function (factory) {
8
+ if (typeof define === 'function' && define.amd) {
9
+ // AMD. Register as an anonymous module.
10
+ define(['jquery'], factory);
11
+ } else {
12
+ // Browser globals: jQuery or jQuery-like library, such as Zepto
13
+ factory(window.jQuery || window.$);
14
+ }
15
+ }(function ($) {
16
+ var
17
+ defaults = {
18
+ className: 'autosizejs',
19
+ append: '',
20
+ callback: false,
21
+ resizeDelay: 10
22
+ },
23
+
24
+ // border:0 is unnecessary, but avoids a bug in FireFox on OSX
25
+ copy = '<textarea tabindex="-1" style="position:absolute; top:-999px; left:0; right:auto; bottom:auto; border:0; -moz-box-sizing:content-box; -webkit-box-sizing:content-box; box-sizing:content-box; word-wrap:break-word; height:0 !important; min-height:0 !important; overflow:hidden; transition:none; -webkit-transition:none; -moz-transition:none;"/>',
26
+
27
+ // line-height is conditionally included because IE7/IE8/old Opera do not return the correct value.
28
+ typographyStyles = [
29
+ 'fontFamily',
30
+ 'fontSize',
31
+ 'fontWeight',
32
+ 'fontStyle',
33
+ 'letterSpacing',
34
+ 'textTransform',
35
+ 'wordSpacing',
36
+ 'textIndent'
37
+ ],
38
+
39
+ // to keep track which textarea is being mirrored when adjust() is called.
40
+ mirrored,
41
+
42
+ // the mirror element, which is used to calculate what size the mirrored element should be.
43
+ mirror = $(copy).data('autosize', true)[0];
44
+
45
+ // test that line-height can be accurately copied.
46
+ mirror.style.lineHeight = '99px';
47
+ if ($(mirror).css('lineHeight') === '99px') {
48
+ typographyStyles.push('lineHeight');
49
+ }
50
+ mirror.style.lineHeight = '';
51
+
52
+ $.fn.autosize = function (options) {
53
+ options = $.extend({}, defaults, options || {});
54
+
55
+ if (mirror.parentNode !== document.body) {
56
+ $(document.body).append(mirror);
57
+ }
58
+
59
+ return this.each(function () {
60
+ var
61
+ ta = this,
62
+ $ta = $(ta),
63
+ maxHeight,
64
+ minHeight,
65
+ boxOffset = 0,
66
+ callback = $.isFunction(options.callback),
67
+ originalStyles = {
68
+ height: ta.style.height,
69
+ overflow: ta.style.overflow,
70
+ overflowY: ta.style.overflowY,
71
+ wordWrap: ta.style.wordWrap,
72
+ resize: ta.style.resize
73
+ },
74
+ timeout,
75
+ width = $ta.width();
76
+
77
+ if ($ta.data('autosize')) {
78
+ // exit if autosize has already been applied, or if the textarea is the mirror element.
79
+ return;
80
+ }
81
+ $ta.data('autosize', true);
82
+
83
+ if ($ta.css('box-sizing') === 'border-box' || $ta.css('-moz-box-sizing') === 'border-box' || $ta.css('-webkit-box-sizing') === 'border-box'){
84
+ boxOffset = $ta.outerHeight() - $ta.height();
85
+ }
86
+
87
+ // IE8 and lower return 'auto', which parses to NaN, if no min-height is set.
88
+ minHeight = Math.max(parseInt($ta.css('minHeight'), 10) - boxOffset || 0, $ta.height());
89
+
90
+ $ta.css({
91
+ overflow: 'hidden',
92
+ overflowY: 'hidden',
93
+ wordWrap: 'break-word', // horizontal overflow is hidden, so break-word is necessary for handling words longer than the textarea width
94
+ resize: ($ta.css('resize') === 'none' || $ta.css('resize') === 'vertical') ? 'none' : 'horizontal'
95
+ });
96
+
97
+ function initMirror() {
98
+ var styles = {}, ignore;
99
+
100
+ mirrored = ta;
101
+ mirror.className = options.className;
102
+ maxHeight = parseInt($ta.css('maxHeight'), 10);
103
+
104
+ // mirror is a duplicate textarea located off-screen that
105
+ // is automatically updated to contain the same text as the
106
+ // original textarea. mirror always has a height of 0.
107
+ // This gives a cross-browser supported way getting the actual
108
+ // height of the text, through the scrollTop property.
109
+ $.each(typographyStyles, function(i,val){
110
+ styles[val] = $ta.css(val);
111
+ });
112
+ $(mirror).css(styles);
113
+
114
+ // The textarea overflow is probably now hidden, but Chrome doesn't reflow the text to account for the
115
+ // new space made available by removing the scrollbars. This workaround causes Chrome to reflow the text.
116
+ if ('oninput' in ta) {
117
+ var width = ta.style.width;
118
+ ta.style.width = '0px';
119
+ ignore = ta.offsetWidth; // This value isn't used, but getting it triggers the necessary reflow
120
+ ta.style.width = width;
121
+ }
122
+ }
123
+
124
+ // Using mainly bare JS in this function because it is going
125
+ // to fire very often while typing, and needs to very efficient.
126
+ function adjust() {
127
+ var height, original, width, style;
128
+
129
+ if (mirrored !== ta) {
130
+ initMirror();
131
+ }
132
+
133
+ mirror.value = ta.value + options.append;
134
+ mirror.style.overflowY = ta.style.overflowY;
135
+ original = parseInt(ta.style.height,10);
136
+
137
+ // window.getComputedStyle, getBoundingClientRect returning a width are unsupported in IE8 and lower.
138
+ // The mirror width must exactly match the textarea width, so using getBoundingClientRect because it doesn't round the sub-pixel value.
139
+ if ('getComputedStyle' in window) {
140
+ style = window.getComputedStyle(ta);
141
+ width = ta.getBoundingClientRect().width;
142
+
143
+ $.each(['paddingLeft', 'paddingRight', 'borderLeftWidth', 'borderRightWidth'], function(i,val){
144
+ width -= parseInt(style[val],10);
145
+ });
146
+
147
+ mirror.style.width = width + 'px';
148
+ }
149
+ else {
150
+ mirror.style.width = Math.max($ta.width(), 0) + 'px';
151
+ }
152
+
153
+ // Needed for IE8 and lower to reliably return the correct scrollTop
154
+ mirror.scrollTop = 0;
155
+
156
+ mirror.scrollTop = 9e4;
157
+
158
+ // Using scrollTop rather than scrollHeight because scrollHeight is non-standard and includes padding.
159
+ height = mirror.scrollTop;
160
+
161
+ if (maxHeight && height > maxHeight) {
162
+ ta.style.overflowY = 'scroll';
163
+ height = maxHeight;
164
+ } else {
165
+ ta.style.overflowY = 'hidden';
166
+ if (height < minHeight) {
167
+ height = minHeight;
168
+ }
169
+ }
170
+
171
+ height += boxOffset;
172
+
173
+ if (original !== height) {
174
+ ta.style.height = height + 'px';
175
+ if (callback) {
176
+ options.callback.call(ta,ta);
177
+ }
178
+ }
179
+ }
180
+
181
+ function resize () {
182
+ clearTimeout(timeout);
183
+ timeout = setTimeout(function(){
184
+ if ($ta.width() !== width) {
185
+ adjust();
186
+ }
187
+ }, parseInt(options.resizeDelay,10));
188
+ }
189
+
190
+ if ('onpropertychange' in ta) {
191
+ if ('oninput' in ta) {
192
+ // Detects IE9. IE9 does not fire onpropertychange or oninput for deletions,
193
+ // so binding to onkeyup to catch most of those occasions. There is no way that I
194
+ // know of to detect something like 'cut' in IE9.
195
+ $ta.on('input.autosize keyup.autosize', adjust);
196
+ } else {
197
+ // IE7 / IE8
198
+ $ta.on('propertychange.autosize', function(){
199
+ if(event.propertyName === 'value'){
200
+ adjust();
201
+ }
202
+ });
203
+ }
204
+ } else {
205
+ // Modern Browsers
206
+ $ta.on('input.autosize', adjust);
207
+ }
208
+
209
+ // Set options.resizeDelay to false if using fixed-width textarea elements.
210
+ // Uses a timeout and width check to reduce the amount of times adjust needs to be called after window resize.
211
+
212
+ if (options.resizeDelay !== false) {
213
+ $(window).on('resize.autosize', resize);
214
+ }
215
+
216
+ // Event for manual triggering if needed.
217
+ // Should only be needed when the value of the textarea is changed through JavaScript rather than user input.
218
+ $ta.on('autosize.resize', adjust);
219
+
220
+ // Event for manual triggering that also forces the styles to update as well.
221
+ // Should only be needed if one of typography styles of the textarea change, and the textarea is already the target of the adjust method.
222
+ $ta.on('autosize.resizeIncludeStyle', function() {
223
+ mirrored = null;
224
+ adjust();
225
+ });
226
+
227
+ $ta.on('autosize.destroy', function(){
228
+ mirrored = null;
229
+ clearTimeout(timeout);
230
+ $(window).off('resize', resize);
231
+ $ta
232
+ .off('autosize')
233
+ .off('.autosize')
234
+ .css(originalStyles)
235
+ .removeData('autosize');
236
+ });
237
+
238
+ // Call adjust in case the textarea already contains text.
239
+ adjust();
240
+ });
241
+ };
242
+ }));