Commit 48b03076 by vietdo

#16382 アンケートコンテンツ・試験コンテンツ

parent 82cfc9b8
...@@ -2125,8 +2125,10 @@ CONTENTVIEW.displayOverlayForSpecifyContentType = function( resourceUrl ){ ...@@ -2125,8 +2125,10 @@ CONTENTVIEW.displayOverlayForSpecifyContentType = function( resourceUrl ){
} }
CONTENTVIEW.handleForContentTypeHTML(linkUrlTmp); CONTENTVIEW.handleForContentTypeHTML(linkUrlTmp);
} }
else if(CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_Exam) { else if(CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_Exam){
CONTENTVIEW.handleForContentTypeExam(resourceUrl); CONTENTVIEW.handleForContentTypeExam(resourceUrl);
} else if(CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_Enquete){
CONTENTVIEW.handleForContentTypeEnquete(resourceUrl);
} }
if (COMMON.isTouchDevice() == true) { if (COMMON.isTouchDevice() == true) {
if (CONTENTVIEW_GENERAL.avwUserEnvObj.isAndroid()) { if (CONTENTVIEW_GENERAL.avwUserEnvObj.isAndroid()) {
...@@ -2371,6 +2373,30 @@ CONTENTVIEW.handleForContentTypeExam = function(resourceUrl){ ...@@ -2371,6 +2373,30 @@ CONTENTVIEW.handleForContentTypeExam = function(resourceUrl){
$container.show(); $container.show();
}; };
CONTENTVIEW.handleForContentTypeEnquete = function(resourceUrl){
//Create Dialog overlay
var $container = $('#dialog');
$container.html('');
$container.css('left','0%');
$container.css('width','100%');
$container.css('background-color','white');
//START TRB00076 - EDITOR : Long - Date : 09/24/2013 - Summary : Fix for scrolling on ipad
if(CONTENTVIEW_GENERAL.avwUserEnvObj.isIos()){
$container.html('<iframe src="'+ resourceUrl +'" style="position: absolute; width: 100%;"></iframe>');
$container.css('overflow', 'scroll');
$container.css('-webkit-overflow-scrolling', 'touch');
}
else{
$container.html('<iframe src="'+ resourceUrl +'" style="position: absolute; width: 100%; height: 100%; "> </iframe>');
$container.css('overflow', 'hidden');
}
//END TRB00076 - EDITOR : Long - Date : 09/24/2013 - Summary : Fix for scrolling on ipad
$container.show();
};
//Check type of content //Check type of content
CONTENTVIEW.isMediaAndHTMLContent = function(){ CONTENTVIEW.isMediaAndHTMLContent = function(){
if(CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_Music || CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_Video || if(CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_Music || CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_Video ||
...@@ -5692,7 +5718,6 @@ CONTENTVIEW.ready = function(initContentId){ ...@@ -5692,7 +5718,6 @@ CONTENTVIEW.ready = function(initContentId){
getType: 1, getType: 1,
isStreaming: ClientData.isStreamingMode() isStreaming: ClientData.isStreamingMode()
}; };
AVWEB.avwCmsApi(ClientData.userInfo_accountPath(), AVWEB.avwCmsApi(ClientData.userInfo_accountPath(),
"webGetContent", "webGetContent",
"GET", "GET",
...@@ -5754,6 +5779,7 @@ CONTENTVIEW.ready = function(initContentId){ ...@@ -5754,6 +5779,7 @@ CONTENTVIEW.ready = function(initContentId){
else{ else{
if(CONTENTVIEW_GENERAL.contentType == "exam" || CONTENTVIEW_GENERAL.contentType == "enquete") { if(CONTENTVIEW_GENERAL.contentType == "exam" || CONTENTVIEW_GENERAL.contentType == "enquete") {
var isShowResult, isSendResult; var isShowResult, isSendResult;
if(CONTENTVIEW_GENERAL.contentType == "exam") {
if(data.contentData.showResult == 1){ if(data.contentData.showResult == 1){
isShowResult = true; isShowResult = true;
} else { } else {
...@@ -5764,8 +5790,14 @@ CONTENTVIEW.ready = function(initContentId){ ...@@ -5764,8 +5790,14 @@ CONTENTVIEW.ready = function(initContentId){
} else { } else {
isSendResult = false; isSendResult = false;
} }
}
var contentId = data.contentData.contentId; var contentId = data.contentData.contentId;
var url = CONTENTVIEW_GETDATA.getURLPageImage("webEnqueteReply/init") + "&sid=" + CONTENTVIEW.getSessionId()+"&contentId="+contentId+"&isShowResult="+isShowResult+"&isSendResult="+isSendResult; var url;
if(CONTENTVIEW_GENERAL.contentType == "exam"){
url = CONTENTVIEW_GETDATA.getURLPageImage("webEnqueteReply/init") + "&abObjectId=&sid=" + CONTENTVIEW.getSessionId()+"&contentId="+contentId+"&isShowResult="+isShowResult+"&isSendResult="+isSendResult;
} else {
url = CONTENTVIEW_GETDATA.getURLPageImage("webEnqueteReply/init") + "&abObjectId=&sid=" + CONTENTVIEW.getSessionId()+"&contentId="+contentId;
}
/* init footer toolbar */ /* init footer toolbar */
$('#footer_toolbar_2').hide(); $('#footer_toolbar_2').hide();
$('#footer_toolbar_1').show(); $('#footer_toolbar_1').show();
...@@ -5809,7 +5841,7 @@ CONTENTVIEW.ready = function(initContentId){ ...@@ -5809,7 +5841,7 @@ CONTENTVIEW.ready = function(initContentId){
} }
COMMON.disable('#txtSearch', '#txtSlider'); COMMON.disable('#txtSearch', '#txtSlider');
} else { }else {
CONTENTVIEW_INITOBJECT.initPage(); CONTENTVIEW_INITOBJECT.initPage();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment