mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 16:15:13 +00:00
not able to delete set_location
This commit is contained in:
parent
3fda761f81
commit
eb0a773b1d
4 changed files with 24 additions and 10 deletions
4
.jshintrc
Normal file
4
.jshintrc
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"esversion": 8,
|
||||||
|
"asi": true
|
||||||
|
}
|
|
@ -112,6 +112,9 @@ class Channel
|
||||||
PConfig::Set(local_channel(),'system', 'set_location', $lat . ',' . $lon);
|
PConfig::Set(local_channel(),'system', 'set_location', $lat . ',' . $lon);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
PConfig::Set(local_channel(),'system', 'set_location', '');
|
||||||
|
}
|
||||||
|
|
||||||
$pageflags = $channel['channel_pageflags'];
|
$pageflags = $channel['channel_pageflags'];
|
||||||
$existing_adult = (($pageflags & PAGE_ADULT) ? 1 : 0);
|
$existing_adult = (($pageflags & PAGE_ADULT) ? 1 : 0);
|
||||||
|
|
|
@ -1666,8 +1666,12 @@ function loadText(textRegion,data) {
|
||||||
|
|
||||||
function addeditortext(data) {
|
function addeditortext(data) {
|
||||||
if(plaintext == 'none') {
|
if(plaintext == 'none') {
|
||||||
let currentText = $("#profile-jot-text").val();
|
let textarea = document.getElementById('profile-jot-text');
|
||||||
$("#profile-jot-text").val(currentText + data);
|
if (textarea) {
|
||||||
|
textarea.value = currentText + data
|
||||||
|
let evt = new CustomEvent('input');
|
||||||
|
textarea.dispatchEvent(evt);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -183,12 +183,14 @@ let postSaveTimer = null;
|
||||||
$("#profile-jot-text").addClass('jot-expanded');
|
$("#profile-jot-text").addClass('jot-expanded');
|
||||||
$("#profile-jot-summary").addClass('jot-expanded');
|
$("#profile-jot-summary").addClass('jot-expanded');
|
||||||
|
|
||||||
// let bodytextarea = document.querySelector('#profile-jot-text');
|
/*
|
||||||
// if (typeof bodytextarea != "undefined") {
|
let bodytextarea = document.querySelector('#profile-jot-text');
|
||||||
// bodytextarea.addEventListener('input', function handlechange(event) {
|
if (typeof bodytextarea != "undefined") {
|
||||||
// imagewatcher(event)
|
bodytextarea.addEventListener('input', function handlechange(event) {
|
||||||
// });
|
imagewatcher(event)
|
||||||
// }
|
});
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
{{if $bbco_autocomplete}}
|
{{if $bbco_autocomplete}}
|
||||||
$("#profile-jot-text").bbco_autocomplete('{{$bbco_autocomplete}}'); // autocomplete bbcode
|
$("#profile-jot-text").bbco_autocomplete('{{$bbco_autocomplete}}'); // autocomplete bbcode
|
||||||
|
@ -217,7 +219,8 @@ let postSaveTimer = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
function imagewatcher(event) {
|
function imagewatcher(event) {
|
||||||
console.log(event.target.value);
|
let imgfind = /\[[iz]mg.*?alt="(.*?)".*?](.*?)\[/.exec(event.target.value)
|
||||||
|
console.log(imgfind);
|
||||||
}
|
}
|
||||||
function enableOnUser(){
|
function enableOnUser(){
|
||||||
if(editor)
|
if(editor)
|
||||||
|
|
Loading…
Reference in a new issue