Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
debomatic-webui
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
debomatic-webui-admins
debomatic-webui
Commits
a7ff98cd
Commit
a7ff98cd
authored
Mar 12, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed scroll down
parent
6e7364b1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
+13
-7
debomatic-webui/public/javascripts/page_distribution.js
debomatic-webui/public/javascripts/page_distribution.js
+10
-4
debomatic-webui/views/distribution.ejs
debomatic-webui/views/distribution.ejs
+3
-3
No files found.
debomatic-webui/public/javascripts/page_distribution.js
View file @
a7ff98cd
...
...
@@ -145,11 +145,17 @@ function Page_Distrubion(socket)
$
(
'
#file
'
).
hide
()
},
append
:
function
(
data
)
{
var
new_html
=
$
(
"
#file pre
"
).
html
()
+
data
.
file
.
new_content
$
(
"
#file pre
"
).
html
(
new_html
)
var
content
=
$
(
"
#file pre
"
)
content
.
html
(
content
.
html
()
+
data
.
file
.
new_content
)
if
(
config
.
autoscroll
)
// scroll down
$
(
'
body,html
'
).
animate
({
scrollTop
:
$
(
'
#file pre
'
).
height
()
},
500
);
if
(
config
.
autoscroll
)
{
// scroll down if file is covering footer
var
file_height
=
$
(
"
#fileOffset
"
).
offset
().
top
var
footerOffset
=
$
(
"
footer
"
).
offset
().
top
if
(
file_height
>
footerOffset
)
{
$
(
'
html
'
).
animate
({
scrollTop
:
file_height
},
0
);
}
}
},
get
:
function
()
{
if
(
Utils
.
check_data_file
(
data
))
{
...
...
debomatic-webui/views/distribution.ejs
View file @
a7ff98cd
...
...
@@ -26,7 +26,6 @@
</nav>
</section>
</div>
</aside>
<section class="col-md-9">
...
...
@@ -35,6 +34,7 @@
</header>
<div id="file">
<pre></pre>
<div id="fileOffset"></div>
</div>
</section>
</article>
...
...
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