User:Evad37/Covery/sandbox.js: Difference between revisions

Content deleted Content added
loading by url doesn't seem to work anymore. Show drag'n'drop area instead.
enough changed for minor version bump
 
(4 intermediate revisions by the same user not shown)
Line 5:
var SCRIPT = {
name: 'Covery',
version: '1.45.20',
ad: ' (using [[User:Evad37/Covery|Covery]])'
};
Line 440:
this.fileSelect = new OO.ui.SelectFileWidget({
droppable: true,
showDropTarget: true,
// thumbnailSizeLimit: 0,
$element: $("<div style='background: #eee;'>")
});
// this.fileSelect.$element
// .find(".oo-ui-selectFileWidget-dropTarget").css({"height":"auto"});
// this.fileSelect.$element
// .find(".oo-ui-selectFileWidget-thumbnail").css({"display":"none"});
// this.fileSelect.$element
// .find(".oo-ui-selectFileInputWidget-info").css({"margin":"0"});
this.urlInput = new OO.ui.TextInputWidget({
type: 'url',
Line 460 ⟶ 469:
this.fileSelectField = new OO.ui.FieldLayout(this.fileSelect, {
label: 'Upload a file...',
align: 'lefttop'
});
this.fileSelect.field = this.fileSelectField;
Line 474 ⟶ 483:
this.titleInputField = new OO.ui.FieldLayout(this.titleInput, {
label: 'File name',
align: 'lefttop'
});
this.titleInputField.$element
.find(".oo-ui-fieldLayout-messages").css({"margin-top":"2em"}); // prevent errors overlapping input
this.captionInputField = new OO.ui.FieldLayout(this.captionInput, {
label: 'Caption',
Line 501 ⟶ 512:
// this.urlInputField,
this.titleInputField,
//this.imagePreviewField,
this.captionInputField,
this.altTextInputField,