mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #3278 from dannon/upload_escape_filename
[16.10] Escape filename in upload dialog, default and composite.
This commit is contained in:
@@ -115,7 +115,7 @@ function( Utils, UploadSettings, UploadFtp, Popover, Ui, Select ) {
|
||||
|
||||
render: function() {
|
||||
this.$el.attr( 'id', 'upload-row-' + this.model.id );
|
||||
this.$file_name.html( this.model.get( 'file_name' ) || '-' );
|
||||
this.$file_name.html( _.escape( this.model.get( 'file_name' ) || '-' ) );
|
||||
this.$file_desc.html( this.model.get( 'file_desc' ) || 'Unavailable' );
|
||||
this.$file_size.html( Utils.bytesToString ( this.model.get( 'file_size' ) ) );
|
||||
this.$status.removeClass().addClass( this.status_classes.init );
|
||||
|
||||
@@ -95,7 +95,7 @@ function( Utils, UploadModel, UploadSettings, Popover, Select ) {
|
||||
|
||||
render: function() {
|
||||
var options = this.model.attributes;
|
||||
this.$title.html( options.file_name );
|
||||
this.$title.html( _.escape( options.file_name ) );
|
||||
this.$size.html( Utils.bytesToString ( options.file_size ) );
|
||||
this.$mode.removeClass().addClass( 'upload-mode' ).addClass( 'text-primary' );
|
||||
if ( options.file_mode == 'new' ) {
|
||||
@@ -120,7 +120,7 @@ function( Utils, UploadModel, UploadSettings, Popover, Select ) {
|
||||
_refreshExtension: function() {
|
||||
this.select_extension.value( this.model.get( 'extension' ) );
|
||||
},
|
||||
|
||||
|
||||
/** Update genome */
|
||||
_refreshGenome: function() {
|
||||
this.select_genome.value( this.model.get( 'genome' ) );
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user