diff options
author | zotlabs <mike@macgirvin.com> | 2018-10-23 00:12:36 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2018-10-23 13:23:18 +0200 |
commit | 506ea713025ecec89dafea47125678201ea85cf6 (patch) | |
tree | df82c7e1104a2155b4afa92ddafa3b8d47c46612 /library/jqupload/js/main.js | |
parent | c7ebb4b009857159d77b71675336ab97016b99e8 (diff) | |
download | volse-hubzilla-506ea713025ecec89dafea47125678201ea85cf6.tar.gz volse-hubzilla-506ea713025ecec89dafea47125678201ea85cf6.tar.bz2 volse-hubzilla-506ea713025ecec89dafea47125678201ea85cf6.zip |
for whatever reason there were two of these
(cherry picked from commit 7ed197f46b189601ac043f4bfeab41204a43488b)
Diffstat (limited to 'library/jqupload/js/main.js')
-rw-r--r-- | library/jqupload/js/main.js | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/library/jqupload/js/main.js b/library/jqupload/js/main.js deleted file mode 100644 index 8f57967a3..000000000 --- a/library/jqupload/js/main.js +++ /dev/null @@ -1,75 +0,0 @@ -/* - * jQuery File Upload Plugin JS Example 8.9.1 - * https://github.com/blueimp/jQuery-File-Upload - * - * Copyright 2010, Sebastian Tschan - * https://blueimp.net - * - * Licensed under the MIT license: - * http://www.opensource.org/licenses/MIT - */ - -/* global $, window */ - -$(function () { - 'use strict'; - - // Initialize the jQuery File Upload widget: - $('#fileupload').fileupload({ - // Uncomment the following to send cross-domain cookies: - //xhrFields: {withCredentials: true}, - url: 'server/php/' - }); - - // Enable iframe cross-domain access via redirect option: - $('#fileupload').fileupload( - 'option', - 'redirect', - window.location.href.replace( - /\/[^\/]*$/, - '/cors/result.html?%s' - ) - ); - - if (window.location.hostname === 'blueimp.github.io') { - // Demo settings: - $('#fileupload').fileupload('option', { - url: '//jquery-file-upload.appspot.com/', - // Enable image resizing, except for Android and Opera, - // which actually support image resizing, but fail to - // send Blob objects via XHR requests: - disableImageResize: /Android(?!.*Chrome)|Opera/ - .test(window.navigator.userAgent), - maxFileSize: 5000000, - acceptFileTypes: /(\.|\/)(gif|jpe?g|png)$/i - }); - // Upload server status check for browsers with CORS support: - if ($.support.cors) { - $.ajax({ - url: '//jquery-file-upload.appspot.com/', - type: 'HEAD' - }).fail(function () { - $('<div class="alert alert-danger"/>') - .text('Upload server currently unavailable - ' + - new Date()) - .appendTo('#fileupload'); - }); - } - } else { - // Load existing files: - $('#fileupload').addClass('fileupload-processing'); - $.ajax({ - // Uncomment the following to send cross-domain cookies: - //xhrFields: {withCredentials: true}, - url: $('#fileupload').fileupload('option', 'url'), - dataType: 'json', - context: $('#fileupload')[0] - }).always(function () { - $(this).removeClass('fileupload-processing'); - }).done(function (result) { - $(this).fileupload('option', 'done') - .call(this, $.Event('done'), {result: result}); - }); - } - -}); |