changed git call from https to git readonly
[atutor.git] / mods / photos / include / upload.js
1 /*
2 Copyright 2008-2009 University of Cambridge
3 Copyright 2008-2009 University of Toronto
4 Copyright 2008-2009 University of California, Berkeley
5
6 Licensed under the Educational Community License (ECL), Version 2.0 or the New
7 BSD license. You may not use this file except in compliance with one these
8 Licenses.
9
10 You may obtain a copy of the ECL 2.0 License and BSD License at
11 https://source.fluidproject.org/svn/LICENSE.txt
12 */
13
14 /*global jQuery*/
15 /*global fluid*/
16 /*global demo*/
17
18 var demo = demo || {};
19
20 (function ($, fluid) {
21     demo.initUploader = function () {
22         fluid.progressiveEnhanceableUploader(".flc-uploader", ".fl-progEnhance-basic", {
23             demo: true,                
24             uploadManager: {
25                 type: "fluid.swfUploadManager",        
26                 options: {
27                    // Set the uploadURL to the URL for posting files to your server.
28                    uploadURL: "http://localhost/atutor155/atutor_163/mods/photo_album/albums.php",
29     
30                    // This option points to the location of the SWFUpload Flash object that ships with Fluid Infusion.
31                    flashURL: "../../jscript/infusion/lib/swfupload/flash/swfupload.swf"
32                 }
33             },
34             decorators: [{
35                 type: "fluid.swfUploadSetupDecorator",
36                 options: {
37                     // This option points to the location of the Browse Files button used with Flash 10 clients.
38                     flashButtonImageURL: "../../jscript/infusion/components/uploader/images/browse.png"
39                 }
40             }]
41         });    
42     }
43 })(jQuery, fluid);
44
45
46