? Pending

User tests: Successful: Unsuccessful:

avatar C-Lodder
C-Lodder
4 Jan 2018

Summary of Changes

  • Rewrite the stats script in vanilla JS
  • The the proper CE event to close alerts
  • Throw an alerts when unable to connect to developer.joomla.org

Testing Instructions

  • Fresh installation or reset the Stats plugin to that you get a nice big blue alert.
  • Click the link inside the text to display which stats will be submitted.
  • Click on any of the 3 buttons
avatar C-Lodder C-Lodder - open - 4 Jan 2018
avatar C-Lodder C-Lodder - change - 4 Jan 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 4 Jan 2018
Category JavaScript Front End Plugins
avatar C-Lodder C-Lodder - change - 4 Jan 2018
Labels Added: ?
avatar C-Lodder
C-Lodder - comment - 4 Jan 2018

@dgt41 done

avatar brianteeman
brianteeman - comment - 4 Jan 2018

You removed the header stating that the js is for and its version - was that deliberate?

avatar C-Lodder
C-Lodder - comment - 4 Jan 2018

@brianteeman deliberate. I dont see that comment block in any other JS file so keep them consistent

avatar brianteeman
brianteeman - comment - 4 Jan 2018

it is present in 36/53 js files in j4 - my view is that it should be present in them all

avatar dgt41
dgt41 - comment - 4 Jan 2018

I agree with @brianteeman
The hard part is to get the since in the old scripts that don't have it

avatar mbabker
mbabker - comment - 4 Jan 2018

The hard part is to get the since in the old scripts that don't have it

Don't worry about them. Just put a description in the doc block and be done with it. There are already plenty of PHP endpoints with bad tags, unless you really want to waste a Saturday chasing Git/SVN history leave it be.

avatar brianteeman
brianteeman - comment - 4 Jan 2018

I was only suggesting keeping the headers not searching for old ones ;)

avatar wilsonge wilsonge - change - 1 Feb 2018
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-02-01 22:40:53
Closed_By wilsonge
avatar wilsonge wilsonge - close - 1 Feb 2018
avatar wilsonge wilsonge - merge - 1 Feb 2018

Add a Comment

Login with GitHub to post a comment