Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kohinos-tav
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
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
agplv3
kohinos-tav
Commits
7f30a647
Commit
7f30a647
authored
May 06, 2022
by
Julien Jorry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue with news position, sortable
parent
2ddf9592
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
1 deletions
+11
-1
anchor.js
public/build/ckeditor/plugins/link/dialogs/anchor.js
+9
-0
link.js
public/build/ckeditor/plugins/link/dialogs/link.js
+0
-0
anchor.png
public/build/ckeditor/plugins/link/images/anchor.png
+0
-0
anchor.png
public/build/ckeditor/plugins/link/images/hidpi/anchor.png
+0
-0
NewsRepository.php
src/Repository/NewsRepository.php
+2
-1
No files found.
public/build/ckeditor/plugins/link/dialogs/anchor.js
0 → 100644
View file @
7f30a647
/*
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR
.
dialog
.
add
(
"anchor"
,
function
(
c
){
function
e
(
b
,
a
){
return
b
.
createFakeElement
(
b
.
document
.
createElement
(
"a"
,{
attributes
:
a
}),
"cke_anchor"
,
"anchor"
)}
return
{
title
:
c
.
lang
.
link
.
anchor
.
title
,
minWidth
:
300
,
minHeight
:
60
,
onOk
:
function
(){
var
b
=
CKEDITOR
.
tools
.
trim
(
this
.
getValueOf
(
"info"
,
"txtName"
)),
a
=
{
id
:
b
,
name
:
b
,
"data-cke-saved-name"
:
b
};
this
.
_
.
selectedElement
?
this
.
_
.
selectedElement
.
data
(
"cke-realelement"
)?(
b
=
e
(
c
,
a
),
b
.
replace
(
this
.
_
.
selectedElement
),
CKEDITOR
.
env
.
ie
&&
c
.
getSelection
().
selectElement
(
b
)):
this
.
_
.
selectedElement
.
setAttributes
(
a
):
(
b
=
(
b
=
c
.
getSelection
())
&&
b
.
getRanges
()[
0
],
b
.
collapsed
?(
a
=
e
(
c
,
a
),
b
.
insertNode
(
a
)):(
CKEDITOR
.
env
.
ie
&&
9
>
CKEDITOR
.
env
.
version
&&
(
a
[
"class"
]
=
"cke_anchor"
),
a
=
new
CKEDITOR
.
style
({
element
:
"a"
,
attributes
:
a
}),
a
.
type
=
CKEDITOR
.
STYLE_INLINE
,
a
.
applyToRange
(
b
)))},
onHide
:
function
(){
delete
this
.
_
.
selectedElement
},
onShow
:
function
(){
var
b
=
c
.
getSelection
(),
a
;
a
=
b
.
getRanges
()[
0
];
var
d
=
b
.
getSelectedElement
();
a
.
shrink
(
CKEDITOR
.
SHRINK_ELEMENT
);
a
=
(
d
=
a
.
getEnclosedNode
())
&&
d
.
type
===
CKEDITOR
.
NODE_ELEMENT
&&
(
"anchor"
===
d
.
data
(
"cke-real-element-type"
)
||
d
.
is
(
"a"
))?
d
:
void
0
;
var
f
=
(
d
=
a
&&
a
.
data
(
"cke-realelement"
))?
CKEDITOR
.
plugins
.
link
.
tryRestoreFakeAnchor
(
c
,
a
):
CKEDITOR
.
plugins
.
link
.
getSelectedLink
(
c
);
if
(
f
){
this
.
_
.
selectedElement
=
f
;
var
e
=
f
.
data
(
"cke-saved-name"
);
this
.
setValueOf
(
"info"
,
"txtName"
,
e
||
""
);
!
d
&&
b
.
selectElement
(
f
);
a
&&
(
this
.
_
.
selectedElement
=
a
)}
this
.
getContentElement
(
"info"
,
"txtName"
).
focus
()},
contents
:[{
id
:
"info"
,
label
:
c
.
lang
.
link
.
anchor
.
title
,
accessKey
:
"I"
,
elements
:[{
type
:
"text"
,
id
:
"txtName"
,
label
:
c
.
lang
.
link
.
anchor
.
name
,
required
:
!
0
,
validate
:
function
(){
return
this
.
getValue
()?
!
0
:(
alert
(
c
.
lang
.
link
.
anchor
.
errorName
),
!
1
)}}]}]}});
\ No newline at end of file
public/build/ckeditor/plugins/link/dialogs/link.js
0 → 100644
View file @
7f30a647
This diff is collapsed.
Click to expand it.
public/build/ckeditor/plugins/link/images/anchor.png
0 → 100644
View file @
7f30a647
752 Bytes
public/build/ckeditor/plugins/link/images/hidpi/anchor.png
0 → 100644
View file @
7f30a647
1.08 KB
src/Repository/NewsRepository.php
View file @
7f30a647
...
@@ -29,7 +29,8 @@ class NewsRepository extends ServiceEntityRepository
...
@@ -29,7 +29,8 @@ class NewsRepository extends ServiceEntityRepository
$qb
$qb
->
where
(
'n.enabled = :enabled'
)
->
where
(
'n.enabled = :enabled'
)
->
setParameter
(
'enabled'
,
true
)
->
setParameter
(
'enabled'
,
true
)
->
orderBy
(
'n.position'
,
'ASC'
);
->
orderBy
(
'n.position'
,
'ASC'
)
->
addOrderBy
(
'n.createdAt'
,
'DESC'
);
if
(
$limit
>
0
)
{
if
(
$limit
>
0
)
{
$qb
->
setMaxResults
(
$limit
);
$qb
->
setMaxResults
(
$limit
);
...
...
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