-
-
Save SA-JackMax/6220a3b5b5d57cf706b975ce87c8a0dd 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