You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rave.apache.org by er...@apache.org on 2013/07/15 01:04:47 UTC
svn commit: r1503078 -
/rave/trunk/rave-portal-resources/src/main/webapp/WEB-INF/jsp/views/page.jsp
Author: erinnp
Date: Sun Jul 14 23:04:47 2013
New Revision: 1503078
URL: http://svn.apache.org/r1503078
Log:
merge fix
Modified:
rave/trunk/rave-portal-resources/src/main/webapp/WEB-INF/jsp/views/page.jsp
Modified: rave/trunk/rave-portal-resources/src/main/webapp/WEB-INF/jsp/views/page.jsp
URL: http://svn.apache.org/viewvc/rave/trunk/rave-portal-resources/src/main/webapp/WEB-INF/jsp/views/page.jsp?rev=1503078&r1=1503077&r2=1503078&view=diff
==============================================================================
--- rave/trunk/rave-portal-resources/src/main/webapp/WEB-INF/jsp/views/page.jsp (original)
+++ rave/trunk/rave-portal-resources/src/main/webapp/WEB-INF/jsp/views/page.jsp Sun Jul 14 23:04:47 2013
@@ -390,10 +390,14 @@
<portal:register-init-script location="${'AFTER_RAVE'}">
<script>
- rave.init();
- rave.RegionWidget.defaultView = 'home';
+ require(["rave", "ui", 'jquery'], function (rave, ui, $) {
+ rave.registerOnInitHandler(function () {
+ $('#acceptShareLink').click(function () {
+ ui.models.currentPage.acceptShare();
+ });
+
- $('#declineShareLink').click(function () {
+ $('#declineShareLink').click(function () {
ui.models.currentPage.declineShare();
});