Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
19ae6b29
Commit
19ae6b29
authored
Jan 30, 2019
by
bbaer
Browse files
Added Comment Marker
parent
9b298896
Pipeline
#1444
passed with stage
in 2 minutes and 10 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
javascript/src/CodeCorrection.js
View file @
19ae6b29
...
@@ -58,6 +58,7 @@ var QfqNS = QfqNS || {};
...
@@ -58,6 +58,7 @@ var QfqNS = QfqNS || {};
this
.
language
=
this
.
$parent
.
data
(
"
highlight
"
)
||
"
typo3conf/ext/qfq/Resources/Public/Json/javascript.json
"
;
this
.
language
=
this
.
$parent
.
data
(
"
highlight
"
)
||
"
typo3conf/ext/qfq/Resources/Public/Json/javascript.json
"
;
console
.
log
(
this
.
data
);
console
.
log
(
this
.
data
);
this
.
currentUser
=
$container
.
data
(
"
uid
"
);
this
.
currentUser
=
$container
.
data
(
"
uid
"
);
console
.
log
(
this
.
currentUser
);
var
that
=
this
;
var
that
=
this
;
if
(
this
.
$target
.
val
())
{
if
(
this
.
$target
.
val
())
{
var
jImport
=
$
.
parseJSON
(
this
.
$target
.
val
());
var
jImport
=
$
.
parseJSON
(
this
.
$target
.
val
());
...
@@ -142,17 +143,21 @@ var QfqNS = QfqNS || {};
...
@@ -142,17 +143,21 @@ var QfqNS = QfqNS || {};
var
$hook
=
this
.
$rows
[
annotation
.
lineNumber
];
var
$hook
=
this
.
$rows
[
annotation
.
lineNumber
];
var
commentController
=
this
.
_buildCommentContainer
(
$hook
);
var
commentController
=
this
.
_buildCommentContainer
(
$hook
);
commentController
.
importComments
(
annotation
.
comments
,
this
.
users
);
commentController
.
importComments
(
annotation
.
comments
,
this
.
users
);
$hook
.
append
(
this
.
_getCommentMarker
(
annotation
.
comments
.
length
));
this
.
_setListeners
(
commentController
);
this
.
_setListeners
(
commentController
);
this
.
_setCommentController
(
annotation
.
lineNumber
,
commentController
);
this
.
_setCommentController
(
annotation
.
lineNumber
,
commentController
);
}
}
};
};
n
.
CodeCorrection
.
prototype
.
_
s
etCommentMarker
=
function
(
$hook
,
numberOfComments
)
{
n
.
CodeCorrection
.
prototype
.
_
g
etCommentMarker
=
function
(
numberOfComments
)
{
var
container
=
$
(
'
<span/>
'
,
{
var
container
=
$
(
'
<span/>
'
,
{
class
:
"
badge
"
,
class
:
"
badge
qfq-comment-marker
"
,
text
:
numberOfComments
text
:
numberOfComments
+
'
'
});
});
container
.
append
(
$
(
'
<span/>
'
,
{
class
:
"
glyphicon glyphicon-comment
"
}));
return
container
;
};
};
/**
/**
...
...
less/qfq-bs.css.less
View file @
19ae6b29
...
@@ -173,6 +173,12 @@ select.qfq-locked:invalid {
...
@@ -173,6 +173,12 @@ select.qfq-locked:invalid {
width: 44px;
width: 44px;
}
}
.qfq-comment-marker {
position: absolute;
right: 22px;
z-index: 2;
}
.nav-pills>li>a {
.nav-pills>li>a {
border-radius: 0;
border-radius: 0;
}
}
...
...
Write
Preview
Supports
Markdown
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