$(document).ready(function() { var msie = (navigator.appVersion.indexOf("MSIE") != -1); var version = (msie) ? parseFloat(navigator.appVersion.split("MSIE")[1]) : 0; if (Modernizr.draganddrop && (!msie || (msie && version > 9))) { // Browser supports HTML5 drag & drop // initialize uploadr and use native HTML5 implementation var ${name} = $('.${classname}[name=${name}]').uploadr({ onStart: function(file) { ${handlers.onStart} }, onProgress: function(file, domObj, percentage) { ${handlers.onProgress} }, onSuccess: function(file, domObj, callback) { ${handlers.onSuccess} }, onLike: function(file, domObj, callback) { ${handlers.onLike} }, onUnlike: function(file, domObj, callback) { ${handlers.onUnlike} }, onChangeColor: function(file, domObj, color) { ${handlers.onChangeColor} }, onFailure: function(file, domObj) { ${handlers.onFailure} }, onAbort: function(file, domObj) { ${handlers.onAbort} }, onView: function(file, domObj) { ${handlers.onView} // open a modal dialog to view the file contents var width = 640; var height= 400; $( '