You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rave.apache.org by mf...@apache.org on 2012/06/26 19:55:45 UTC
svn commit: r1354135 - in /rave/branches/model_interfaces: ./
rave-portal-resources/src/main/webapp/static/css/rave-css.less
rave-portal-resources/src/main/webapp/static/script/rave.js
rave-portal-resources/src/main/webapp/static/script/rave_opensocial.js
Author: mfranklin
Date: Tue Jun 26 17:55:44 2012
New Revision: 1354135
URL: http://svn.apache.org/viewvc?rev=1354135&view=rev
Log:
merged changes from trunk into branch (RAVE-625)
Modified:
rave/branches/model_interfaces/ (props changed)
rave/branches/model_interfaces/rave-portal-resources/src/main/webapp/static/css/rave-css.less
rave/branches/model_interfaces/rave-portal-resources/src/main/webapp/static/script/rave.js
rave/branches/model_interfaces/rave-portal-resources/src/main/webapp/static/script/rave_opensocial.js
Propchange: rave/branches/model_interfaces/
------------------------------------------------------------------------------
Merged /rave/trunk:r1352301-1354134
Modified: rave/branches/model_interfaces/rave-portal-resources/src/main/webapp/static/css/rave-css.less
URL: http://svn.apache.org/viewvc/rave/branches/model_interfaces/rave-portal-resources/src/main/webapp/static/css/rave-css.less?rev=1354135&r1=1354134&r2=1354135&view=diff
==============================================================================
--- rave/branches/model_interfaces/rave-portal-resources/src/main/webapp/static/css/rave-css.less (original)
+++ rave/branches/model_interfaces/rave-portal-resources/src/main/webapp/static/css/rave-css.less Tue Jun 26 17:55:44 2012
@@ -77,15 +77,31 @@
top: 51px;
}
+.canvas-overlay{
+ position: absolute;
+ left:0;
+ margin-top: -20px;
+ width: 100%;
+ z-index:10;
+ opacity:0.8;
+ background: #fff;
+}
.widget-wrapper-canvas {
position: absolute;
- z-index: 1000;
- left: 0.25%;
- top: 72px;
- width: 99.5%;
- height: 100%;
+ z-index: 999;
+ left: 1.25%;
+ top: 50px;
+ width: 97.5%;
+ /*height: 100%;*/
+ margin-bottom: 20px;
opacity: 1;
vertical-align: top;
+ border: 1px solid #cfcfcf;
+ .border-radius(5px);
+ /*using prefixes for browser specific styles*/
+ box-shadow: 1px 1px 3px rgba(0,0,0,.25);
+ -webkit-box-shadow: 1px 1px 5px rgba(0,0,0,.25);
+ -moz-box-shadow: 2px 2px 2px rgba(0,0,0,.25);
}
.widget-wrapper {
Modified: rave/branches/model_interfaces/rave-portal-resources/src/main/webapp/static/script/rave.js
URL: http://svn.apache.org/viewvc/rave/branches/model_interfaces/rave-portal-resources/src/main/webapp/static/script/rave.js?rev=1354135&r1=1354134&r2=1354135&view=diff
==============================================================================
--- rave/branches/model_interfaces/rave-portal-resources/src/main/webapp/static/script/rave.js (original)
+++ rave/branches/model_interfaces/rave-portal-resources/src/main/webapp/static/script/rave.js Tue Jun 26 17:55:44 2012
@@ -399,7 +399,7 @@ var rave = rave || (function () {
function minimizeAction(args, view_params) {
var regionWidgetId = args.data.id;
- $(".dnd-overlay").remove();
+ $(".dnd-overlay, .canvas-overlay").remove();
getNonLockedRegions().sortable("option", "disabled", false);
// display the widget in normal view
$("#widget-" + regionWidgetId + "-wrapper").removeClass("widget-wrapper-canvas").addClass("widget-wrapper");
@@ -733,8 +733,21 @@ var rave = rave || (function () {
jqElm.prepend(overlay[0]);
}
+ function addCanvasOverlay(jqElm){
+ var overlay = $('<div></div>');
+ var styleMap = {
+ height:$('body').height()-40
+ };
+
+ // style it and give it the marker class
+ $(overlay).css(styleMap);
+ $(overlay).addClass("canvas-overlay");
+ // add it to the dom before the iframe so it covers it
+ jqElm.prepend(overlay[0]);
+ }
+
function openFullScreenOverlay(regionWidgetId) {
- addOverlay($("#pageContent"));
+ addCanvasOverlay($("#pageContent"));
getNonLockedRegions().sortable("option", "disabled", true);
$("#widget-" + regionWidgetId + "-wrapper").removeClass("widget-wrapper").addClass("widget-wrapper-canvas");
// hide the widget menu
Modified: rave/branches/model_interfaces/rave-portal-resources/src/main/webapp/static/script/rave_opensocial.js
URL: http://svn.apache.org/viewvc/rave/branches/model_interfaces/rave-portal-resources/src/main/webapp/static/script/rave_opensocial.js?rev=1354135&r1=1354134&r2=1354135&view=diff
==============================================================================
--- rave/branches/model_interfaces/rave-portal-resources/src/main/webapp/static/script/rave_opensocial.js (original)
+++ rave/branches/model_interfaces/rave-portal-resources/src/main/webapp/static/script/rave_opensocial.js Tue Jun 26 17:55:44 2012
@@ -178,6 +178,10 @@ rave.opensocial = rave.opensocial || (fu
// display the gadget in custom edit prefs view
renderGadgetView(rave.opensocial.VIEW_NAMES.PREFERENCES, this);
};
+ gadget.renderView = function(viewName) {
+ // render the gadget in the view supplied. This can be used to render a gadget in any custom-defined view
+ renderGadgetView(viewName, this);
+ };
// if the gadget has prefences to edit, or has the Preferences view
// enable the edit prefs menu item