Changeset 30766 for trunk/admin


Ignore:
Timestamp:
Dec 16, 2014, 1:12:54 PM (10 years ago)
Author:
mistic100
Message:

Feature 3185 : Add upload progress indicator with Piecon

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/default/template/photos_add_direct.tpl

    r30630 r30766  
    11{combine_script id='common' load='footer' path='admin/themes/default/js/common.js'}
     2
    23{combine_script id='jquery.jgrowl' load='footer' require='jquery' path='themes/default/js/plugins/jquery.jgrowl_minimized.js'}
     4
    35{combine_script id='jquery.plupload' load='footer' require='jquery' path='themes/default/js/plugins/plupload/plupload.full.min.js'}
    46{combine_script id='jquery.plupload.queue' load='footer' require='jquery' path='themes/default/js/plugins/plupload/jquery.plupload.queue/jquery.plupload.queue.min.js'}
    5 {combine_script id='jquery.ui.progressbar' load='footer'}
    67
    78{combine_css path="themes/default/js/plugins/jquery.jgrowl.css"}
     
    2021{combine_script id='jquery.selectize' load='footer' path='themes/default/js/plugins/selectize.min.js'}
    2122{combine_css id='jquery.selectize' path="themes/default/js/plugins/selectize.{$themeconf.colorscheme}.css"}
     23
     24{combine_script id='piecon' load='footer' path='themes/default/js/plugins/piecon.min.js'}
    2225
    2326{footer_script}
     
    4346    jQuery("#albumSelection, .selectFiles, .showFieldset").show();
    4447  }
     48});
     49
     50Piecon.setOptions({
     51  color: '#ff7700',
     52  background: '#bbb',
     53  shadow: '#fff',
     54  fallback: 'force'
    4555});
    4656
     
    119129      UploadProgress: function(up, file) {
    120130        jQuery('#uploadingActions .progressbar').width(up.total.percent+'%');
     131        Piecon.setProgress(up.total.percent);
    121132      },
    122133     
     
    174185        // Called when all files are either uploaded or failed
    175186        //console.log('[UploadComplete]');
     187       
     188        Piecon.reset();
    176189
    177190        jQuery(".selectAlbum, .selectFiles, #permissions, .showFieldset").hide();
Note: See TracChangeset for help on using the changeset viewer.