Sha256: 3cf8f9cc1e0214658f36303fc5f9dffe1c941479a2955499f203ffbfabdadf11
Contents?: true
Size: 624 Bytes
Versions: 1
Compression:
Stored size: 624 Bytes
Contents
$('#detail_contents_add').html('<%= j(render 'form') %>'); attachToInput({ input: 'content_body', fileInput: 'file_input', uploadUrl: 'http://upload.qiniu.com/', extraParams: { token: '<%= QiniuHelper.generate_uptoken %>' }, jsonFieldName: 'key', onFileUploaded: function(filename) { var domain = '<%= QINIU['host'] %>'; var sourceLink = domain + '/' + filename; var img_content = new Image() img_content.src = sourceLink img_content.classList = 'ui image' $('#pickfiles').append(img_content); $('#content_key').val(filename); $('#content_type').val('Picture'); } });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_detail-0.0.1 | app/views/rails_detail_my/notes/new.js.erb |