Sha256: 6a485f68af2210d1d8959b1ef7ab0a195cd5760d7aa7abc25e472513da0f99a6

Contents?: true

Size: 924 Bytes

Versions: 116

Compression:

Stored size: 924 Bytes

Contents

(function($){$.fn.filestyle=function(options){var settings={width:250};if(options){$.extend(settings,options);};return this.each(function(){var self=this;var wrapper=$("<div class='btn-upload'>").css({"width":settings.imagewidth+"px","height":settings.imageheight+"px","margin":"0","overflow":"hidden"});var filename=$('<input class="file">').addClass($(self).attr("class")).css({"width":settings.width+"px"});$(self).before(filename);$(self).wrap(wrapper);$(self).css({"height":settings.imageheight+"px","width":settings.width+"px","display":"inline","cursor":"pointer","opacity":"0.0"});if($.browser.mozilla){if(/Win/.test(navigator.platform)){$(self).css("margin-left","-142px");}else{$(self).css("margin-left","-168px");};}else{$(self).css("margin-left",settings.imagewidth-settings.width+"px");};$(self).bind("change",function(){var s = $(self).val().replace(/(c:\\)*fakepath/i, '');filename.val(s);});});};})(jQuery);

Version data entries

116 entries across 66 versions & 1 rubygems

Version Path
cobweb-1.2.1 public/js/jquery.filestyle.mini.js
cobweb-1.2.1 spec/samples/sample_site/js/jquery.filestyle.mini.js
cobweb-1.2.0 spec/samples/sample_site/js/jquery.filestyle.mini.js
cobweb-1.2.0 public/js/jquery.filestyle.mini.js
cobweb-1.1.0 spec/samples/sample_site/js/jquery.filestyle.mini.js
cobweb-1.1.0 public/js/jquery.filestyle.mini.js
cobweb-1.0.29 spec/samples/sample_site/js/jquery.filestyle.mini.js
cobweb-1.0.29 public/js/jquery.filestyle.mini.js
cobweb-1.0.28 public/js/jquery.filestyle.mini.js
cobweb-1.0.28 spec/samples/sample_site/js/jquery.filestyle.mini.js
cobweb-1.0.27 public/js/jquery.filestyle.mini.js
cobweb-1.0.27 spec/samples/sample_site/js/jquery.filestyle.mini.js
cobweb-1.0.26 public/js/jquery.filestyle.mini.js
cobweb-1.0.26 spec/samples/sample_site/js/jquery.filestyle.mini.js
cobweb-1.0.25 spec/samples/sample_site/js/jquery.filestyle.mini.js
cobweb-1.0.25 public/js/jquery.filestyle.mini.js
cobweb-1.0.24 public/js/jquery.filestyle.mini.js
cobweb-1.0.24 spec/samples/sample_site/js/jquery.filestyle.mini.js
cobweb-1.0.23 public/js/jquery.filestyle.mini.js
cobweb-1.0.23 spec/samples/sample_site/js/jquery.filestyle.mini.js