Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
joshine
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
joshine
Commits
da807075
Commit
da807075
authored
Feb 24, 2023
by
lmf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化加载更多产品样式居中
parent
004fb458
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
app/code/Magetop/InfiniteScroll/view/frontend/templates/infinitescroll.phtml
+3
-3
app/code/Magetop/InfiniteScroll/view/frontend/web/js/plugin/infinitescroll.js
+1
-1
No files found.
app/code/Magetop/InfiniteScroll/view/frontend/templates/infinitescroll.phtml
View file @
da807075
...
...
@@ -32,7 +32,7 @@ if ($loadingImage) {
});
window
.
ias
.
extension
(
new
IASSpinnerExtension
({
src
:
"
<?php
echo
$loadingImage
;
?>
"
,
html
:
'<div class="iass-spinner"><img src="{src}"/><span>
<?php
echo
$loadingText
;
?>
</span></div>'
html
:
'<div class="iass-spinner"
style="margin:auto;"
><img src="{src}"/><span>
<?php
echo
$loadingText
;
?>
</span></div>'
}));
window
.
ias
.
extension
(
new
IASNoneLeftExtension
({
text
:
"
<?php
echo
$doneText
;
?>
"
,
...
...
@@ -40,9 +40,9 @@ if ($loadingImage) {
}));
window
.
ias
.
extension
(
new
IASTriggerExtension
({
text
:
"
<?php
echo
$loadMoreText
?>
"
,
html
:
'<div class="ias-trigger ias-trigger-next"><button class="load-more">
<?php
echo
$loadMoreText
?>
</button></div>'
,
html
:
'<div class="ias-trigger ias-trigger-next"
style="margin: auto;"
><button class="load-more">
<?php
echo
$loadMoreText
?>
</button></div>'
,
textPrev
:
"
<?php
echo
$loadMoreText
?>
"
,
htmlPrev
:
'<div class="ias-trigger ias-trigger-prev"><button class="load-more">
<?php
echo
$loadMoreText
?>
</button></div>'
,
htmlPrev
:
'<div class="ias-trigger ias-trigger-prev"
style="margin: auto;"
><button class="load-more">
<?php
echo
$loadMoreText
?>
</button></div>'
,
offset
:
"
<?php
echo
$loadMore
?>
"
,
}));
window
.
ias
.
on
(
'rendered'
,
function
(
items
){
...
...
app/code/Magetop/InfiniteScroll/view/frontend/web/js/plugin/infinitescroll.js
View file @
da807075
...
...
@@ -1418,7 +1418,7 @@ IASTriggerExtension.prototype.prev = function() {
*/
IASTriggerExtension
.
prototype
.
defaults
=
{
text
:
'Load more items'
,
html
:
'<div class="ias-trigger ias-trigger-next" style="text-align: center; cursor: pointer;"><a>{text}</a></div>'
,
html
:
'<div class="ias-trigger ias-trigger-next" style="text-align: center; cursor: pointer;
margin: auto;
"><a>{text}</a></div>'
,
textPrev
:
'Load previous items'
,
htmlPrev
:
'<div class="ias-trigger ias-trigger-prev" style="text-align: center; cursor: pointer;"><a>{text}</a></div>'
,
offset
:
0
...
...
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