Created
March 18, 2016 09:34
-
-
Save loftux/2bf501111dc8a87a8c40 to your computer and use it in GitHub Desktop.
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
// Delete thumbnails if exists. To be used in Alfresco javascript console. Starts from selected space | |
recurse(space, function(node) { | |
var doclib = node.getThumbnail('doclib'); | |
var webpreview = node.getThumbnail('webpreview'); | |
var webpreview2 = node.getThumbnail('web-preview'); | |
var imgpreview = node.getThumbnail('imgpreview'); | |
var pdf = node.getThumbnail('pdf'); | |
if(doclib){ | |
doclib.remove(); | |
} | |
if(webpreview){ | |
webpreview.remove(); | |
} | |
if(webpreview2){ | |
webpreview2.remove(); | |
} | |
if(imgpreview){ | |
imgpreview.remove(); | |
} | |
if(pdf){ | |
pdf.remove(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment