tjadmin 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tjadmin/version.rb +1 -1
- data/vendor/assets/font/DXI1ORHCpsQm3Vp6mXoaTXhCUOGz7vYGh680lGh-uXM.woff +0 -0
- data/vendor/assets/font/FontAwesome.otf +0 -0
- data/vendor/assets/font/cJZKeOuBrn4kERxqtaUH3T8E0i7KZn-EPnyo3HZu7kw.woff +0 -0
- data/vendor/assets/font/fontawesome-webfont.eot +0 -0
- data/vendor/assets/font/fontawesome-webfont.svg +399 -0
- data/vendor/assets/font/fontawesome-webfont.ttf +0 -0
- data/vendor/assets/font/fontawesome-webfont.woff +0 -0
- data/vendor/assets/javascripts/tjadmin/ace-elements.js +866 -0
- data/vendor/assets/javascripts/tjadmin/ace-extra.js +374 -0
- data/vendor/assets/javascripts/tjadmin/ace.js +310 -0
- data/vendor/assets/javascripts/tjadmin/additional-methods.js +617 -0
- data/vendor/assets/javascripts/tjadmin/bootbox.js +660 -0
- data/vendor/assets/javascripts/tjadmin/bootstrap-colorpicker.js +540 -0
- data/vendor/assets/javascripts/tjadmin/bootstrap-tag.js +206 -0
- data/vendor/assets/javascripts/tjadmin/bootstrap-wysiwyg.js +206 -0
- data/vendor/assets/javascripts/tjadmin/bootstrap.js +2280 -0
- data/vendor/assets/javascripts/tjadmin/chosen.jquery.js +1166 -0
- data/vendor/assets/javascripts/tjadmin/date-time/bootstrap-datepicker.js +1016 -0
- data/vendor/assets/javascripts/tjadmin/date-time/bootstrap-timepicker.js +888 -0
- data/vendor/assets/javascripts/tjadmin/date-time/daterangepicker.js +854 -0
- data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.bg.js +14 -0
- data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.ca.js +14 -0
- data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.cs.js +15 -0
- data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.da.js +14 -0
- data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.de.js +16 -0
- data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.el.js +13 -0
- data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.es.js +14 -0
- data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.fi.js +14 -0
- data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.fr.js +16 -0
- data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.he.js +15 -0
- data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.hr.js +13 -0
- data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.hu.js +16 -0
- data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.id.js +13 -0
- data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.is.js +14 -0
- data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.it.js +16 -0
- data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.ja.js +15 -0
- data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.kr.js +13 -0
- data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.lt.js +16 -0
- data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.lv.js +16 -0
- data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.ms.js +14 -0
- data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.nb.js +14 -0
- data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.nl.js +14 -0
- data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.pl.js +15 -0
- data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.pt-BR.js +14 -0
- data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.pt.js +14 -0
- data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.ro.js +15 -0
- data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.rs-latin.js +14 -0
- data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.rs.js +14 -0
- data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.ru.js +14 -0
- data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.sk.js +15 -0
- data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.sl.js +14 -0
- data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.sv.js +14 -0
- data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.sw.js +15 -0
- data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.th.js +14 -0
- data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.tr.js +15 -0
- data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.uk.js +14 -0
- data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.zh-CN.js +14 -0
- data/vendor/assets/javascripts/tjadmin/date-time/locales/bootstrap-datepicker.zh-TW.js +13 -0
- data/vendor/assets/javascripts/tjadmin/date-time/moment.js +1400 -0
- data/vendor/assets/javascripts/tjadmin/excanvas.js +1428 -0
- data/vendor/assets/javascripts/tjadmin/flot/jquery.flot.js +3061 -0
- data/vendor/assets/javascripts/tjadmin/flot/jquery.flot.pie.js +817 -0
- data/vendor/assets/javascripts/tjadmin/flot/jquery.flot.resize.js +60 -0
- data/vendor/assets/javascripts/tjadmin/fuelux/data/fuelux.tree-sampledata.js +174 -0
- data/vendor/assets/javascripts/tjadmin/fuelux/fuelux.spinner.js +201 -0
- data/vendor/assets/javascripts/tjadmin/fuelux/fuelux.tree.js +173 -0
- data/vendor/assets/javascripts/tjadmin/fuelux/fuelux.wizard.js +172 -0
- data/vendor/assets/javascripts/tjadmin/fullcalendar.js +5973 -0
- data/vendor/assets/javascripts/tjadmin/jquery-1.10.2.js +9789 -0
- data/vendor/assets/javascripts/tjadmin/jquery-2.0.3.js +8829 -0
- data/vendor/assets/javascripts/tjadmin/jquery-ui-1.10.3.custom.js +5423 -0
- data/vendor/assets/javascripts/tjadmin/jquery.autosize.js +242 -0
- data/vendor/assets/javascripts/tjadmin/jquery.colorbox.js +1063 -0
- data/vendor/assets/javascripts/tjadmin/jquery.dataTables.js +12099 -0
- data/vendor/assets/javascripts/tjadmin/jquery.easy-pie-chart.js +200 -0
- data/vendor/assets/javascripts/tjadmin/jquery.gritter.js +418 -0
- data/vendor/assets/javascripts/tjadmin/jquery.hotkeys.js +113 -0
- data/vendor/assets/javascripts/tjadmin/jquery.inputlimiter.1.3.1.js +172 -0
- data/vendor/assets/javascripts/tjadmin/jquery.knob.js +656 -0
- data/vendor/assets/javascripts/tjadmin/jquery.maskedinput.js +338 -0
- data/vendor/assets/javascripts/tjadmin/jquery.mobile.custom.js +1081 -0
- data/vendor/assets/javascripts/tjadmin/jquery.slimscroll.js +448 -0
- data/vendor/assets/javascripts/tjadmin/jquery.sparkline.js +3054 -0
- data/vendor/assets/javascripts/tjadmin/jquery.ui.touch-punch.js +160 -0
- data/vendor/assets/javascripts/tjadmin/jquery.validate.js +1231 -0
- data/vendor/assets/javascripts/tjadmin/markdown/bootstrap-markdown.js +993 -0
- data/vendor/assets/javascripts/tjadmin/markdown/markdown.js +1616 -0
- data/vendor/assets/javascripts/tjadmin/markdown/to-markdown.js +184 -0
- data/vendor/assets/javascripts/tjadmin/select2.js +3168 -0
- data/vendor/assets/javascripts/tjadmin/spin.js +349 -0
- data/vendor/assets/javascripts/tjadmin/x-editable/ace-editable.js +368 -0
- data/vendor/assets/javascripts/tjadmin/x-editable/bootstrap-editable.js +6827 -0
- data/vendor/assets/javascripts/tjadmin.js +5 -0
- data/vendor/assets/stylesheets/tjadmin/ace-fonts.css.scss +13 -0
- data/vendor/assets/stylesheets/tjadmin/ace-ie.css +293 -0
- data/vendor/assets/stylesheets/tjadmin/ace-responsive.css +1113 -0
- data/vendor/assets/stylesheets/tjadmin/ace-skins.css +1301 -0
- data/vendor/assets/stylesheets/tjadmin/ace.css +14701 -0
- data/vendor/assets/stylesheets/tjadmin/bootstrap-responsive.css +1109 -0
- data/vendor/assets/stylesheets/tjadmin/bootstrap.css +6167 -0
- data/vendor/assets/stylesheets/tjadmin/chosen.css +430 -0
- data/vendor/assets/stylesheets/tjadmin/font-awesome-ie7.css +1203 -0
- data/vendor/assets/stylesheets/tjadmin/font-awesome.css +1479 -0
- data/vendor/assets/stylesheets/tjadmin/jquery-ui-1.10.3.custom.css +223 -0
- data/vendor/assets/stylesheets/tjadmin.css +9 -0
- metadata +106 -1
@@ -0,0 +1,160 @@
|
|
1
|
+
/*!
|
2
|
+
* jQuery UI Touch Punch 0.2.2
|
3
|
+
*
|
4
|
+
* Copyright 2011, Dave Furfero
|
5
|
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
6
|
+
*
|
7
|
+
* Depends:
|
8
|
+
* jquery.ui.widget.js
|
9
|
+
* jquery.ui.mouse.js
|
10
|
+
*/
|
11
|
+
(function ($) {
|
12
|
+
|
13
|
+
// Detect touch support
|
14
|
+
$.support.touch = 'ontouchend' in document;
|
15
|
+
|
16
|
+
// Ignore browsers without touch support
|
17
|
+
if (!$.support.touch) {
|
18
|
+
return;
|
19
|
+
}
|
20
|
+
|
21
|
+
var mouseProto = $.ui.mouse.prototype,
|
22
|
+
_mouseInit = mouseProto._mouseInit,
|
23
|
+
touchHandled;
|
24
|
+
|
25
|
+
/**
|
26
|
+
* Simulate a mouse event based on a corresponding touch event
|
27
|
+
* @param {Object} event A touch event
|
28
|
+
* @param {String} simulatedType The corresponding mouse event
|
29
|
+
*/
|
30
|
+
function simulateMouseEvent (event, simulatedType) {
|
31
|
+
|
32
|
+
// Ignore multi-touch events
|
33
|
+
if (event.originalEvent.touches.length > 1) {
|
34
|
+
return;
|
35
|
+
}
|
36
|
+
|
37
|
+
event.preventDefault();
|
38
|
+
|
39
|
+
var touch = event.originalEvent.changedTouches[0],
|
40
|
+
simulatedEvent = document.createEvent('MouseEvents');
|
41
|
+
|
42
|
+
// Initialize the simulated mouse event using the touch event's coordinates
|
43
|
+
simulatedEvent.initMouseEvent(
|
44
|
+
simulatedType, // type
|
45
|
+
true, // bubbles
|
46
|
+
true, // cancelable
|
47
|
+
window, // view
|
48
|
+
1, // detail
|
49
|
+
touch.screenX, // screenX
|
50
|
+
touch.screenY, // screenY
|
51
|
+
touch.clientX, // clientX
|
52
|
+
touch.clientY, // clientY
|
53
|
+
false, // ctrlKey
|
54
|
+
false, // altKey
|
55
|
+
false, // shiftKey
|
56
|
+
false, // metaKey
|
57
|
+
0, // button
|
58
|
+
null // relatedTarget
|
59
|
+
);
|
60
|
+
|
61
|
+
// Dispatch the simulated event to the target element
|
62
|
+
event.target.dispatchEvent(simulatedEvent);
|
63
|
+
}
|
64
|
+
|
65
|
+
/**
|
66
|
+
* Handle the jQuery UI widget's touchstart events
|
67
|
+
* @param {Object} event The widget element's touchstart event
|
68
|
+
*/
|
69
|
+
mouseProto._touchStart = function (event) {
|
70
|
+
|
71
|
+
var self = this;
|
72
|
+
|
73
|
+
// Ignore the event if another widget is already being handled
|
74
|
+
if (touchHandled || !self._mouseCapture(event.originalEvent.changedTouches[0])) {
|
75
|
+
return;
|
76
|
+
}
|
77
|
+
|
78
|
+
// Set the flag to prevent other widgets from inheriting the touch event
|
79
|
+
touchHandled = true;
|
80
|
+
|
81
|
+
// Track movement to determine if interaction was a click
|
82
|
+
self._touchMoved = false;
|
83
|
+
|
84
|
+
// Simulate the mouseover event
|
85
|
+
simulateMouseEvent(event, 'mouseover');
|
86
|
+
|
87
|
+
// Simulate the mousemove event
|
88
|
+
simulateMouseEvent(event, 'mousemove');
|
89
|
+
|
90
|
+
// Simulate the mousedown event
|
91
|
+
simulateMouseEvent(event, 'mousedown');
|
92
|
+
};
|
93
|
+
|
94
|
+
/**
|
95
|
+
* Handle the jQuery UI widget's touchmove events
|
96
|
+
* @param {Object} event The document's touchmove event
|
97
|
+
*/
|
98
|
+
mouseProto._touchMove = function (event) {
|
99
|
+
|
100
|
+
// Ignore event if not handled
|
101
|
+
if (!touchHandled) {
|
102
|
+
return;
|
103
|
+
}
|
104
|
+
|
105
|
+
// Interaction was not a click
|
106
|
+
this._touchMoved = true;
|
107
|
+
|
108
|
+
// Simulate the mousemove event
|
109
|
+
simulateMouseEvent(event, 'mousemove');
|
110
|
+
};
|
111
|
+
|
112
|
+
/**
|
113
|
+
* Handle the jQuery UI widget's touchend events
|
114
|
+
* @param {Object} event The document's touchend event
|
115
|
+
*/
|
116
|
+
mouseProto._touchEnd = function (event) {
|
117
|
+
|
118
|
+
// Ignore event if not handled
|
119
|
+
if (!touchHandled) {
|
120
|
+
return;
|
121
|
+
}
|
122
|
+
|
123
|
+
// Simulate the mouseup event
|
124
|
+
simulateMouseEvent(event, 'mouseup');
|
125
|
+
|
126
|
+
// Simulate the mouseout event
|
127
|
+
simulateMouseEvent(event, 'mouseout');
|
128
|
+
|
129
|
+
// If the touch interaction did not move, it should trigger a click
|
130
|
+
if (!this._touchMoved) {
|
131
|
+
|
132
|
+
// Simulate the click event
|
133
|
+
simulateMouseEvent(event, 'click');
|
134
|
+
}
|
135
|
+
|
136
|
+
// Unset the flag to allow other widgets to inherit the touch event
|
137
|
+
touchHandled = false;
|
138
|
+
};
|
139
|
+
|
140
|
+
/**
|
141
|
+
* A duck punch of the $.ui.mouse _mouseInit method to support touch events.
|
142
|
+
* This method extends the widget with bound touch event handlers that
|
143
|
+
* translate touch events to mouse events and pass them to the widget's
|
144
|
+
* original mouse event handling methods.
|
145
|
+
*/
|
146
|
+
mouseProto._mouseInit = function () {
|
147
|
+
|
148
|
+
var self = this;
|
149
|
+
|
150
|
+
// Delegate the touch handlers to the widget's element
|
151
|
+
self.element
|
152
|
+
.bind('touchstart', $.proxy(self, '_touchStart'))
|
153
|
+
.bind('touchmove', $.proxy(self, '_touchMove'))
|
154
|
+
.bind('touchend', $.proxy(self, '_touchEnd'));
|
155
|
+
|
156
|
+
// Call the original $.ui.mouse init method
|
157
|
+
_mouseInit.call(self);
|
158
|
+
};
|
159
|
+
|
160
|
+
})(jQuery);
|