Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cloud-3406140
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Issue forks
cloud-3406140
Commits
66b3a3df
Commit
66b3a3df
authored
1 year ago
by
Masami Suzuki
Committed by
Yas Naoi
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3400001
by Masami, yas, chetan 11: Remove unused JS (cloud.js)
parent
591709df
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cloud.info.yml
+0
-2
0 additions, 2 deletions
cloud.info.yml
cloud.libraries.yml
+0
-7
0 additions, 7 deletions
cloud.libraries.yml
js/cloud.js
+0
-124
0 additions, 124 deletions
js/cloud.js
with
0 additions
and
133 deletions
cloud.info.yml
+
0
−
2
View file @
66b3a3df
...
...
@@ -15,7 +15,5 @@ dependencies:
-
drupal:taxonomy
-
drupal:text
-
drupal:views
scripts
:
-
js/cloud.js
interface translation project
:
cloud
interface translation server pattern
:
modules/contrib/cloud/translations/%language.po
This diff is collapsed.
Click to expand it.
cloud.libraries.yml
+
0
−
7
View file @
66b3a3df
cloud
:
version
:
6.x-dev
js
:
js/cloud.js
:
{}
dependencies
:
-
core/jquery
cloud_view_builder
:
version
:
6.x-dev
css
:
...
...
This diff is collapsed.
Click to expand it.
js/cloud.js
deleted
100644 → 0
+
0
−
124
View file @
591709df
/**
* @file
* Used for this module
*
*/
/**
* NAME: Bootstrap 3 Triple Nested Sub-Menus
* This script will activate Triple level multi drop-down menus in Bootstrap 3.
*/
/*
$('ul.dropdown-menu [data-toggle=dropdown]').on('click', function(event) {
// Avoid following the href location when clicking
event.preventDefault();
// Avoid having the menu to close when clicking
event.stopPropagation();
// Re-add .open to parent sub-menu item
$(this).parent().addClass('open');
$(this).parent().find("ul").parent().find("li.dropdown").addClass('open');
});
*/
/**
* Renders Action Block on Mouse Over for table data with action buttons
*
*/
(
function
(
$
)
{
'
use strict
'
;
Drupal
.
behaviors
.
showActionButtons
=
{
attach
:
function
(
context
,
settings
)
{
if
(
$
(
'
table.sticky-header .action-column
'
))
{
// adds CSS to the table to hide the action column in the header
$
(
'
table.sticky-header
'
).
addClass
(
'
hide-action-column
'
);
}
if
(
$
(
'
table.sticky-enabled .action-column
'
))
{
// adds CSS to the table to hide the action column
$
(
'
table.sticky-enabled
'
).
addClass
(
'
hide-action-column
'
);
// append action toggle icon DOM to every nickname cell
if
(
$
(
'
table.sticky-enabled tbody tr td.nickname-column a
'
).
length
>
0
)
{
$
(
'
table.sticky-enabled tbody tr td.nickname-column a
'
).
each
(
function
()
{
if
(
!
$
(
this
).
hasClass
(
'
lockIcon
'
))
{
// Create Action Table show/hide icon
let
action_toggle_icon
=
document
.
createElement
(
'
div
'
);
action_toggle_icon
.
className
=
'
action_toggle_icon
'
;
$
(
action_toggle_icon
).
insertBefore
(
$
(
this
));
}
});
}
else
if
(
$
(
'
table.sticky-enabled tbody tr td.nickname-column span.anchor
'
).
length
>
0
)
{
$
(
'
table.sticky-enabled tbody tr td.nickname-column span.anchor
'
).
each
(
function
()
{
if
(
!
$
(
this
).
hasClass
(
'
lockIcon
'
))
{
// Create Action Table show/hide icon
let
action_toggle_icon
=
document
.
createElement
(
'
div
'
);
action_toggle_icon
.
className
=
'
action_toggle_icon
'
;
$
(
action_toggle_icon
).
insertBefore
(
$
(
this
));
}
});
}
// Adding On Click behavior to Action Buttons
$
(
'
table.sticky-enabled tbody tr .action_toggle_icon
'
).
each
(
function
(
index
)
{
$
(
this
).
click
(
function
(
e
)
{
toggleActionButtons
(
this
);
});
});
// Adding On MouseOut behavior to row of Action Buttons
$
(
'
table.sticky-enabled tbody tr
'
).
each
(
function
(
index
)
{
$
(
this
).
bind
(
'
mouseleave
'
,
function
()
{
if
(
$
(
this
).
find
(
'
.action_toggle_icon
'
).
hasClass
(
'
action_toggle_icon_on
'
))
{
$
(
this
).
find
(
'
.action_toggle_icon_on
'
).
removeClass
(
'
action_toggle_icon_on
'
);
$
(
this
).
find
(
'
.action-column
'
).
css
(
'
display
'
,
'
none
'
);
}
});
});
}
}
};
let
toggleActionButtons
=
function
(
evt
)
{
// action button tooltip displacement values
let
action_column_left_position_displacement
=
'
25px
'
;
let
row_height_displacement
=
'
-3
'
;
// used by IE, Safari and Chrome
// Obsolete after ver.0.9
// if ($.browser.mozilla)
// row_height_displacement = "2";
let
parent_row
=
$
(
evt
).
parent
().
parent
();
// let parent_row = parent_row_obj[0];
// Dom Interaction
if
(
$
(
evt
).
hasClass
(
'
action_toggle_icon_on
'
))
{
// Hide Action Buttons
$
(
evt
).
removeClass
(
'
action_toggle_icon_on
'
);
$
(
parent_row
).
find
(
'
.action-column
'
).
css
(
'
display
'
,
'
none
'
);
}
else
{
// Show Action Buttons
$
(
evt
).
addClass
(
'
action_toggle_icon_on
'
);
// get row height
let
row_height
=
$
(
parent_row
).
height
()
-
row_height_displacement
;
// toggle display to block to show action column
$
(
parent_row
).
find
(
'
.action-column
'
)
.
css
(
'
display
'
,
'
block
'
)
.
css
(
'
left
'
,
action_column_left_position_displacement
)
.
css
(
'
margin-top
'
,
row_height
);
}
};
})(
jQuery
);
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