Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
socialbase
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
socialbase
Commits
98543a29
Commit
98543a29
authored
1 year ago
by
Serhii Myronets
Committed by
Tiago Siqueira
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3392441
by agami4: Recompile js files
parent
fdfbcfcd
No related branches found
No related tags found
1 merge request
!184
Issue #3392441 by agami4: Improve twig code, js library and php dependency
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
assets/js/autosize.init.min.js
+3
-3
3 additions, 3 deletions
assets/js/autosize.init.min.js
assets/js/navbar-collapse.min.js
+5
-4
5 additions, 4 deletions
assets/js/navbar-collapse.min.js
assets/js/popover_svg.min.js
+11
-8
11 additions, 8 deletions
assets/js/popover_svg.min.js
with
19 additions
and
15 deletions
assets/js/autosize.init.min.js
+
3
−
3
View file @
98543a29
(
function
(
$
)
{
(
function
(
Drupal
,
$
,
once
)
{
Drupal
.
behaviors
.
textareaAutogrow
=
{
attach
:
function
attach
(
context
,
settings
)
{
// Attach autosize listener.
$
(
"
.form-control--autogrow
"
,
context
)
.
once
(
"
textareaAutogrow
"
).
each
(
function
()
{
$
(
once
(
'
textareaAutogrow
'
,
"
.form-control--autogrow
"
,
context
)).
each
(
function
()
{
autosize
.
destroy
(
$
(
'
.form-control--autogrow
'
));
autosize
(
$
(
'
.form-control--autogrow
'
));
autosize
.
update
(
$
(
'
.form-control--autogrow
'
));
...
...
@@ -19,4 +19,4 @@
});
}
};
})(
jQuery
);
\ No newline at end of file
})(
Drupal
,
jQuery
,
once
);
\ No newline at end of file
This diff is collapsed.
Click to expand it.
assets/js/navbar-collapse.min.js
+
5
−
4
View file @
98543a29
(
function
(
$
)
{
(
function
(
Drupal
,
$
,
once
)
{
Drupal
.
behaviors
.
navbarCollapse
=
{
attach
:
function
attach
(
context
,
settings
)
{
// Delegate the event to body to prevent screenreaders from thinking
// teasers are clickable.
var
$body
=
$
(
'
body
'
);
$body
.
once
(
'
navbarCollapse
'
).
on
(
'
click
'
,
'
.dropdown-toggle, #content
'
,
function
()
{
var
$body
=
$
(
once
(
'
navbarCollapse
'
,
'
body
'
));
$body
.
on
(
'
click
'
,
'
.dropdown-toggle, #content
'
,
function
()
{
$
(
'
.navbar-collapse
'
).
collapse
(
'
hide
'
);
var
headerDropDown
=
$
(
'
.navbar-default .dropdown
'
);
setTimeout
(
function
()
{
...
...
@@ -17,4 +18,4 @@
});
}
};
})(
jQuery
);
\ No newline at end of file
})(
Drupal
,
jQuery
,
once
);
\ No newline at end of file
This diff is collapsed.
Click to expand it.
assets/js/popover_svg.min.js
+
11
−
8
View file @
98543a29
...
...
@@ -2,27 +2,30 @@
* @file
* Add SVG as sanitized option to popover.
*/
(
function
(
$
,
Drupal
)
{
(
function
(
$
,
Drupal
,
once
)
{
'
use strict
'
;
/**
* @type {Drupal~behavior}
*/
Drupal
.
behaviors
.
social_popover
=
{
attach
:
function
attach
(
context
,
settings
)
{
if
(
!
$
.
fn
.
popover
)
throw
new
Error
(
'
Popover requires tooltip.js
'
);
$
(
'
body
'
).
once
(
'
social_popover
'
).
each
(
function
()
{
var
myDefaultWhiteList
=
[];
// Allow table elements
$
(
once
(
'
social_popover
'
,
'
body
'
)
).
each
(
function
()
{
var
myDefaultWhiteList
=
[];
// Allow table elements
myDefaultWhiteList
.
table
=
[];
myDefaultWhiteList
.
td
=
[];
myDefaultWhiteList
.
th
=
[];
// Allow SVG's and use options
myDefaultWhiteList
.
th
=
[];
// Allow SVG's and use options
myDefaultWhiteList
.
svg
=
[
'
viewBox
'
];
myDefaultWhiteList
.
use
=
[
'
xlink:href
'
,
'
href
'
,
'
xlink
'
];
// Extend the popover defaults so we can add the above to the popover.
myDefaultWhiteList
.
use
=
[
'
xlink:href
'
,
'
href
'
,
'
xlink
'
];
// Extend the popover defaults so we can add the above to the popover.
$
.
extend
(
$
.
fn
.
popover
.
Constructor
.
DEFAULTS
.
whiteList
,
myDefaultWhiteList
);
});
}
};
})(
jQuery
,
Drupal
);
\ No newline at end of file
})(
jQuery
,
Drupal
,
once
);
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment