valums/file-uploader — pull request #517 by redexp (2012-12-07 14:52:31+00:00)
Title: Added createFineUploader plugin

The difference between $.fn.fineUploader and $.fn.createFineUploader that mine just prepare options for native qq.FineUploader constructor and return native qq.FineUploader object. I make this plugin because template options should be in html file, not in js.

For example
```html

Select file

{cancelButtonText}
{retryButtonText}
{statusText}

```
and as usually
```javascript
var uploader = $('#fine-uploader').createFineUploader({
request: {
endpoint: '/uploadFile'
}
});
```
After that you will get uploader with
```javascript
element: $('#fine-uploader').get(0),
fileTemplate: '
.....
',
template: '.....'
```

As for me it's much better keep all template markup in html then write manually
```javascript
fileTemplate:
'
'+
''+
'....' +
'
',
```

Maybe will be better if just add my code to $.fn.fineUploader ?