mirror of
https://github.com/humhub/humhub.git
synced 2025-04-16 13:18:00 +02:00
Small JS cleanup
This commit is contained in:
parent
f8b6bfac34
commit
3bcc3e67ad
@ -24,12 +24,10 @@ function parseHtml(htmlString) {
|
||||
|
||||
if (currentLoadedJavaScripts.hasItem(js)) {
|
||||
// Remove Script Tag
|
||||
//console.log("Ignore load of : "+js);
|
||||
htmlString = htmlString.replace(match[0], "");
|
||||
|
||||
} else {
|
||||
// Let Script Tag
|
||||
//console.log("First load of: "+js);
|
||||
currentLoadedJavaScripts.setItem(js, 1);
|
||||
|
||||
}
|
||||
|
@ -47,7 +47,7 @@ use yii\helpers\Url;
|
||||
// Show Current Selected
|
||||
showTypeSettings = $("#profilefield-field_type_class").val();
|
||||
showTypeSettings = showTypeSettings.replace(/[\\]/g, '_');
|
||||
console.log(showTypeSettings);
|
||||
|
||||
$("." + showTypeSettings).show();
|
||||
});
|
||||
|
||||
|
@ -164,17 +164,6 @@ use yii\helpers\Url;
|
||||
});
|
||||
}
|
||||
|
||||
/*
|
||||
function escapeHtml(str) {
|
||||
return String(str)
|
||||
.replace(/&/g, "&")
|
||||
.replace(/</g, "<")
|
||||
.replace(/>/g, ">")
|
||||
.replace(/"/g, """)
|
||||
.replace(/'/g, "'")
|
||||
.replace(/\//g, "/")
|
||||
}
|
||||
*/
|
||||
/**
|
||||
* Convert contenteditable div content into plain text
|
||||
* @param element jQuery contenteditable div element
|
||||
|
@ -5,7 +5,6 @@ function activityShowItem(activityId) {
|
||||
|
||||
$.getJSON(activityInfoUrl.replace('-id-', activityId), function (data) {
|
||||
if (data.success) {
|
||||
console.log(data);
|
||||
if (typeof mainStream !== "undefined" && data['wallEntryId'] != 0) {
|
||||
mainStream.showItem(data['wallEntryId']);
|
||||
} else {
|
||||
|
@ -232,8 +232,6 @@ $.fn.spacepicker = function (options) {
|
||||
// build <li> entry
|
||||
var str = '<li><a tabindex="-1" href="javascript:addSpaceTag(\'' + _guid + '\', \'' + _image + '\', \'' + _title + '\');">' + json[i].image + ' ' + _title + '</a></li>';
|
||||
|
||||
console.log(str);
|
||||
|
||||
// append the entry to the <ul> list
|
||||
$('#spacepicker').append(str);
|
||||
|
||||
|
@ -239,8 +239,6 @@ $.fn.userpicker = function (options) {
|
||||
if(options['userRole']) {
|
||||
data['userRole'] = options['userRole'];
|
||||
}
|
||||
|
||||
console.log(data);
|
||||
|
||||
jQuery.getJSON(options.searchUrl.replace('-keywordPlaceholder-', keyword), data, function (json) {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user