Fixed a lot of responsive problems.
- Fixed auth problem - Fixed BBCode and Markdown apparition in some unnecessary parts
This commit is contained in:
@@ -131,15 +131,38 @@ export function GalleryManager() {
|
||||
this.dragSrcI = index;
|
||||
},
|
||||
|
||||
moveImageUp(index){
|
||||
if( index <= 0 )
|
||||
return;
|
||||
|
||||
const moved = this.images.splice(index, 1)[0];
|
||||
this.images.splice(index - 1, 0, moved);
|
||||
},
|
||||
|
||||
moveImageDown(index){
|
||||
if( index >= this.images.length - 1 )
|
||||
return;
|
||||
|
||||
const moved = this.images.splice(index, 1)[0];
|
||||
this.images.splice(index + 1, 0, moved);
|
||||
},
|
||||
|
||||
reorderImages(from, to){
|
||||
if( from === null || to === null || from === to )
|
||||
return;
|
||||
|
||||
const moved = this.images.splice(from, 1)[0];
|
||||
this.images.splice(to, 0, moved);
|
||||
this.dragSrcI = to;
|
||||
},
|
||||
|
||||
dragOver(e, index){
|
||||
e.preventDefault();
|
||||
|
||||
if( this.dragSrcI === null || this.dragSrcI === index )
|
||||
return;
|
||||
|
||||
const moved = this.images.splice(this.dragSrcI, 1)[0];
|
||||
this.images.splice(index, 0, moved);
|
||||
this.dragSrcI = index;
|
||||
this.reorderImages(this.dragSrcI, index);
|
||||
},
|
||||
|
||||
dragEnd(){
|
||||
|
||||
Reference in New Issue
Block a user