From f506458053940cf0005fa3617cc747d2dedfcd7b Mon Sep 17 00:00:00 2001 From: Dimitris Grammatikogiannis Date: Mon, 24 Oct 2016 14:20:35 +0300 Subject: [PATCH] comments, console.log() --- .../js/extensionupdatecheck.js | 6 ------ .../js/extensionupdatecheck.min.js | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/media/plg_quickicon_extensionupdate/js/extensionupdatecheck.js b/media/plg_quickicon_extensionupdate/js/extensionupdatecheck.js index 487b042fcc135..7f0842b40d64b 100644 --- a/media/plg_quickicon_extensionupdate/js/extensionupdatecheck.js +++ b/media/plg_quickicon_extensionupdate/js/extensionupdatecheck.js @@ -31,13 +31,7 @@ if (updateInfoList.length === 0) { /** No updates **/ link.innerHTML = Joomla.JText._('PLG_QUICKICON_EXTENSIONUPDATE_UPTODATE'); - console.log('no update'); - console.log(Joomla.JText._('PLG_QUICKICON_EXTENSIONUPDATE_UPTODATE')); } else { -// Testing replace #30 if (updateInfoList.length === 1) { -// And uncomment next line -// updateInfoList = ['r', '3'] - var messages = { "message": [ Joomla.JText._('PLG_QUICKICON_EXTENSIONUPDATE_UPDATEFOUND_MESSAGE').replace("%s", updateInfoList.length) diff --git a/media/plg_quickicon_extensionupdate/js/extensionupdatecheck.min.js b/media/plg_quickicon_extensionupdate/js/extensionupdatecheck.min.js index 861f285813107..4de41207e445a 100644 --- a/media/plg_quickicon_extensionupdate/js/extensionupdatecheck.min.js +++ b/media/plg_quickicon_extensionupdate/js/extensionupdatecheck.min.js @@ -1 +1 @@ -!function(){"use strict";var a=function(){if(Joomla.getOptions("js-extensions-update")){var a=Joomla.getOptions("js-extensions-update");Joomla.request({url:a.ajaxUrl+"&eid=0&skip=700",method:"GET",data:"",perform:!0,onSuccess:function(b,c){var d=document.getElementById("plg_quickicon_extensionupdate").querySelector("span.j-links-link"),e=JSON.parse(b);if(e instanceof Array)if(0===e.length)d.innerHTML=Joomla.JText._("PLG_QUICKICON_EXTENSIONUPDATE_UPTODATE"),console.log("no update"),console.log(Joomla.JText._("PLG_QUICKICON_EXTENSIONUPDATE_UPTODATE"));else{var f={message:[Joomla.JText._("PLG_QUICKICON_EXTENSIONUPDATE_UPDATEFOUND_MESSAGE").replace("%s",e.length)+'"],error:["info"]};Joomla.renderMessages(f),window.scrollTo(0,0),d.innerHTML=Joomla.JText._("PLG_QUICKICON_EXTENSIONUPDATE_UPDATEFOUND").replace("%s",e.length)}else d.innerHTML=Joomla.JText._("PLG_QUICKICON_EXTENSIONUPDATE_ERROR")},onError:function(a){document.getElementById("plg_quickicon_extensionupdate").querySelector("span.j-links-link").innerHTML=Joomla.JText._("PLG_QUICKICON_EXTENSIONUPDATE_ERROR")}})}};document.addEventListener("DOMContentLoaded",function(){a()})}(); \ No newline at end of file +!function(){"use strict";var a=function(){if(Joomla.getOptions("js-extensions-update")){var a=Joomla.getOptions("js-extensions-update");Joomla.request({url:a.ajaxUrl+"&eid=0&skip=700",method:"GET",data:"",perform:!0,onSuccess:function(b,c){var d=document.getElementById("plg_quickicon_extensionupdate").querySelector("span.j-links-link"),e=JSON.parse(b);if(e instanceof Array)if(0===e.length)d.innerHTML=Joomla.JText._("PLG_QUICKICON_EXTENSIONUPDATE_UPTODATE");else{var f={message:[Joomla.JText._("PLG_QUICKICON_EXTENSIONUPDATE_UPDATEFOUND_MESSAGE").replace("%s",e.length)+'"],error:["info"]};Joomla.renderMessages(f),window.scrollTo(0,0),d.innerHTML=Joomla.JText._("PLG_QUICKICON_EXTENSIONUPDATE_UPDATEFOUND").replace("%s",e.length)}else d.innerHTML=Joomla.JText._("PLG_QUICKICON_EXTENSIONUPDATE_ERROR")},onError:function(a){document.getElementById("plg_quickicon_extensionupdate").querySelector("span.j-links-link").innerHTML=Joomla.JText._("PLG_QUICKICON_EXTENSIONUPDATE_ERROR")}})}};document.addEventListener("DOMContentLoaded",function(){a()})}(); \ No newline at end of file