mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Indentation
This commit is contained in:
parent
6f55b67f0e
commit
02505247d5
@ -19,7 +19,7 @@
|
|||||||
// use _onAdd instead of add since we only want it called once for a file set, not for each file
|
// use _onAdd instead of add since we only want it called once for a file set, not for each file
|
||||||
var result = $.blueimpUI.fileupload.prototype._onAdd.call(this, e, data);
|
var result = $.blueimpUI.fileupload.prototype._onAdd.call(this, e, data);
|
||||||
var firstNewFile = this._files.find('.ss-uploadfield-item').slice(data.files.length*-1).first();
|
var firstNewFile = this._files.find('.ss-uploadfield-item').slice(data.files.length*-1).first();
|
||||||
var top = '+=' + (firstNewFile.position().top - parseInt(firstNewFile.css('marginTop')) || 0 - parseInt(firstNewFile.css('borderTopWidth')) || 0);
|
var top = '+=' + (firstNewFile.position().top - parseInt(firstNewFile.css('marginTop'), 10) || 0 - parseInt(firstNewFile.css('borderTopWidth'), 10) || 0);
|
||||||
firstNewFile.offsetParent().animate({scrollTop: top}, 1000);
|
firstNewFile.offsetParent().animate({scrollTop: top}, 1000);
|
||||||
|
|
||||||
/* Compute total size of files */
|
/* Compute total size of files */
|
||||||
@ -48,14 +48,13 @@
|
|||||||
return result;
|
return result;
|
||||||
},
|
},
|
||||||
_onAlways: function (jqXHRorResult, textStatus, jqXHRorError, options) {
|
_onAlways: function (jqXHRorResult, textStatus, jqXHRorError, options) {
|
||||||
$.blueimpUI.fileupload.prototype._onAlways.call(this, jqXHRorResult, textStatus, jqXHRorError, options);
|
$.blueimpUI.fileupload.prototype._onAlways.call(this, jqXHRorResult, textStatus, jqXHRorError, options);
|
||||||
if (this._active === 0) {
|
if (this._active === 0) {
|
||||||
this._trigger('stop');
|
this._trigger('stop');
|
||||||
$('.fileOverview .uploadStatus .state').text(ss.i18n._t('AssetUploadField.FILEUPLOADCOMPLETED', 'File Upload Completed!'));//.hide();
|
$('.fileOverview .uploadStatus .state').text(ss.i18n._t('AssetUploadField.FILEUPLOADCOMPLETED', 'File Upload Completed!'));//.hide();
|
||||||
$('.fileOverview button').show();
|
$('.fileOverview button').show();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
@ -364,15 +363,15 @@
|
|||||||
itemInfo.find('.toggle-details-icon').removeClass('opened');
|
itemInfo.find('.toggle-details-icon').removeClass('opened');
|
||||||
$('div.ss-upload .fileOverview .ss-uploadfield-item-edit-all').removeClass('opened').find('.toggle-details-icon').removeClass('opened');
|
$('div.ss-upload .fileOverview .ss-uploadfield-item-edit-all').removeClass('opened').find('.toggle-details-icon').removeClass('opened');
|
||||||
if(!this.hasClass('edited')){
|
if(!this.hasClass('edited')){
|
||||||
text = ss.i18n._t('UploadField.NOCHANGES', 'No Changes')
|
text = ss.i18n._t('UploadField.NOCHANGES', 'No Changes');
|
||||||
status.addClass('ui-state-success-text');
|
status.addClass('ui-state-success-text');
|
||||||
}else{
|
}else{
|
||||||
if(saved.hasClass('good')){
|
if(saved.hasClass('good')){
|
||||||
text = ss.i18n._t('UploadField.CHANGESSAVED', 'Changes Saved')
|
text = ss.i18n._t('UploadField.CHANGESSAVED', 'Changes Saved');
|
||||||
this.removeClass('edited').parent('.ss-uploadfield-item').removeClass('ui-state-warning');
|
this.removeClass('edited').parent('.ss-uploadfield-item').removeClass('ui-state-warning');
|
||||||
status.addClass('ui-state-success-text');
|
status.addClass('ui-state-success-text');
|
||||||
}else{
|
}else{
|
||||||
text = ss.i18n._t('UploadField.UNSAVEDCHANGES', 'Unsaved Changes')
|
text = ss.i18n._t('UploadField.UNSAVEDCHANGES', 'Unsaved Changes');
|
||||||
this.parent('.ss-uploadfield-item').addClass('ui-state-warning');
|
this.parent('.ss-uploadfield-item').addClass('ui-state-warning');
|
||||||
status.addClass('ui-state-warning-text');
|
status.addClass('ui-state-warning-text');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user