This avoids an issue with ng-if creating a separate
scope.
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
<button type="button" class="btn btn-default btn-xs" ng-show="allowEscape && !showIframe" ng-click="restoreEmbed()">[% l('Re-embed') %]</button>
<!-- height is calculated at render time -->
<iframe
- ng-if="showIframe"
+ ng-show="showIframe"
ng-attr-style="{{ autoresize ? undefined : 'height:' + height + 'px' }}"
src="{{url}}">
</iframe>
}
$scope.restoreEmbed = function() {
$scope.showIframe = true;
+ $scope.reload();
}
}]
}