mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Removed opentip
Cleanup lightgallery
This commit is contained in:
parent
a8ef5ec75b
commit
f5a444aa14
31 changed files with 2196 additions and 5957 deletions
18
vendors/inputosaurus/inputosaurus.js
vendored
18
vendors/inputosaurus/inputosaurus.js
vendored
|
|
@ -20,13 +20,10 @@
|
|||
|
||||
($ => {
|
||||
|
||||
var inputosaurustext = {
|
||||
const fakeSpan = $('<span class="inputosaurus-fake-span"></span>');
|
||||
|
||||
version: "0.1.6",
|
||||
|
||||
fakeSpan: $('<span class="inputosaurus-fake-span"></span>'),
|
||||
|
||||
eventprefix: "inputosaurus",
|
||||
$('body').append(fakeSpan);
|
||||
$.widget("ui.inputosaurus", {
|
||||
|
||||
options: {
|
||||
|
||||
|
|
@ -259,10 +256,10 @@
|
|||
// the input dynamically resizes based on the length of its value
|
||||
_resizeInput : function(ev) {
|
||||
var widget = (ev && ev.data.widget) || this;
|
||||
inputosaurustext.fakeSpan.text(widget.elements.input.val());
|
||||
fakeSpan.text(widget.elements.input.val());
|
||||
|
||||
// setTimeout(function () {
|
||||
var txtWidth = 25 + inputosaurustext.fakeSpan.width();
|
||||
var txtWidth = 25 + fakeSpan.width();
|
||||
txtWidth = txtWidth > 50 ? txtWidth : 50;
|
||||
txtWidth = txtWidth < 500 ? txtWidth : 500;
|
||||
widget.elements.input.width(txtWidth);
|
||||
|
|
@ -637,10 +634,7 @@
|
|||
els.ul.replaceWith(this.element);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
$('body').append(inputosaurustext.fakeSpan);
|
||||
$.widget("ui.inputosaurus", inputosaurustext);
|
||||
});
|
||||
|
||||
})(jQuery);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue