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
a359743b
Commit
a359743b
authored
Jun 16, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix variable name conflicts
parent
8c58d494
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
debomatic-webui/public/javascripts/page_distribution.js
debomatic-webui/public/javascripts/page_distribution.js
+7
-7
No files found.
debomatic-webui/public/javascripts/page_distribution.js
View file @
a359743b
...
...
@@ -323,19 +323,19 @@ function Page_Distrubion(socket) {
var
file
=
{
set
:
function
(
socket_data
)
{
var
file
=
$
(
'
#file pre
'
);
var
file
_content
=
$
(
'
#file pre
'
);
view
.
file
=
Utils
.
clone
(
socket_data
.
file
);
file
.
text
(
socket_data
.
file
.
content
);
file
.
show
();
file
_content
.
text
(
socket_data
.
file
.
content
);
file
_content
.
show
();
if
(
current_file_in_preview
)
file
.
scrollTop
(
file
[
0
].
scrollHeight
);
file
_content
.
scrollTop
(
file_content
[
0
].
scrollHeight
);
},
clean
:
function
()
{
$
(
'
#file pre
'
).
html
(
''
);
$
(
'
#file
'
).
hide
();
},
append
:
function
(
new_content
)
{
var
file
=
$
(
'
#file pre
'
);
var
file
_content
=
$
(
'
#file pre
'
);
if
(
!
current_file_in_preview
)
{
file
.
append
(
new_content
);
}
else
{
...
...
@@ -343,8 +343,8 @@ function Page_Distrubion(socket) {
var
content
=
content
.
html
().
replace
(
/
\n
$/
,
''
).
split
(
'
\n
'
);
content
=
content
.
concat
(
new_content
.
replace
(
/
\n
$/
,
''
).
split
(
'
\n
'
));
content
=
content
.
slice
(
-
config
.
file
.
num_lines
).
join
(
'
\n
'
);
file
.
html
(
content
);
file
.
scrollTop
(
file
[
0
].
scrollHeight
);
file
_content
.
html
(
content
);
file
_content
.
scrollTop
(
file_content
[
0
].
scrollHeight
);
}
if
(
config
.
preferences
.
autoscroll
)
{
...
...
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