Small JS cleanup

This commit is contained in:
buddha87 2016-09-15 14:20:46 +02:00
parent f8b6bfac34
commit 3bcc3e67ad
6 changed files with 1 additions and 19 deletions

View File

@ -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);
}

View File

@ -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();
});

View File

@ -164,17 +164,6 @@ use yii\helpers\Url;
});
}
/*
function escapeHtml(str) {
return String(str)
.replace(/&/g, "&")
.replace(/</g, "&lt;")
.replace(/>/g, "&gt;")
.replace(/"/g, "&quot;")
.replace(/'/g, "&#039;")
.replace(/\//g, "&#x2F;")
}
*/
/**
* Convert contenteditable div content into plain text
* @param element jQuery contenteditable div element

View File

@ -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 {

View File

@ -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);

View File

@ -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) {