Adds close button to the preview

This commit is contained in:
Sebastiaan Janssen
2015-06-09 18:19:26 +02:00
parent 73fbe7d78c
commit 181f7c1819
2 changed files with 11 additions and 0 deletions

View File

@@ -35,6 +35,14 @@ var app = angular.module("Umbraco.canvasdesigner", ['colorpicker', 'ui.slider',
$scope.previewDevice = device;
};
/*****************************************************************************/
/* Exit Preview */
/*****************************************************************************/
$scope.exitPreview = function () {
window.top.location.href = "/umbraco/endPreview.aspx?redir=%2f" + $scope.pageId;
};
/*****************************************************************************/
/* UI designer managment */
/*****************************************************************************/

View File

@@ -34,6 +34,9 @@
<i></i>
</a>
</li>
<li ng-click="exitPreview()">
<a href="#" title="Exit Preview"><i class="icon icon-wrong"></i><span> </span></a>
</li>
</ul>
<ul class="sections" ng-class="{selected: !showDevicesPreview}" ng-if="enableCanvasdesigner > 0">