Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery('document').ready(function() {
- var datatosend = {};
- jQuery('#photo_picture').uploadify({
- 'uploader' : '{{=URL(r=request,c="static",f="uploadify/uploadify.swf")}}',
- 'script' : '{{=URL(r=request,c="admin",f="add_photo")}}',
- 'scriptData' : datatosend,
- 'cancelImg' : '{{=URL(r=request,c="static",f="uploadify/cancel.png")}}',
- 'folder' : '/uploads/photos',
- 'expressInstall' : '{{=URL(r=request,c="static",f="uploadify/expressInstall.swf")}}',
- 'auto' : false,
- 'wmode' : 'transparent',
- 'height' : 36,
- 'queueID' : 'queue',
- 'multi': true,
- 'buttonText':'Select Photos',
- 'onAllComplete' : function(event,data) {
- jQuery('html, body').animate({
- scrollTop: 0
- }, 'fast');
- },
- 'onSelect' : function(event,ID,fileObj) {
- jQuery('#queue').show();
- },
- 'onCancel' : function(event,ID,fileObj,data) {
- if (data.fileCount <=0){
- jQuery('#queue').hide();
- }
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment