Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hamza
erp5-Boxiang
Commits
5e3d4592
Commit
5e3d4592
authored
Oct 25, 2017
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_jabber_client: Fix Scroll down on dialog page
parent
b880f266
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
bt5/erp5_web_jabber_client/PathTemplateItem/web_page_module/jabber_gadget_page_dialog_js.js
...plateItem/web_page_module/jabber_gadget_page_dialog_js.js
+5
-4
No files found.
bt5/erp5_web_jabber_client/PathTemplateItem/web_page_module/jabber_gadget_page_dialog_js.js
View file @
5e3d4592
...
@@ -3,13 +3,14 @@
...
@@ -3,13 +3,14 @@
(
function
(
window
,
document
,
rJS
,
RSVP
,
Handlebars
,
loopEventListener
)
{
(
function
(
window
,
document
,
rJS
,
RSVP
,
Handlebars
,
loopEventListener
)
{
"
use strict
"
;
"
use strict
"
;
function
scroll
()
{
function
scroll
(
g
)
{
var
gadget
=
g
;
RSVP
.
Queue
()
RSVP
.
Queue
()
.
push
(
function
()
{
.
push
(
function
()
{
return
RSVP
.
delay
(
0
);
return
RSVP
.
delay
(
0
);
})
})
.
push
(
function
()
{
.
push
(
function
()
{
window
.
scrollTo
(
0
,
document
.
body
.
scrollHeight
||
document
.
documentElement
.
scrollHeight
);
window
.
scrollTo
(
0
,
gadget
.
props
.
element
.
scrollHeight
||
document
.
body
.
scrollHeight
||
document
.
documentElement
.
scrollHeight
);
});
});
}
}
...
@@ -176,7 +177,7 @@
...
@@ -176,7 +177,7 @@
gadget
.
props
.
element
.
querySelector
(
"
.discussion-content
"
).
innerHTML
=
""
;
gadget
.
props
.
element
.
querySelector
(
"
.discussion-content
"
).
innerHTML
=
""
;
gadget
.
props
.
element
.
querySelector
(
"
.discussion-content
"
).
appendChild
(
ul
);
gadget
.
props
.
element
.
querySelector
(
"
.discussion-content
"
).
appendChild
(
ul
);
scroll
(
);
return
scroll
(
gadget
);
});
});
})
})
...
@@ -259,7 +260,7 @@
...
@@ -259,7 +260,7 @@
})
})
.
declareService
(
function
()
{
.
declareService
(
function
()
{
scroll
(
);
return
scroll
(
this
);
});
});
}(
window
,
document
,
rJS
,
RSVP
,
Handlebars
,
loopEventListener
));
}(
window
,
document
,
rJS
,
RSVP
,
Handlebars
,
loopEventListener
));
\ No newline at end of file
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