diff --git a/portal-web/docroot/html/portlet/wiki/select_version.jsp b/portal-web/docroot/html/portlet/wiki/select_version.jsp
index 2a67249e6c17959d19e10859915949e540c8a1d9..d6a3e484388d7b786908856c83d08bb1579edb72 100644
--- a/portal-web/docroot/html/portlet/wiki/select_version.jsp
+++ b/portal-web/docroot/html/portlet/wiki/select_version.jsp
@@ -87,17 +87,5 @@ portletURL.setParameter("sourceVersion", String.valueOf(sourceVersion));
 </aui:form>
 
 <aui:script use="aui-base">
-	var Util = Liferay.Util;
-
-	A.one('#<portlet:namespace />selectVersionFm').delegate(
-		'click',
-		function(event) {
-			var result = Util.getAttributes(event.currentTarget, 'data-');
-
-			Util.getOpener().Liferay.fire('<%= HtmlUtil.escapeJS(eventName) %>', result);
-
-			Util.getWindow().hide();
-		},
-		'.selector-button'
-	);
+	Liferay.Util.selectEntityHandler('#<portlet:namespace />selectVersionFm', '<%= HtmlUtil.escapeJS(eventName) %>');
 </aui:script>
\ No newline at end of file
