diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
index 716dace..910eafe 100644
--- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
+++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
@@ -3440,18 +3440,38 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
var curPosture = localStorage.getItem('currentViewTitle');
if (document.getElementById('jsPanel-1')) { //document.getElementsByClassName('ppImagePanel')) {
- setTimeout(function () {
- document.getElementById('imgPortrait').setAttribute('src', dataURL);
- document.getElementById('imgLandscape').setAttribute('src', dataURL);
- document.getElementById('spnModulePor').innerHTML = curModule;
- document.getElementById('spnBodyViewTitlePor').innerHTML = curPosture;
- document.getElementById('spnModuleLan').innerHTML = curModule;
- document.getElementById('spnBodyViewTitleLan').innerHTML = curPosture;
- if ($('#printcontainer').length > 0) {
- $("#printcontainer").css('width', $(window).outerWidth());
- $("#printcontainer").css('height', $(window).outerHeight());
- }
- }, 320);
+ if (dataURL == "" || dataURL == undefined)
+ {
+
+ setTimeout(function () {
+ document.getElementById('imgPortrait').setAttribute('src', dataURL);
+ document.getElementById('imgLandscape').setAttribute('src', dataURL);
+ document.getElementById('spnModulePor').innerHTML = curModule;
+ document.getElementById('spnBodyViewTitlePor').innerHTML = curPosture;
+ document.getElementById('spnModuleLan').innerHTML = curModule;
+ document.getElementById('spnBodyViewTitleLan').innerHTML = curPosture;
+ if ($('#printcontainer').length > 0) {
+ $("#printcontainer").css('width', $(window).outerWidth());
+ $("#printcontainer").css('height', $(window).outerHeight());
+ }
+ }, 520);
+ }
+ else
+ {
+ setTimeout(function () {
+ document.getElementById('imgPortrait').setAttribute('src', dataURL);
+ document.getElementById('imgLandscape').setAttribute('src', dataURL);
+ document.getElementById('spnModulePor').innerHTML = curModule;
+ document.getElementById('spnBodyViewTitlePor').innerHTML = curPosture;
+ document.getElementById('spnModuleLan').innerHTML = curModule;
+ document.getElementById('spnBodyViewTitleLan').innerHTML = curPosture;
+ if ($('#printcontainer').length > 0) {
+ $("#printcontainer").css('width', $(window).outerWidth());
+ $("#printcontainer").css('height', $(window).outerHeight());
+ }
+ }, 320);
+ }
+
}
$('#fileMenuAnchor').addClass('disableMenuannotation');