Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pve-manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
pve-manager
Commits
b1f25c4d
Commit
b1f25c4d
authored
Nov 16, 2011
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make jslint happy
parent
c0e19158
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
Utils.js
www/manager/Utils.js
+1
-1
LogView.js
www/manager/panel/LogView.js
+5
-4
No files found.
www/manager/Utils.js
View file @
b1f25c4d
...
...
@@ -322,7 +322,7 @@ Ext.define('PVE.Utils', { statics: {
response
.
result
=
{};
try
{
response
.
result
=
Ext
.
decode
(
response
.
responseText
);
}
catch
(
e
)
{}
;
}
catch
(
e
)
{}
var
msg
=
"
Connection error - server offline?
"
;
if
(
response
.
aborted
)
{
msg
=
'
Transaction aborted.
'
;
...
...
www/manager/panel/LogView.js
View file @
b1f25c4d
...
...
@@ -110,18 +110,18 @@ Ext.define('PVE.panel.LogView', {
top
=
target
.
dom
.
scrollTop
;
}
var
viewStart
=
parseInt
((
top
/
me
.
lineHeight
)
-
1
);
var
viewStart
=
parseInt
((
top
/
me
.
lineHeight
)
-
1
,
10
);
if
(
viewStart
<
0
)
{
viewStart
=
0
;
}
var
viewEnd
=
parseInt
(((
top
+
me
.
getHeight
())
/
me
.
lineHeight
)
+
1
);
var
viewEnd
=
parseInt
(((
top
+
me
.
getHeight
())
/
me
.
lineHeight
)
+
1
,
10
);
var
info
=
me
.
viewInfo
;
if
(
info
&&
!
force
)
{
if
(
viewStart
>=
info
.
start
&&
viewEnd
<=
info
.
end
)
{
return
;
}
}
var
line
=
parseInt
((
top
/
me
.
lineHeight
)
-
(
me
.
pageSize
/
2
)
+
10
);
var
line
=
parseInt
((
top
/
me
.
lineHeight
)
-
(
me
.
pageSize
/
2
)
+
10
,
10
);
if
(
line
<
0
)
{
line
=
0
;
}
...
...
@@ -138,7 +138,7 @@ Ext.define('PVE.panel.LogView', {
me
.
dataCmp
=
Ext
.
create
(
'
Ext.Component
'
,
{
style
:
'
font:normal 11px tahoma, arial, verdana, sans-serif;
'
+
'
line-height:
'
+
me
.
lineHeight
+
'
px; white-space: pre;
'
'
line-height:
'
+
me
.
lineHeight
.
toString
()
+
'
px; white-space: pre;
'
});
...
...
@@ -175,6 +175,7 @@ Ext.define('PVE.panel.LogView', {
me
.
requestUpdate
(
0
);
},
20
),
show
:
function
()
{
/*jslint confusion: true */
var
target
=
me
.
getTargetEl
();
target
.
dom
.
scrollTop
=
savedScrollTop
;
task
=
Ext
.
TaskManager
.
start
(
autoScrollTask
);
...
...
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