Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
9f8c606c
Commit
9f8c606c
authored
Aug 24, 2021
by
Tim Zallmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed completely jqery.waitforimages
parent
812a57a4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
12 deletions
+1
-12
app/assets/javascripts/commit/image_file.js
app/assets/javascripts/commit/image_file.js
+1
-6
package.json
package.json
+0
-1
yarn.lock
yarn.lock
+0
-5
No files found.
app/assets/javascripts/commit/image_file.js
View file @
9f8c606c
/* eslint-disable func-names, consistent-return, one-var, no-return-assign */
import
$
from
'
jquery
'
;
import
'
jquery.waitforimages
'
;
// Width where images must fits in, for 2-up this gets divided by 2
const
availWidth
=
900
;
...
...
@@ -16,11 +15,7 @@ export default class ImageFile {
// Load two-up view after images are loaded
// so that we can display the correct width and height information
const
$images
=
$
(
'
.two-up.view img
'
,
this
.
file
);
$images
.
waitForImages
(()
=>
{
this
.
initView
(
'
two-up
'
);
});
}),
);
}
...
...
package.json
View file @
9f8c606c
...
...
@@ -140,7 +140,6 @@
"
jed
"
:
"
^1.1.1
"
,
"
jquery
"
:
"
^3.6.0
"
,
"
jquery.caret
"
:
"
^0.3.1
"
,
"
jquery.waitforimages
"
:
"
^2.2.0
"
,
"
js-cookie
"
:
"
^2.2.1
"
,
"
js-yaml
"
:
"
^3.13.1
"
,
"
jszip
"
:
"
^3.1.3
"
,
...
...
yarn.lock
View file @
9f8c606c
...
...
@@ -7372,11 +7372,6 @@ jquery.caret@^0.3.1:
resolved "https://registry.yarnpkg.com/jquery.caret/-/jquery.caret-0.3.1.tgz#9c093318faf327eff322e826ca9f3241368bc7b8"
integrity sha1-nAkzGPrzJ+/zIugmyp8yQTaLx7g=
jquery.waitforimages@^2.2.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/jquery.waitforimages/-/jquery.waitforimages-2.2.0.tgz#63f23131055a1b060dc913e6d874bcc9b9e6b16b"
integrity sha1-Y/IxMQVaGwYNyRPm2HS8ybnmsWs=
"jquery@>= 1.9.1", jquery@^3.6.0:
version "3.6.0"
resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.6.0.tgz#c72a09f15c1bdce142f49dbf1170bdf8adac2470"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment