Created
February 23, 2015 14:23
-
-
Save nkgokul/927a9e152ec6524c65bf to your computer and use it in GitHub Desktop.
Export the Module Upgrade status(as a CSV file) when using Garland as admin theme
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var finalString = ''; | |
jQuery(".upgrade-status .project").each(function(){; | |
var title = jQuery("span.project-title a",this).text(); | |
var moduleLink = jQuery("span.project-title a",this).attr("href"); | |
var modulecode = jQuery("span.project-title a",this).attr("href").split("/").pop(); | |
var status = jQuery("div.version-status:nth-child(1)",this).text(); | |
var release = jQuery("div.versions .version-details a",this).text(); | |
var link = jQuery("div.versions .version-details a",this).attr("href"); | |
finalString += title + ',' + status + ',' + release + ',' + link + ',' + moduleLink + ',' + modulecode+'\n'; | |
//console.log(title + ',' + status + ',' + release + ',' + link); | |
}) | |
console.log(finalString); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment