etabliocms_pages 0.0.4 → 0.0.5

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.
@@ -1,3 +1,3 @@
1
1
  module EtabliocmsPages
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
Binary file
Binary file
Binary file
@@ -0,0 +1,296 @@
1
+ /*
2
+ Uploadify v2.1.4
3
+ Release Date: November 8, 2010
4
+
5
+ Copyright (c) 2010 Ronnie Garcia, Travis Nickels
6
+
7
+ Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ of this software and associated documentation files (the "Software"), to deal
9
+ in the Software without restriction, including without limitation the rights
10
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ copies of the Software, and to permit persons to whom the Software is
12
+ furnished to do so, subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be included in
15
+ all copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23
+ THE SOFTWARE.
24
+ */
25
+
26
+ if(jQuery)(
27
+ function(jQuery){
28
+ jQuery.extend(jQuery.fn,{
29
+ uploadify:function(options) {
30
+ jQuery(this).each(function(){
31
+ var settings = jQuery.extend({
32
+ id : jQuery(this).attr('id'), // The ID of the object being Uploadified
33
+ uploader : 'uploadify.swf', // The path to the uploadify swf file
34
+ script : 'uploadify.php', // The path to the uploadify backend upload script
35
+ expressInstall : null, // The path to the express install swf file
36
+ folder : '', // The path to the upload folder
37
+ height : 30, // The height of the flash button
38
+ width : 120, // The width of the flash button
39
+ cancelImg : 'cancel.png', // The path to the cancel image for the default file queue item container
40
+ wmode : 'opaque', // The wmode of the flash file
41
+ scriptAccess : 'sameDomain', // Set to "always" to allow script access across domains
42
+ fileDataName : 'Filedata', // The name of the file collection object in the backend upload script
43
+ method : 'POST', // The method for sending variables to the backend upload script
44
+ queueSizeLimit : 999, // The maximum size of the file queue
45
+ simUploadLimit : 1, // The number of simultaneous uploads allowed
46
+ queueID : false, // The optional ID of the queue container
47
+ displayData : 'percentage', // Set to "speed" to show the upload speed in the default queue item
48
+ removeCompleted : true, // Set to true if you want the queue items to be removed when a file is done uploading
49
+ onInit : function() {}, // Function to run when uploadify is initialized
50
+ onSelect : function() {}, // Function to run when a file is selected
51
+ onSelectOnce : function() {}, // Function to run once when files are added to the queue
52
+ onQueueFull : function() {}, // Function to run when the queue reaches capacity
53
+ onCheck : function() {}, // Function to run when script checks for duplicate files on the server
54
+ onCancel : function() {}, // Function to run when an item is cleared from the queue
55
+ onClearQueue : function() {}, // Function to run when the queue is manually cleared
56
+ onError : function() {}, // Function to run when an upload item returns an error
57
+ onProgress : function() {}, // Function to run each time the upload progress is updated
58
+ onComplete : function() {}, // Function to run when an upload is completed
59
+ onAllComplete : function() {} // Function to run when all uploads are completed
60
+ }, options);
61
+ jQuery(this).data('settings',settings);
62
+ var pagePath = location.pathname;
63
+ pagePath = pagePath.split('/');
64
+ pagePath.pop();
65
+ pagePath = pagePath.join('/') + '/';
66
+ var data = {};
67
+ data.uploadifyID = settings.id;
68
+ data.pagepath = pagePath;
69
+ if (settings.buttonImg) data.buttonImg = escape(settings.buttonImg);
70
+ if (settings.buttonText) data.buttonText = escape(settings.buttonText);
71
+ if (settings.rollover) data.rollover = true;
72
+ data.script = settings.script;
73
+ data.folder = escape(settings.folder);
74
+ if (settings.scriptData) {
75
+ var scriptDataString = '';
76
+ for (var name in settings.scriptData) {
77
+ scriptDataString += '&' + name + '=' + settings.scriptData[name];
78
+ }
79
+ data.scriptData = escape(scriptDataString.substr(1));
80
+ }
81
+ data.width = settings.width;
82
+ data.height = settings.height;
83
+ data.wmode = settings.wmode;
84
+ data.method = settings.method;
85
+ data.queueSizeLimit = settings.queueSizeLimit;
86
+ data.simUploadLimit = settings.simUploadLimit;
87
+ if (settings.hideButton) data.hideButton = true;
88
+ if (settings.fileDesc) data.fileDesc = settings.fileDesc;
89
+ if (settings.fileExt) data.fileExt = settings.fileExt;
90
+ if (settings.multi) data.multi = true;
91
+ if (settings.auto) data.auto = true;
92
+ if (settings.sizeLimit) data.sizeLimit = settings.sizeLimit;
93
+ if (settings.checkScript) data.checkScript = settings.checkScript;
94
+ if (settings.fileDataName) data.fileDataName = settings.fileDataName;
95
+ if (settings.queueID) data.queueID = settings.queueID;
96
+ if (settings.onInit() !== false) {
97
+ jQuery(this).css('display','none');
98
+ jQuery(this).after('<div id="' + jQuery(this).attr('id') + 'Uploader"></div>');
99
+ swfobject.embedSWF(settings.uploader, settings.id + 'Uploader', settings.width, settings.height, '9.0.24', settings.expressInstall, data, {'quality':'high','wmode':settings.wmode,'allowScriptAccess':settings.scriptAccess},{},function(event) {
100
+ if (typeof(settings.onSWFReady) == 'function' && event.success) settings.onSWFReady();
101
+ });
102
+ if (settings.queueID == false) {
103
+ jQuery("#" + jQuery(this).attr('id') + "Uploader").after('<div id="' + jQuery(this).attr('id') + 'Queue" class="uploadifyQueue"></div>');
104
+ } else {
105
+ jQuery("#" + settings.queueID).addClass('uploadifyQueue');
106
+ }
107
+ }
108
+ if (typeof(settings.onOpen) == 'function') {
109
+ jQuery(this).bind("uploadifyOpen", settings.onOpen);
110
+ }
111
+ jQuery(this).bind("uploadifySelect", {'action': settings.onSelect, 'queueID': settings.queueID}, function(event, ID, fileObj) {
112
+ if (event.data.action(event, ID, fileObj) !== false) {
113
+ var byteSize = Math.round(fileObj.size / 1024 * 100) * .01;
114
+ var suffix = 'KB';
115
+ if (byteSize > 1000) {
116
+ byteSize = Math.round(byteSize *.001 * 100) * .01;
117
+ suffix = 'MB';
118
+ }
119
+ var sizeParts = byteSize.toString().split('.');
120
+ if (sizeParts.length > 1) {
121
+ byteSize = sizeParts[0] + '.' + sizeParts[1].substr(0,2);
122
+ } else {
123
+ byteSize = sizeParts[0];
124
+ }
125
+ if (fileObj.name.length > 20) {
126
+ fileName = fileObj.name.substr(0,20) + '...';
127
+ } else {
128
+ fileName = fileObj.name;
129
+ }
130
+ queue = '#' + jQuery(this).attr('id') + 'Queue';
131
+ if (event.data.queueID) {
132
+ queue = '#' + event.data.queueID;
133
+ }
134
+ jQuery(queue).append('<div id="' + jQuery(this).attr('id') + ID + '" class="uploadifyQueueItem">\
135
+ <div class="cancel">\
136
+ <a href="javascript:jQuery(\'#' + jQuery(this).attr('id') + '\').uploadifyCancel(\'' + ID + '\')"><img src="' + settings.cancelImg + '" border="0" /></a>\
137
+ </div>\
138
+ <span class="fileName">' + fileName + ' (' + byteSize + suffix + ')</span><span class="percentage"></span>\
139
+ <div class="uploadifyProgress">\
140
+ <div id="' + jQuery(this).attr('id') + ID + 'ProgressBar" class="uploadifyProgressBar"><!--Progress Bar--></div>\
141
+ </div>\
142
+ </div>');
143
+ }
144
+ });
145
+ jQuery(this).bind("uploadifySelectOnce", {'action': settings.onSelectOnce}, function(event, data) {
146
+ event.data.action(event, data);
147
+ if (settings.auto) {
148
+ if (settings.checkScript) {
149
+ jQuery(this).uploadifyUpload(null, false);
150
+ } else {
151
+ jQuery(this).uploadifyUpload(null, true);
152
+ }
153
+ }
154
+ });
155
+ jQuery(this).bind("uploadifyQueueFull", {'action': settings.onQueueFull}, function(event, queueSizeLimit) {
156
+ if (event.data.action(event, queueSizeLimit) !== false) {
157
+ alert('The queue is full. The max size is ' + queueSizeLimit + '.');
158
+ }
159
+ });
160
+ jQuery(this).bind("uploadifyCheckExist", {'action': settings.onCheck}, function(event, checkScript, fileQueueObj, folder, single) {
161
+ var postData = new Object();
162
+ postData = fileQueueObj;
163
+ postData.folder = (folder.substr(0,1) == '/') ? folder : pagePath + folder;
164
+ if (single) {
165
+ for (var ID in fileQueueObj) {
166
+ var singleFileID = ID;
167
+ }
168
+ }
169
+ jQuery.post(checkScript, postData, function(data) {
170
+ for(var key in data) {
171
+ if (event.data.action(event, data, key) !== false) {
172
+ var replaceFile = confirm("Do you want to replace the file " + data[key] + "?");
173
+ if (!replaceFile) {
174
+ document.getElementById(jQuery(event.target).attr('id') + 'Uploader').cancelFileUpload(key,true,true);
175
+ }
176
+ }
177
+ }
178
+ if (single) {
179
+ document.getElementById(jQuery(event.target).attr('id') + 'Uploader').startFileUpload(singleFileID, true);
180
+ } else {
181
+ document.getElementById(jQuery(event.target).attr('id') + 'Uploader').startFileUpload(null, true);
182
+ }
183
+ }, "json");
184
+ });
185
+ jQuery(this).bind("uploadifyCancel", {'action': settings.onCancel}, function(event, ID, fileObj, data, remove, clearFast) {
186
+ if (event.data.action(event, ID, fileObj, data, clearFast) !== false) {
187
+ if (remove) {
188
+ var fadeSpeed = (clearFast == true) ? 0 : 250;
189
+ jQuery("#" + jQuery(this).attr('id') + ID).fadeOut(fadeSpeed, function() { jQuery(this).remove() });
190
+ }
191
+ }
192
+ });
193
+ jQuery(this).bind("uploadifyClearQueue", {'action': settings.onClearQueue}, function(event, clearFast) {
194
+ var queueID = (settings.queueID) ? settings.queueID : jQuery(this).attr('id') + 'Queue';
195
+ if (clearFast) {
196
+ jQuery("#" + queueID).find('.uploadifyQueueItem').remove();
197
+ }
198
+ if (event.data.action(event, clearFast) !== false) {
199
+ jQuery("#" + queueID).find('.uploadifyQueueItem').each(function() {
200
+ var index = jQuery('.uploadifyQueueItem').index(this);
201
+ jQuery(this).delay(index * 100).fadeOut(250, function() { jQuery(this).remove() });
202
+ });
203
+ }
204
+ });
205
+ var errorArray = [];
206
+ jQuery(this).bind("uploadifyError", {'action': settings.onError}, function(event, ID, fileObj, errorObj) {
207
+ if (event.data.action(event, ID, fileObj, errorObj) !== false) {
208
+ var fileArray = new Array(ID, fileObj, errorObj);
209
+ errorArray.push(fileArray);
210
+ jQuery("#" + jQuery(this).attr('id') + ID).find('.percentage').text(" - " + errorObj.type + " Error");
211
+ jQuery("#" + jQuery(this).attr('id') + ID).find('.uploadifyProgress').hide();
212
+ jQuery("#" + jQuery(this).attr('id') + ID).addClass('uploadifyError');
213
+ }
214
+ });
215
+ if (typeof(settings.onUpload) == 'function') {
216
+ jQuery(this).bind("uploadifyUpload", settings.onUpload);
217
+ }
218
+ jQuery(this).bind("uploadifyProgress", {'action': settings.onProgress, 'toDisplay': settings.displayData}, function(event, ID, fileObj, data) {
219
+ if (event.data.action(event, ID, fileObj, data) !== false) {
220
+ jQuery("#" + jQuery(this).attr('id') + ID + "ProgressBar").animate({'width': data.percentage + '%'},250,function() {
221
+ if (data.percentage == 100) {
222
+ jQuery(this).closest('.uploadifyProgress').fadeOut(250,function() {jQuery(this).remove()});
223
+ }
224
+ });
225
+ if (event.data.toDisplay == 'percentage') displayData = ' - ' + data.percentage + '%';
226
+ if (event.data.toDisplay == 'speed') displayData = ' - ' + data.speed + 'KB/s';
227
+ if (event.data.toDisplay == null) displayData = ' ';
228
+ jQuery("#" + jQuery(this).attr('id') + ID).find('.percentage').text(displayData);
229
+ }
230
+ });
231
+ jQuery(this).bind("uploadifyComplete", {'action': settings.onComplete}, function(event, ID, fileObj, response, data) {
232
+ if (event.data.action(event, ID, fileObj, unescape(response), data) !== false) {
233
+ jQuery("#" + jQuery(this).attr('id') + ID).find('.percentage').text(' - Completed');
234
+ if (settings.removeCompleted) {
235
+ jQuery("#" + jQuery(event.target).attr('id') + ID).fadeOut(250,function() {jQuery(this).remove()});
236
+ }
237
+ jQuery("#" + jQuery(event.target).attr('id') + ID).addClass('completed');
238
+ }
239
+ });
240
+ if (typeof(settings.onAllComplete) == 'function') {
241
+ jQuery(this).bind("uploadifyAllComplete", {'action': settings.onAllComplete}, function(event, data) {
242
+ if (event.data.action(event, data) !== false) {
243
+ errorArray = [];
244
+ }
245
+ });
246
+ }
247
+ });
248
+ },
249
+ uploadifySettings:function(settingName, settingValue, resetObject) {
250
+ var returnValue = false;
251
+ jQuery(this).each(function() {
252
+ if (settingName == 'scriptData' && settingValue != null) {
253
+ if (resetObject) {
254
+ var scriptData = settingValue;
255
+ } else {
256
+ var scriptData = jQuery.extend(jQuery(this).data('settings').scriptData, settingValue);
257
+ }
258
+ var scriptDataString = '';
259
+ for (var name in scriptData) {
260
+ scriptDataString += '&' + name + '=' + scriptData[name];
261
+ }
262
+ settingValue = escape(scriptDataString.substr(1));
263
+ }
264
+ returnValue = document.getElementById(jQuery(this).attr('id') + 'Uploader').updateSettings(settingName, settingValue);
265
+ });
266
+ if (settingValue == null) {
267
+ if (settingName == 'scriptData') {
268
+ var returnSplit = unescape(returnValue).split('&');
269
+ var returnObj = new Object();
270
+ for (var i = 0; i < returnSplit.length; i++) {
271
+ var iSplit = returnSplit[i].split('=');
272
+ returnObj[iSplit[0]] = iSplit[1];
273
+ }
274
+ returnValue = returnObj;
275
+ }
276
+ }
277
+ return returnValue;
278
+ },
279
+ uploadifyUpload:function(ID,checkComplete) {
280
+ jQuery(this).each(function() {
281
+ if (!checkComplete) checkComplete = false;
282
+ document.getElementById(jQuery(this).attr('id') + 'Uploader').startFileUpload(ID, checkComplete);
283
+ });
284
+ },
285
+ uploadifyCancel:function(ID) {
286
+ jQuery(this).each(function() {
287
+ document.getElementById(jQuery(this).attr('id') + 'Uploader').cancelFileUpload(ID, true, true, false);
288
+ });
289
+ },
290
+ uploadifyClearQueue:function() {
291
+ jQuery(this).each(function() {
292
+ document.getElementById(jQuery(this).attr('id') + 'Uploader').clearFileUploadQueue(false);
293
+ });
294
+ }
295
+ })
296
+ })(jQuery);
@@ -0,0 +1,495 @@
1
+ /*
2
+ * zClip :: jQuery ZeroClipboard v1.1.1
3
+ * http://steamdev.com/zclip
4
+ *
5
+ * Copyright 2011, SteamDev
6
+ * Released under the MIT license.
7
+ * http://www.opensource.org/licenses/mit-license.php
8
+ *
9
+ * Date: Wed Jun 01, 2011
10
+ */
11
+
12
+
13
+ (function ($) {
14
+
15
+ $.fn.zclip = function (params) {
16
+
17
+ if (typeof params == "object" && !params.length) {
18
+
19
+ var settings = $.extend({
20
+
21
+ path: 'ZeroClipboard.swf',
22
+ copy: null,
23
+ beforeCopy: null,
24
+ afterCopy: null,
25
+ clickAfter: true,
26
+ setHandCursor: true,
27
+ setCSSEffects: true
28
+
29
+ }, params);
30
+
31
+
32
+ return this.each(function () {
33
+
34
+ var o = $(this);
35
+
36
+ if (o.is(':visible') && (typeof settings.copy == 'string' || $.isFunction(settings.copy))) {
37
+
38
+ ZeroClipboard.setMoviePath(settings.path);
39
+ var clip = new ZeroClipboard.Client();
40
+
41
+ if($.isFunction(settings.copy)){
42
+ o.bind('zClip_copy',settings.copy);
43
+ }
44
+ if($.isFunction(settings.beforeCopy)){
45
+ o.bind('zClip_beforeCopy',settings.beforeCopy);
46
+ }
47
+ if($.isFunction(settings.afterCopy)){
48
+ o.bind('zClip_afterCopy',settings.afterCopy);
49
+ }
50
+
51
+ clip.setHandCursor(settings.setHandCursor);
52
+ clip.setCSSEffects(settings.setCSSEffects);
53
+ clip.addEventListener('mouseOver', function (client) {
54
+ o.trigger('mouseenter');
55
+ });
56
+ clip.addEventListener('mouseOut', function (client) {
57
+ o.trigger('mouseleave');
58
+ });
59
+ clip.addEventListener('mouseDown', function (client) {
60
+
61
+ o.trigger('mousedown');
62
+
63
+ if(!$.isFunction(settings.copy)){
64
+ clip.setText(settings.copy);
65
+ } else {
66
+ clip.setText(o.triggerHandler('zClip_copy'));
67
+ }
68
+
69
+ if ($.isFunction(settings.beforeCopy)) {
70
+ o.trigger('zClip_beforeCopy');
71
+ }
72
+
73
+ });
74
+
75
+ clip.addEventListener('complete', function (client, text) {
76
+
77
+ if ($.isFunction(settings.afterCopy)) {
78
+
79
+ o.trigger('zClip_afterCopy');
80
+
81
+ } else {
82
+ if (text.length > 500) {
83
+ text = text.substr(0, 500) + "...\n\n(" + (text.length - 500) + " characters not shown)";
84
+ }
85
+
86
+ o.removeClass('hover');
87
+ alert("Copied text to clipboard:\n\n " + text);
88
+ }
89
+
90
+ if (settings.clickAfter) {
91
+ o.trigger('click');
92
+ }
93
+
94
+ });
95
+
96
+
97
+ clip.glue(o[0], o.parent()[0]);
98
+
99
+ $(window).bind('load resize',function(){clip.reposition();});
100
+
101
+
102
+ }
103
+
104
+ });
105
+
106
+ } else if (typeof params == "string") {
107
+
108
+ return this.each(function () {
109
+
110
+ var o = $(this);
111
+
112
+ params = params.toLowerCase();
113
+ var zclipId = o.data('zclipId');
114
+ var clipElm = $('#' + zclipId + '.zclip');
115
+
116
+ if (params == "remove") {
117
+
118
+ clipElm.remove();
119
+ o.removeClass('active hover');
120
+
121
+ } else if (params == "hide") {
122
+
123
+ clipElm.hide();
124
+ o.removeClass('active hover');
125
+
126
+ } else if (params == "show") {
127
+
128
+ clipElm.show();
129
+
130
+ }
131
+
132
+ });
133
+
134
+ }
135
+
136
+ }
137
+
138
+
139
+
140
+ })(jQuery);
141
+
142
+
143
+
144
+
145
+
146
+
147
+
148
+ // ZeroClipboard
149
+ // Simple Set Clipboard System
150
+ // Author: Joseph Huckaby
151
+ var ZeroClipboard = {
152
+
153
+ version: "1.0.7",
154
+ clients: {},
155
+ // registered upload clients on page, indexed by id
156
+ moviePath: 'ZeroClipboard.swf',
157
+ // URL to movie
158
+ nextId: 1,
159
+ // ID of next movie
160
+ $: function (thingy) {
161
+ // simple DOM lookup utility function
162
+ if (typeof(thingy) == 'string') thingy = document.getElementById(thingy);
163
+ if (!thingy.addClass) {
164
+ // extend element with a few useful methods
165
+ thingy.hide = function () {
166
+ this.style.display = 'none';
167
+ };
168
+ thingy.show = function () {
169
+ this.style.display = '';
170
+ };
171
+ thingy.addClass = function (name) {
172
+ this.removeClass(name);
173
+ this.className += ' ' + name;
174
+ };
175
+ thingy.removeClass = function (name) {
176
+ var classes = this.className.split(/\s+/);
177
+ var idx = -1;
178
+ for (var k = 0; k < classes.length; k++) {
179
+ if (classes[k] == name) {
180
+ idx = k;
181
+ k = classes.length;
182
+ }
183
+ }
184
+ if (idx > -1) {
185
+ classes.splice(idx, 1);
186
+ this.className = classes.join(' ');
187
+ }
188
+ return this;
189
+ };
190
+ thingy.hasClass = function (name) {
191
+ return !!this.className.match(new RegExp("\\s*" + name + "\\s*"));
192
+ };
193
+ }
194
+ return thingy;
195
+ },
196
+
197
+ setMoviePath: function (path) {
198
+ // set path to ZeroClipboard.swf
199
+ this.moviePath = path;
200
+ },
201
+
202
+ dispatch: function (id, eventName, args) {
203
+ // receive event from flash movie, send to client
204
+ var client = this.clients[id];
205
+ if (client) {
206
+ client.receiveEvent(eventName, args);
207
+ }
208
+ },
209
+
210
+ register: function (id, client) {
211
+ // register new client to receive events
212
+ this.clients[id] = client;
213
+ },
214
+
215
+ getDOMObjectPosition: function (obj, stopObj) {
216
+ // get absolute coordinates for dom element
217
+ var info = {
218
+ left: 0,
219
+ top: 0,
220
+ width: obj.width ? obj.width : obj.offsetWidth,
221
+ height: obj.height ? obj.height : obj.offsetHeight
222
+ };
223
+
224
+ if (obj && (obj != stopObj)) {
225
+ info.left += obj.offsetLeft;
226
+ info.top += obj.offsetTop;
227
+ }
228
+
229
+ return info;
230
+ },
231
+
232
+ Client: function (elem) {
233
+ // constructor for new simple upload client
234
+ this.handlers = {};
235
+
236
+ // unique ID
237
+ this.id = ZeroClipboard.nextId++;
238
+ this.movieId = 'ZeroClipboardMovie_' + this.id;
239
+
240
+ // register client with singleton to receive flash events
241
+ ZeroClipboard.register(this.id, this);
242
+
243
+ // create movie
244
+ if (elem) this.glue(elem);
245
+ }
246
+ };
247
+
248
+ ZeroClipboard.Client.prototype = {
249
+
250
+ id: 0,
251
+ // unique ID for us
252
+ ready: false,
253
+ // whether movie is ready to receive events or not
254
+ movie: null,
255
+ // reference to movie object
256
+ clipText: '',
257
+ // text to copy to clipboard
258
+ handCursorEnabled: true,
259
+ // whether to show hand cursor, or default pointer cursor
260
+ cssEffects: true,
261
+ // enable CSS mouse effects on dom container
262
+ handlers: null,
263
+ // user event handlers
264
+ glue: function (elem, appendElem, stylesToAdd) {
265
+ // glue to DOM element
266
+ // elem can be ID or actual DOM element object
267
+ this.domElement = ZeroClipboard.$(elem);
268
+
269
+ // float just above object, or zIndex 99 if dom element isn't set
270
+ var zIndex = 99;
271
+ if (this.domElement.style.zIndex) {
272
+ zIndex = parseInt(this.domElement.style.zIndex, 10) + 1;
273
+ }
274
+
275
+ if (typeof(appendElem) == 'string') {
276
+ appendElem = ZeroClipboard.$(appendElem);
277
+ } else if (typeof(appendElem) == 'undefined') {
278
+ appendElem = document.getElementsByTagName('body')[0];
279
+ }
280
+
281
+ // find X/Y position of domElement
282
+ var box = ZeroClipboard.getDOMObjectPosition(this.domElement, appendElem);
283
+
284
+ // create floating DIV above element
285
+ this.div = document.createElement('div');
286
+ this.div.className = "zclip";
287
+ this.div.id = "zclip-" + this.movieId;
288
+ $(this.domElement).data('zclipId', 'zclip-' + this.movieId);
289
+ var style = this.div.style;
290
+ style.position = 'absolute';
291
+ style.left = '' + box.left + 'px';
292
+ style.top = '' + box.top + 'px';
293
+ style.width = '' + box.width + 'px';
294
+ style.height = '' + box.height + 'px';
295
+ style.zIndex = zIndex;
296
+
297
+ if (typeof(stylesToAdd) == 'object') {
298
+ for (addedStyle in stylesToAdd) {
299
+ style[addedStyle] = stylesToAdd[addedStyle];
300
+ }
301
+ }
302
+
303
+ // style.backgroundColor = '#f00'; // debug
304
+ appendElem.appendChild(this.div);
305
+
306
+ this.div.innerHTML = this.getHTML(box.width, box.height);
307
+ },
308
+
309
+ getHTML: function (width, height) {
310
+ // return HTML for movie
311
+ var html = '';
312
+ var flashvars = 'id=' + this.id + '&width=' + width + '&height=' + height;
313
+
314
+ if (navigator.userAgent.match(/MSIE/)) {
315
+ // IE gets an OBJECT tag
316
+ var protocol = location.href.match(/^https/i) ? 'https://' : 'http://';
317
+ html += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="' + protocol + 'download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="' + width + '" height="' + height + '" id="' + this.movieId + '" align="middle"><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="false" /><param name="movie" value="' + ZeroClipboard.moviePath + '" /><param name="loop" value="false" /><param name="menu" value="false" /><param name="quality" value="best" /><param name="bgcolor" value="#ffffff" /><param name="flashvars" value="' + flashvars + '"/><param name="wmode" value="transparent"/></object>';
318
+ } else {
319
+ // all other browsers get an EMBED tag
320
+ html += '<embed id="' + this.movieId + '" src="' + ZeroClipboard.moviePath + '" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="' + width + '" height="' + height + '" name="' + this.movieId + '" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="' + flashvars + '" wmode="transparent" />';
321
+ }
322
+ return html;
323
+ },
324
+
325
+ hide: function () {
326
+ // temporarily hide floater offscreen
327
+ if (this.div) {
328
+ this.div.style.left = '-2000px';
329
+ }
330
+ },
331
+
332
+ show: function () {
333
+ // show ourselves after a call to hide()
334
+ this.reposition();
335
+ },
336
+
337
+ destroy: function () {
338
+ // destroy control and floater
339
+ if (this.domElement && this.div) {
340
+ this.hide();
341
+ this.div.innerHTML = '';
342
+
343
+ var body = document.getElementsByTagName('body')[0];
344
+ try {
345
+ body.removeChild(this.div);
346
+ } catch (e) {;
347
+ }
348
+
349
+ this.domElement = null;
350
+ this.div = null;
351
+ }
352
+ },
353
+
354
+ reposition: function (elem) {
355
+ // reposition our floating div, optionally to new container
356
+ // warning: container CANNOT change size, only position
357
+ if (elem) {
358
+ this.domElement = ZeroClipboard.$(elem);
359
+ if (!this.domElement) this.hide();
360
+ }
361
+
362
+ if (this.domElement && this.div) {
363
+ var box = ZeroClipboard.getDOMObjectPosition(this.domElement);
364
+ var style = this.div.style;
365
+ style.left = '' + box.left + 'px';
366
+ style.top = '' + box.top + 'px';
367
+ }
368
+ },
369
+
370
+ setText: function (newText) {
371
+ // set text to be copied to clipboard
372
+ this.clipText = newText;
373
+ if (this.ready) {
374
+ this.movie.setText(newText);
375
+ }
376
+ },
377
+
378
+ addEventListener: function (eventName, func) {
379
+ // add user event listener for event
380
+ // event types: load, queueStart, fileStart, fileComplete, queueComplete, progress, error, cancel
381
+ eventName = eventName.toString().toLowerCase().replace(/^on/, '');
382
+ if (!this.handlers[eventName]) {
383
+ this.handlers[eventName] = [];
384
+ }
385
+ this.handlers[eventName].push(func);
386
+ },
387
+
388
+ setHandCursor: function (enabled) {
389
+ // enable hand cursor (true), or default arrow cursor (false)
390
+ this.handCursorEnabled = enabled;
391
+ if (this.ready) {
392
+ this.movie.setHandCursor(enabled);
393
+ }
394
+ },
395
+
396
+ setCSSEffects: function (enabled) {
397
+ // enable or disable CSS effects on DOM container
398
+ this.cssEffects = !! enabled;
399
+ },
400
+
401
+ receiveEvent: function (eventName, args) {
402
+ // receive event from flash
403
+ eventName = eventName.toString().toLowerCase().replace(/^on/, '');
404
+
405
+ // special behavior for certain events
406
+ switch (eventName) {
407
+ case 'load':
408
+ // movie claims it is ready, but in IE this isn't always the case...
409
+ // bug fix: Cannot extend EMBED DOM elements in Firefox, must use traditional function
410
+ this.movie = document.getElementById(this.movieId);
411
+ if (!this.movie) {
412
+ var self = this;
413
+ setTimeout(function () {
414
+ self.receiveEvent('load', null);
415
+ }, 1);
416
+ return;
417
+ }
418
+
419
+ // firefox on pc needs a "kick" in order to set these in certain cases
420
+ if (!this.ready && navigator.userAgent.match(/Firefox/) && navigator.userAgent.match(/Windows/)) {
421
+ var self = this;
422
+ setTimeout(function () {
423
+ self.receiveEvent('load', null);
424
+ }, 100);
425
+ this.ready = true;
426
+ return;
427
+ }
428
+
429
+ this.ready = true;
430
+ try {
431
+ this.movie.setText(this.clipText);
432
+ } catch (e) {}
433
+ try {
434
+ this.movie.setHandCursor(this.handCursorEnabled);
435
+ } catch (e) {}
436
+ break;
437
+
438
+ case 'mouseover':
439
+ if (this.domElement && this.cssEffects) {
440
+ this.domElement.addClass('hover');
441
+ if (this.recoverActive) {
442
+ this.domElement.addClass('active');
443
+ }
444
+
445
+
446
+ }
447
+
448
+
449
+ break;
450
+
451
+ case 'mouseout':
452
+ if (this.domElement && this.cssEffects) {
453
+ this.recoverActive = false;
454
+ if (this.domElement.hasClass('active')) {
455
+ this.domElement.removeClass('active');
456
+ this.recoverActive = true;
457
+ }
458
+ this.domElement.removeClass('hover');
459
+
460
+ }
461
+ break;
462
+
463
+ case 'mousedown':
464
+ if (this.domElement && this.cssEffects) {
465
+ this.domElement.addClass('active');
466
+ }
467
+ break;
468
+
469
+ case 'mouseup':
470
+ if (this.domElement && this.cssEffects) {
471
+ this.domElement.removeClass('active');
472
+ this.recoverActive = false;
473
+ }
474
+ break;
475
+ } // switch eventName
476
+ if (this.handlers[eventName]) {
477
+ for (var idx = 0, len = this.handlers[eventName].length; idx < len; idx++) {
478
+ var func = this.handlers[eventName][idx];
479
+
480
+ if (typeof(func) == 'function') {
481
+ // actual function reference
482
+ func(this, args);
483
+ } else if ((typeof(func) == 'object') && (func.length == 2)) {
484
+ // PHP style object + method, i.e. [myObject, 'myMethod']
485
+ func[0][func[1]](this, args);
486
+ } else if (typeof(func) == 'string') {
487
+ // name of function
488
+ window[func](this, args);
489
+ }
490
+ } // foreach event handler defined
491
+ } // user defined handler for event
492
+ }
493
+
494
+ };
495
+
@@ -0,0 +1,4 @@
1
+ /* SWFObject v2.2 <http://code.google.com/p/swfobject/>
2
+ is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
3
+ */
4
+ var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&&typeof j.getElementsByTagName!=D&&typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,X=!+"\v1",ag=[0,0,0],ab=null;if(typeof t.plugins!=D&&typeof t.plugins[S]==r){ab=t.plugins[S].description;if(ab&&!(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&!t.mimeTypes[q].enabledPlugin)){T=true;X=false;ab=ab.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ag[0]=parseInt(ab.replace(/^(.*)\..*$/,"$1"),10);ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,"$1"),10);ag[2]=/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof O.ActiveXObject!=D){try{var ad=new ActiveXObject(W);if(ad){ab=ad.GetVariable("$version");if(ab){X=true;ab=ab.split(" ")[1].split(",");ag=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac}}(),k=function(){if(!M.w3){return}if((typeof j.readyState!=D&&j.readyState=="complete")||(typeof j.readyState==D&&(j.getElementsByTagName("body")[0]||j.body))){f()}if(!J){if(typeof j.addEventListener!=D){j.addEventListener("DOMContentLoaded",f,false)}if(M.ie&&M.win){j.attachEvent(x,function(){if(j.readyState=="complete"){j.detachEvent(x,arguments.callee);f()}});if(O==top){(function(){if(J){return}try{j.documentElement.doScroll("left")}catch(X){setTimeout(arguments.callee,0);return}f()})()}}if(M.wk){(function(){if(J){return}if(!/loaded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return}f()})()}s(f)}}();function f(){if(J){return}try{var Z=j.getElementsByTagName("body")[0].appendChild(C("span"));Z.parentNode.removeChild(Z)}catch(aa){return}J=true;var X=U.length;for(var Y=0;Y<X;Y++){U[Y]()}}function K(X){if(J){X()}else{U[U.length]=X}}function s(Y){if(typeof O.addEventListener!=D){O.addEventListener("load",Y,false)}else{if(typeof j.addEventListener!=D){j.addEventListener("load",Y,false)}else{if(typeof O.attachEvent!=D){i(O,"onload",Y)}else{if(typeof O.onload=="function"){var X=O.onload;O.onload=function(){X();Y()}}else{O.onload=Y}}}}}function h(){if(T){V()}else{H()}}function V(){var X=j.getElementsByTagName("body")[0];var aa=C(r);aa.setAttribute("type",q);var Z=X.appendChild(aa);if(Z){var Y=0;(function(){if(typeof Z.GetVariable!=D){var ab=Z.GetVariable("$version");if(ab){ab=ab.split(" ")[1].split(",");M.pv=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}else{if(Y<10){Y++;setTimeout(arguments.callee,10);return}}X.removeChild(aa);Z=null;H()})()}else{H()}}function H(){var ag=o.length;if(ag>0){for(var af=0;af<ag;af++){var Y=o[af].id;var ab=o[af].callbackFn;var aa={success:false,id:Y};if(M.pv[0]>0){var ae=c(Y);if(ae){if(F(o[af].swfVersion)&&!(M.wk&&M.wk<312)){w(Y,true);if(ab){aa.success=true;aa.ref=z(Y);ab(aa)}}else{if(o[af].expressInstall&&A()){var ai={};ai.data=o[af].expressInstall;ai.width=ae.getAttribute("width")||"0";ai.height=ae.getAttribute("height")||"0";if(ae.getAttribute("class")){ai.styleclass=ae.getAttribute("class")}if(ae.getAttribute("align")){ai.align=ae.getAttribute("align")}var ah={};var X=ae.getElementsByTagName("param");var ac=X.length;for(var ad=0;ad<ac;ad++){if(X[ad].getAttribute("name").toLowerCase()!="movie"){ah[X[ad].getAttribute("name")]=X[ad].getAttribute("value")}}P(ai,ah,Y,ab)}else{p(ae);if(ab){ab(aa)}}}}}else{w(Y,true);if(ab){var Z=z(Y);if(Z&&typeof Z.SetVariable!=D){aa.success=true;aa.ref=Z}ab(aa)}}}}}function z(aa){var X=null;var Y=c(aa);if(Y&&Y.nodeName=="OBJECT"){if(typeof Y.SetVariable!=D){X=Y}else{var Z=Y.getElementsByTagName(r)[0];if(Z){X=Z}}}return X}function A(){return !a&&F("6.0.65")&&(M.win||M.mac)&&!(M.wk&&M.wk<312)}function P(aa,ab,X,Z){a=true;E=Z||null;B={success:false,id:X};var ae=c(X);if(ae){if(ae.nodeName=="OBJECT"){l=g(ae);Q=null}else{l=ae;Q=X}aa.id=R;if(typeof aa.width==D||(!/%$/.test(aa.width)&&parseInt(aa.width,10)<310)){aa.width="310"}if(typeof aa.height==D||(!/%$/.test(aa.height)&&parseInt(aa.height,10)<137)){aa.height="137"}j.title=j.title.slice(0,47)+" - Flash Player Installation";var ad=M.ie&&M.win?"ActiveX":"PlugIn",ac="MMredirectURL="+O.location.toString().replace(/&/g,"%26")+"&MMplayerType="+ad+"&MMdoctitle="+j.title;if(typeof ab.flashvars!=D){ab.flashvars+="&"+ac}else{ab.flashvars=ac}if(M.ie&&M.win&&ae.readyState!=4){var Y=C("div");X+="SWFObjectNew";Y.setAttribute("id",X);ae.parentNode.insertBefore(Y,ae);ae.style.display="none";(function(){if(ae.readyState==4){ae.parentNode.removeChild(ae)}else{setTimeout(arguments.callee,10)}})()}u(aa,ab,X)}}function p(Y){if(M.ie&&M.win&&Y.readyState!=4){var X=C("div");Y.parentNode.insertBefore(X,Y);X.parentNode.replaceChild(g(Y),X);Y.style.display="none";(function(){if(Y.readyState==4){Y.parentNode.removeChild(Y)}else{setTimeout(arguments.callee,10)}})()}else{Y.parentNode.replaceChild(g(Y),Y)}}function g(ab){var aa=C("div");if(M.win&&M.ie){aa.innerHTML=ab.innerHTML}else{var Y=ab.getElementsByTagName(r)[0];if(Y){var ad=Y.childNodes;if(ad){var X=ad.length;for(var Z=0;Z<X;Z++){if(!(ad[Z].nodeType==1&&ad[Z].nodeName=="PARAM")&&!(ad[Z].nodeType==8)){aa.appendChild(ad[Z].cloneNode(true))}}}}}return aa}function u(ai,ag,Y){var X,aa=c(Y);if(M.wk&&M.wk<312){return X}if(aa){if(typeof ai.id==D){ai.id=Y}if(M.ie&&M.win){var ah="";for(var ae in ai){if(ai[ae]!=Object.prototype[ae]){if(ae.toLowerCase()=="data"){ag.movie=ai[ae]}else{if(ae.toLowerCase()=="styleclass"){ah+=' class="'+ai[ae]+'"'}else{if(ae.toLowerCase()!="classid"){ah+=" "+ae+'="'+ai[ae]+'"'}}}}}var af="";for(var ad in ag){if(ag[ad]!=Object.prototype[ad]){af+='<param name="'+ad+'" value="'+ag[ad]+'" />'}}aa.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+ah+">"+af+"</object>";N[N.length]=ai.id;X=c(ai.id)}else{var Z=C(r);Z.setAttribute("type",q);for(var ac in ai){if(ai[ac]!=Object.prototype[ac]){if(ac.toLowerCase()=="styleclass"){Z.setAttribute("class",ai[ac])}else{if(ac.toLowerCase()!="classid"){Z.setAttribute(ac,ai[ac])}}}}for(var ab in ag){if(ag[ab]!=Object.prototype[ab]&&ab.toLowerCase()!="movie"){e(Z,ab,ag[ab])}}aa.parentNode.replaceChild(Z,aa);X=Z}}return X}function e(Z,X,Y){var aa=C("param");aa.setAttribute("name",X);aa.setAttribute("value",Y);Z.appendChild(aa)}function y(Y){var X=c(Y);if(X&&X.nodeName=="OBJECT"){if(M.ie&&M.win){X.style.display="none";(function(){if(X.readyState==4){b(Y)}else{setTimeout(arguments.callee,10)}})()}else{X.parentNode.removeChild(X)}}}function b(Z){var Y=c(Z);if(Y){for(var X in Y){if(typeof Y[X]=="function"){Y[X]=null}}Y.parentNode.removeChild(Y)}}function c(Z){var X=null;try{X=j.getElementById(Z)}catch(Y){}return X}function C(X){return j.createElement(X)}function i(Z,X,Y){Z.attachEvent(X,Y);I[I.length]=[Z,X,Y]}function F(Z){var Y=M.pv,X=Z.split(".");X[0]=parseInt(X[0],10);X[1]=parseInt(X[1],10)||0;X[2]=parseInt(X[2],10)||0;return(Y[0]>X[0]||(Y[0]==X[0]&&Y[1]>X[1])||(Y[0]==X[0]&&Y[1]==X[1]&&Y[2]>=X[2]))?true:false}function v(ac,Y,ad,ab){if(M.ie&&M.mac){return}var aa=j.getElementsByTagName("head")[0];if(!aa){return}var X=(ad&&typeof ad=="string")?ad:"screen";if(ab){n=null;G=null}if(!n||G!=X){var Z=C("style");Z.setAttribute("type","text/css");Z.setAttribute("media",X);n=aa.appendChild(Z);if(M.ie&&M.win&&typeof j.styleSheets!=D&&j.styleSheets.length>0){n=j.styleSheets[j.styleSheets.length-1]}G=X}if(M.ie&&M.win){if(n&&typeof n.addRule==r){n.addRule(ac,Y)}}else{if(n&&typeof j.createTextNode!=D){n.appendChild(j.createTextNode(ac+" {"+Y+"}"))}}}function w(Z,X){if(!m){return}var Y=X?"visible":"hidden";if(J&&c(Z)){c(Z).style.visibility=Y}else{v("#"+Z,"visibility:"+Y)}}function L(Y){var Z=/[\\\"<>\.;]/;var X=Z.exec(Y)!=null;return X&&typeof encodeURIComponent!=D?encodeURIComponent(Y):Y}var d=function(){if(M.ie&&M.win){window.attachEvent("onunload",function(){var ac=I.length;for(var ab=0;ab<ac;ab++){I[ab][0].detachEvent(I[ab][1],I[ab][2])}var Z=N.length;for(var aa=0;aa<Z;aa++){y(N[aa])}for(var Y in M){M[Y]=null}M=null;for(var X in swfobject){swfobject[X]=null}swfobject=null})}}();return{registerObject:function(ab,X,aa,Z){if(M.w3&&ab&&X){var Y={};Y.id=ab;Y.swfVersion=X;Y.expressInstall=aa;Y.callbackFn=Z;o[o.length]=Y;w(ab,false)}else{if(Z){Z({success:false,id:ab})}}},getObjectById:function(X){if(M.w3){return z(X)}},embedSWF:function(ab,ah,ae,ag,Y,aa,Z,ad,af,ac){var X={success:false,id:ah};if(M.w3&&!(M.wk&&M.wk<312)&&ab&&ah&&ae&&ag&&Y){w(ah,false);K(function(){ae+="";ag+="";var aj={};if(af&&typeof af===r){for(var al in af){aj[al]=af[al]}}aj.data=ab;aj.width=ae;aj.height=ag;var am={};if(ad&&typeof ad===r){for(var ak in ad){am[ak]=ad[ak]}}if(Z&&typeof Z===r){for(var ai in Z){if(typeof am.flashvars!=D){am.flashvars+="&"+ai+"="+Z[ai]}else{am.flashvars=ai+"="+Z[ai]}}}if(F(Y)){var an=u(aj,am,ah);if(aj.id==ah){w(ah,true)}X.success=true;X.ref=an}else{if(aa&&A()){aj.data=aa;P(aj,am,ah,ac);return}else{w(ah,true)}}if(ac){ac(X)}})}else{if(ac){ac(X)}}},switchOffAutoHideShow:function(){m=false},ua:M,getFlashPlayerVersion:function(){return{major:M.pv[0],minor:M.pv[1],release:M.pv[2]}},hasFlashPlayerVersion:F,createSWF:function(Z,Y,X){if(M.w3){return u(Z,Y,X)}else{return undefined}},showExpressInstall:function(Z,aa,X,Y){if(M.w3&&A()){P(Z,aa,X,Y)}},removeSWF:function(X){if(M.w3){y(X)}},createCSS:function(aa,Z,Y,X){if(M.w3){v(aa,Z,Y,X)}},addDomLoadEvent:K,addLoadEvent:s,getQueryParamValue:function(aa){var Z=j.location.search||j.location.hash;if(Z){if(/\?/.test(Z)){Z=Z.split("?")[1]}if(aa==null){return L(Z)}var Y=Z.split("&");for(var X=0;X<Y.length;X++){if(Y[X].substring(0,Y[X].indexOf("="))==aa){return L(Y[X].substring((Y[X].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(a){var X=c(R);if(X&&l){X.parentNode.replaceChild(l,X);if(Q){w(Q,true);if(M.ie&&M.win){l.style.display="block"}}if(E){E(B)}}a=false}}}}();
@@ -0,0 +1,52 @@
1
+ /*
2
+ Uploadify v2.1.4
3
+ Release Date: November 8, 2010
4
+
5
+ Copyright (c) 2010 Ronnie Garcia, Travis Nickels
6
+
7
+ Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ of this software and associated documentation files (the "Software"), to deal
9
+ in the Software without restriction, including without limitation the rights
10
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ copies of the Software, and to permit persons to whom the Software is
12
+ furnished to do so, subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be included in
15
+ all copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23
+ THE SOFTWARE.
24
+ */
25
+ .uploadifyQueueItem {
26
+ background-color: #F5F5F5;
27
+ border: 2px solid #E5E5E5;
28
+ font: 11px Verdana, Geneva, sans-serif;
29
+ margin-top: 5px;
30
+ padding: 10px;
31
+ width: 350px;
32
+ }
33
+ .uploadifyError {
34
+ background-color: #FDE5DD !important;
35
+ border: 2px solid #FBCBBC !important;
36
+ }
37
+ .uploadifyQueueItem .cancel {
38
+ float: right;
39
+ }
40
+ .uploadifyQueue .completed {
41
+ background-color: #E5E5E5;
42
+ }
43
+ .uploadifyProgress {
44
+ background-color: #E5E5E5;
45
+ margin-top: 10px;
46
+ width: 100%;
47
+ }
48
+ .uploadifyProgressBar {
49
+ background-color: #0099FF;
50
+ height: 3px;
51
+ width: 1px;
52
+ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: etabliocms_pages
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-03-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &13196120 !ruby/object:Gem::Requirement
16
+ requirement: &17828500 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.2.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *13196120
24
+ version_requirements: *17828500
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: etabliocms_core
27
- requirement: &13195700 !ruby/object:Gem::Requirement
27
+ requirement: &17827720 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *13195700
35
+ version_requirements: *17827720
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: awesome_nested_set
38
- requirement: &13195100 !ruby/object:Gem::Requirement
38
+ requirement: &17826480 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - =
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 2.1.2
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *13195100
46
+ version_requirements: *17826480
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: paperclip
49
- requirement: &13194640 !ruby/object:Gem::Requirement
49
+ requirement: &17825460 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *13194640
57
+ version_requirements: *17825460
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: sqlite3
60
- requirement: &13194060 !ruby/object:Gem::Requirement
60
+ requirement: &17875640 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *13194060
68
+ version_requirements: *17875640
69
69
  description: Small CMS - module for pages
70
70
  email:
71
71
  - patrikjira@gmail.com
@@ -101,6 +101,13 @@ files:
101
101
  - lib/etabliocms_pages/version.rb
102
102
  - lib/etabliocms_pages/engine.rb
103
103
  - lib/etabliocms_pages.rb
104
+ - public/uploadify/uploadify.swf
105
+ - public/uploadify/ZeroClipboard.swf
106
+ - public/uploadify/cancel.png
107
+ - vendor/assets/javascripts/jquery.uploadify.v2.1.4.js
108
+ - vendor/assets/javascripts/jquery.zclip.js
109
+ - vendor/assets/javascripts/swfobject.js
110
+ - vendor/assets/stylesheets/uploadify.css
104
111
  - MIT-LICENSE
105
112
  - Rakefile
106
113
  - README.rdoc