Index: lams_admin/conf/language/lams/ApplicationResources.properties =================================================================== RCS file: /usr/local/cvsroot/lams_admin/conf/language/lams/ApplicationResources.properties,v diff -u -r1.89 -r1.90 --- lams_admin/conf/language/lams/ApplicationResources.properties 4 Jul 2013 21:32:46 -0000 1.89 +++ lams_admin/conf/language/lams/ApplicationResources.properties 26 Jul 2013 13:16:15 -0000 1.90 @@ -496,6 +496,6 @@ error.context.exists =This URL context is taken config.learner.collapsible.progress.panel =Set collapsible panel for progress bar in Learner config.authoring.suffix =Add unique suffix when importing Learning Designs +config.authoring.single.activity =Allow creating single activity lessons - #======= End labels: Exported 490 labels for en AU ===== Index: lams_build/lib/lams/lams.jar =================================================================== RCS file: /usr/local/cvsroot/lams_build/lib/lams/lams.jar,v diff -u -r1.375 -r1.376 Binary files differ Index: lams_central/conf/language/lams/ApplicationResources.properties =================================================================== RCS file: /usr/local/cvsroot/lams_central/conf/language/lams/ApplicationResources.properties,v diff -u -r1.119 -r1.120 --- lams_central/conf/language/lams/ApplicationResources.properties 4 Jul 2013 21:27:57 -0000 1.119 +++ lams_central/conf/language/lams/ApplicationResources.properties 26 Jul 2013 13:17:00 -0000 1.120 @@ -282,6 +282,10 @@ error.finish.date.passed =The time allocated for this lesson has expired. You cannot access it anymore. Contact the instructor for assistance. index.emailnotifications =Notifications index.emailnotifications.tooltip =Email notifications +index.single.activity.lesson.title =Add single activity lesson +index.single.activity.lesson.prompt =Please enter a title for the lesson +index.single.activity.lesson.prompt.blank =You must enter a title. If you do not want to save the lesson, click Cancel +index.single.activity.lesson.desc =or one-click activity: label.portrait.please.wait =Please wait label.portrait.take.snapshot.from.webcamera =Take portrait using Webcam label.portrait.configure =Configure Index: lams_central/src/java/org/lamsfoundation/lams/web/DisplayGroupAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_central/src/java/org/lamsfoundation/lams/web/DisplayGroupAction.java,v diff -u -r1.35 -r1.36 --- lams_central/src/java/org/lamsfoundation/lams/web/DisplayGroupAction.java 23 Jul 2013 17:52:49 -0000 1.35 +++ lams_central/src/java/org/lamsfoundation/lams/web/DisplayGroupAction.java 26 Jul 2013 13:16:59 -0000 1.36 @@ -130,6 +130,8 @@ request.setAttribute("tools", getAuthoringService().getAllToolDTOs()); request.setAttribute("orgBean", iob); request.setAttribute("allowSorting", allowSorting); + request.setAttribute("singleActivityLessonsEnabled", + Configuration.get(ConfigurationKeys.SINGLE_ACTIVITY_LESSONS_ENABLED)); } return mapping.findForward(forwardPath); Index: lams_central/web/main2.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/Attic/main2.jsp,v diff -u -r1.2 -r1.3 --- lams_central/web/main2.jsp 15 Jul 2013 11:13:17 -0000 1.2 +++ lams_central/web/main2.jsp 26 Jul 2013 13:17:00 -0000 1.3 @@ -26,100 +26,13 @@ + - + + @@ -136,11 +49,14 @@ REMOVE_LESSON_CONFIRM1 : '', REMOVE_LESSON_CONFIRM2 : '', SORTING_ENABLE : '', - SORTING_DISABLE : '' + SORTING_DISABLE : '', + SINGLE_ACTIVITY_LESSON_TITLE : '', + SINGLE_ACTIVITY_LESSON_PROMPT : '', + SINGLE_ACTIVITY_LESSON_PROMTP_BLANK : '' } var tabName = '${tab}'; - var stateId = tabName == 'profile' ? 3 : 1; + var stateId = tabName == 'profile' ? 3 : 1; $(document).ready(function(){ initMainPage(); @@ -215,12 +131,12 @@
- - - - - - + + + + + +
@@ -254,7 +170,7 @@ @@ -274,16 +190,16 @@
    - -
  • - + +
  • +
- -
+ +
@@ -331,6 +247,9 @@
+
+ +
Index: lams_central/web/css/index.css =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/css/index.css,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lams_central/web/css/index.css 26 Jul 2013 13:16:59 -0000 1.1 @@ -0,0 +1,130 @@ +#content-main { + padding: 10px; +} + +td#messageCell { + width: 80%; +} + +#message { + padding: 8px 10px 10px 40px; + text-align: left; + background: url('../images/css/edit.gif') no-repeat #d8e4f1 10px 8px; + border: 1px solid #3c78b5; +} + +#linksCell div { + margin: 0 5px 15px 0; +} + +.dialogContainer { + display: none; +} + +.dialogContainer iframe { + width: 100%; + height: 100%; + border: none; +} + +#mainContentTable td { + vertical-align: top; + padding: 0; +} + +#orgTabs { + padding-right: 10px; +} + +#orgTabs td { + padding: 0; + vertical-align: top; + font-family: verdana, arial, helvetica, sans-serif; +} + +#orgTabs li.orgTabsHeader { + width: 150px; + white-space: normal; +} + +#orgTabsPanelCell { + width: 100%; + border-left: none; +} + +#content-main .row { + overflow: visible; +} + +#content-main .row .split-menu-button { + margin-top: 6px; +} + +#content-main .row .split-menu-button>ul { + margin: 0; +} + +#content-main .row .split-menu-button ul li ul li { + padding-top: 0; + padding-bottom: 0; +} + +#content-main .row .split-menu-button a.add-lesson-button { + border-top: none; + border-left: none; + padding-top: 0; +} + +#content-main .row .split-menu-button a.add-lesson-button span { + display: block; + float: left; + padding-top: 4px; +} + +#content-main .row .split-menu-button a.add-lesson-button img { + display: block; + float: right; + padding-top: 3px; +} + +#content-main .row .split-menu-button ul.button-menu span { + padding-left: 5px; +} + +#content-main div.j-course-contents { + clear: both; +} + +.ui-tabs-vertical { + border: none; +} + +.ui-tabs-vertical .ui-tabs-nav { + background: none; + border: none; +} + +.ui-tabs-vertical .ui-tabs-nav li { + width: 100%; + margin-bottom: 7px; + border: 1px solid #C5DBEC; + padding: 3px 0 3px 0 !important; +} + +.ui-tabs-vertical .ui-tabs-nav li.ui-tabs-active { + border: 1px solid #79B7E7; + border-right-width: 0px; + margin-bottom: 7px; + padding: 3px 0 3px 0 !important; +} + +.ui-tabs-vertical .ui-tabs-nav li a { + display: block; + float: none; + border: none; +} + +td#actionAccord { + width: 20%; + padding-top: 1px; +} \ No newline at end of file Index: lams_central/web/includes/javascript/groupDisplay.js =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/groupDisplay.js,v diff -u -r1.21 -r1.22 --- lams_central/web/includes/javascript/groupDisplay.js 23 Jul 2013 17:52:49 -0000 1.21 +++ lams_central/web/includes/javascript/groupDisplay.js 26 Jul 2013 13:16:59 -0000 1.22 @@ -428,9 +428,9 @@ if (save) { var ldTitle = ''; while (ldTitle == '') { - ldTitle = prompt('Please enter a title for the lesson'); + ldTitle = prompt(LABELS.SINGLE_ACTIVITY_LESSON_PROMPT); if (ldTitle == '') { - alert('You must enter a title. If you do not want to save the lesson, click Cancel'); + alert(LABELS.SINGLE_ACTIVITY_LESSON_PROMPT_BLANK); } } Index: lams_common/src/java/org/lamsfoundation/lams/dbupdates/patch02040017.sql =================================================================== RCS file: /usr/local/cvsroot/lams_common/src/java/org/lamsfoundation/lams/dbupdates/patch02040017.sql,v diff -u Binary files differ Index: lams_common/src/java/org/lamsfoundation/lams/util/ConfigurationKeys.java =================================================================== RCS file: /usr/local/cvsroot/lams_common/src/java/org/lamsfoundation/lams/util/ConfigurationKeys.java,v diff -u -r1.48 -r1.49 --- lams_common/src/java/org/lamsfoundation/lams/util/ConfigurationKeys.java 28 Jun 2012 10:45:49 -0000 1.48 +++ lams_common/src/java/org/lamsfoundation/lams/util/ConfigurationKeys.java 26 Jul 2013 13:16:53 -0000 1.49 @@ -284,4 +284,7 @@ // CNG-26 Add to lams_configuration and set to false // if you don't want imported LD to have __ appended public static String SUFFIX_IMPORTED_LD = "SuffixImportedLD"; + + // LDEV-3070 Allow single activity lesson creation on redesigned index page + public static String SINGLE_ACTIVITY_LESSONS_ENABLED = "SingleActivityLessonsEnabled"; } \ No newline at end of file Index: lams_tool_assessment/web/pages/authoring/parts/overallfeedbacklist.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_assessment/web/pages/authoring/parts/overallfeedbacklist.jsp,v diff -u -r1.5 -r1.6 --- lams_tool_assessment/web/pages/authoring/parts/overallfeedbacklist.jsp 25 Jul 2013 05:55:38 -0000 1.5 +++ lams_tool_assessment/web/pages/authoring/parts/overallfeedbacklist.jsp 26 Jul 2013 13:16:55 -0000 1.6 @@ -102,7 +102,7 @@ var obj = window.document.getElementById('advancedInputArea'); if (!obj && window.parent) { obj = window.parent.document.getElementById('advancedInputArea'); - } + } if (!obj) { obj = window.top.document.getElementById('advancedInputArea'); } Index: lams_tool_chat/web/pages/authoring/addCondition.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_chat/web/pages/authoring/addCondition.jsp,v diff -u -r1.3 -r1.4 --- lams_tool_chat/web/pages/authoring/addCondition.jsp 23 Jul 2013 17:54:22 -0000 1.3 +++ lams_tool_chat/web/pages/authoring/addCondition.jsp 26 Jul 2013 13:17:05 -0000 1.4 @@ -15,6 +15,20 @@ + + @@ -38,7 +52,7 @@ - Index: lams_tool_chat/web/pages/authoring/conditionList.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_chat/web/pages/authoring/conditionList.jsp,v diff -u -r1.2 -r1.3 --- lams_tool_chat/web/pages/authoring/conditionList.jsp 23 Jul 2013 17:54:22 -0000 1.2 +++ lams_tool_chat/web/pages/authoring/conditionList.jsp 26 Jul 2013 13:17:05 -0000 1.3 @@ -82,10 +82,15 @@ <%-- This script will works when a new resoruce Condition submit in order to refresh "TaskList List" panel. --%> Index: lams_tool_daco/web/includes/javascript/dacoAuthoring.js =================================================================== RCS file: /usr/local/cvsroot/lams_tool_daco/web/includes/javascript/dacoAuthoring.js,v diff -u -r1.3 -r1.4 --- lams_tool_daco/web/includes/javascript/dacoAuthoring.js 23 Jul 2013 17:53:17 -0000 1.3 +++ lams_tool_daco/web/includes/javascript/dacoAuthoring.js 26 Jul 2013 13:16:40 -0000 1.4 @@ -15,11 +15,14 @@ //Resizes the question input area so it is visible on the screen. function resizeQuestionInputArea (){ - var questionInputArea = window.document.getElementById('questionInputArea'); - if (!questionInputArea) { - questionInputArea = window.top.document.getElementById('questionInputArea'); + var obj = window.document.getElementById('questionInputArea'); + if (!obj && window.parent) { + obj = window.parent.document.getElementById('questionInputArea'); + } + if (!obj) { + obj = window.top.document.getElementById('questionInputArea'); } - questionInputArea.style.height=questionInputArea.contentWindow.document.body.scrollHeight+10+'px'; + obj.style.height=obj.contentWindow.document.body.scrollHeight + 10 + 'px'; } //Checks if the additional options area has all the default values, so it may stay hidden Index: lams_tool_daco/web/pages/authoring/parts/questionlist.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_daco/web/pages/authoring/parts/questionlist.jsp,v diff -u -r1.7 -r1.8 --- lams_tool_daco/web/pages/authoring/parts/questionlist.jsp 25 Jul 2013 05:55:09 -0000 1.7 +++ lams_tool_daco/web/pages/authoring/parts/questionlist.jsp 26 Jul 2013 13:16:40 -0000 1.8 @@ -68,10 +68,15 @@ <%-- This script will work when a new question is submited in order to refresh "Question List" panel. --%> \ No newline at end of file Index: lams_tool_eadventure/web/includes/javascript/eadventureitem.js =================================================================== RCS file: /usr/local/cvsroot/lams_tool_eadventure/web/includes/javascript/eadventureitem.js,v diff -u -r1.4 -r1.5 --- lams_tool_eadventure/web/includes/javascript/eadventureitem.js 23 Jul 2013 17:54:17 -0000 1.4 +++ lams_tool_eadventure/web/includes/javascript/eadventureitem.js 26 Jul 2013 13:16:51 -0000 1.5 @@ -42,7 +42,10 @@ } function adjustInstructionsDisplayAreaHeight(adjustAmount){ var obj = window.document.getElementById('reourceInputArea'); - if (!obj) { + if (!obj && window.parent) { + obj = window.parent.document.getElementById('reourceInputArea'); + } + if (!obj) { obj = window.top.document.getElementById('reourceInputArea'); } obj.style.height=obj.contentWindow.document.body.scrollHeight+adjustAmount+'px'; @@ -93,11 +96,14 @@ } function cancelEadventureGame(){ - if (window.hideMessage) { - window.hideMessage(); - window.showGame(); + var win = null; + if (window.hideMessage) { + win = window; + } else if (window.parent && window.parent.hideMessage) { + win = window.parent; } else { - window.top.hideMessage(); - window.top.showGame(); + win = window.top; } + win.hideMessage(); + win.showGame(); } \ No newline at end of file Index: lams_tool_eadventure/web/pages/authoring/authoring.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_eadventure/web/pages/authoring/authoring.jsp,v diff -u -r1.5 -r1.6 --- lams_tool_eadventure/web/pages/authoring/authoring.jsp 23 Jul 2013 17:54:18 -0000 1.5 +++ lams_tool_eadventure/web/pages/authoring/authoring.jsp 26 Jul 2013 13:16:51 -0000 1.6 @@ -45,12 +45,15 @@ } function hideShowGame(){ - var area= window.document.getElementById("addGame"); - if (!area) { - area = window.top.document.getElementById("addGame"); + var obj = window.document.getElementById('addGame'); + if (!obj && window.parent) { + obj = window.parent.document.getElementById('addGame'); + } + if (!obj) { + obj = window.top.document.getElementById('addGame'); } - if(area != null){ - area.style.display="none"; + if (obj){ + obj.style.display="none"; } } Index: lams_tool_eadventure/web/pages/authoring/parts/addcondition.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_eadventure/web/pages/authoring/parts/addcondition.jsp,v diff -u -r1.4 -r1.5 --- lams_tool_eadventure/web/pages/authoring/parts/addcondition.jsp 23 Jul 2013 17:54:17 -0000 1.4 +++ lams_tool_eadventure/web/pages/authoring/parts/addcondition.jsp 26 Jul 2013 13:16:51 -0000 1.5 @@ -7,7 +7,19 @@ <%@ include file="/common/header.jsp"%> - + @@ -41,7 +53,7 @@ - Index: lams_tool_eadventure/web/pages/authoring/parts/conditionlist.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_eadventure/web/pages/authoring/parts/conditionlist.jsp,v diff -u -r1.4 -r1.5 --- lams_tool_eadventure/web/pages/authoring/parts/conditionlist.jsp 23 Jul 2013 17:54:17 -0000 1.4 +++ lams_tool_eadventure/web/pages/authoring/parts/conditionlist.jsp 26 Jul 2013 13:16:51 -0000 1.5 @@ -83,10 +83,15 @@ Index: lams_tool_eadventure/web/pages/authoring/parts/editexpression-vieja.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_eadventure/web/pages/authoring/parts/editexpression-vieja.jsp,v diff -u -r1.4 -r1.5 --- lams_tool_eadventure/web/pages/authoring/parts/editexpression-vieja.jsp 23 Jul 2013 17:54:17 -0000 1.4 +++ lams_tool_eadventure/web/pages/authoring/parts/editexpression-vieja.jsp 26 Jul 2013 13:16:51 -0000 1.5 @@ -7,70 +7,26 @@ <%@ include file="/common/header.jsp"%> - + <%@ include file="/common/messages.jsp"%> - - + -
@@ -89,7 +45,7 @@ - Index: lams_tool_eadventure/web/pages/authoring/parts/editexpression.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_eadventure/web/pages/authoring/parts/editexpression.jsp,v diff -u -r1.3 -r1.4 --- lams_tool_eadventure/web/pages/authoring/parts/editexpression.jsp 11 Dec 2011 21:30:38 -0000 1.3 +++ lams_tool_eadventure/web/pages/authoring/parts/editexpression.jsp 26 Jul 2013 13:16:50 -0000 1.4 @@ -21,8 +21,8 @@ if(area != null && option!="no-option" ){ area.src=url; } - - window.top.document.location.hash = "expressionInputArea"; + var win = window.top ? window.top : window; + win.document.location.hash = "expressionInputArea"; } function changeSecondOp(){ @@ -39,7 +39,8 @@ function submitExpression(){ var eadventureExpressionForm = document.getElementById("eadventureExpressionForm"); - window.top.document.location.hash = "conditionInputArea"; + var win = window.top ? window.top : window; + win.top.document.location.hash = "conditionInputArea"; if (eadventureExpressionForm.group!= null){ if(eadventureExpressionForm.group[0].checked){ eadventureExpressionForm.secondVarSelected.value = false; Index: lams_tool_eadventure/web/pages/authoring/parts/editgame.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_eadventure/web/pages/authoring/parts/editgame.jsp,v diff -u -r1.4 -r1.5 --- lams_tool_eadventure/web/pages/authoring/parts/editgame.jsp 23 Jul 2013 17:54:17 -0000 1.4 +++ lams_tool_eadventure/web/pages/authoring/parts/editgame.jsp 26 Jul 2013 13:16:50 -0000 1.5 @@ -18,7 +18,15 @@ <%@ include file="/common/messages.jsp"%> Index: lams_tool_eadventure/web/pages/authoring/parts/expression-vieja.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_eadventure/web/pages/authoring/parts/expression-vieja.jsp,v diff -u -r1.3 -r1.4 --- lams_tool_eadventure/web/pages/authoring/parts/expression-vieja.jsp 11 Dec 2011 21:30:38 -0000 1.3 +++ lams_tool_eadventure/web/pages/authoring/parts/expression-vieja.jsp 26 Jul 2013 13:16:50 -0000 1.4 @@ -14,11 +14,9 @@ if (elem != null) { elem.style.display="none"; } - var quitar = location.hash; - var loque = window.top.document.location.hash ; - location.hash = "expressionInputArea"; - //var soloporhacerhueco = document.getElementById("conditionInputArea"); + var win = window.top ? window.top : window; + win.document.location.hash = "expressionInputArea"; } function hideExpressionMessage(){ var area=document.getElementById("expressionInputArea"); Index: lams_tool_eadventure/web/pages/authoring/parts/expression.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_eadventure/web/pages/authoring/parts/expression.jsp,v diff -u -r1.4 -r1.5 --- lams_tool_eadventure/web/pages/authoring/parts/expression.jsp 23 Jul 2013 17:54:17 -0000 1.4 +++ lams_tool_eadventure/web/pages/authoring/parts/expression.jsp 26 Jul 2013 13:16:51 -0000 1.5 @@ -14,11 +14,10 @@ if (elem != null) { elem.style.display="none"; } - - window.top.document.location.hash = "expressionInputArea"; - - + var win = window.top ? window.top : window; + win.document.location.hash = "expressionInputArea"; } + function hideExpressionMessage(){ var area=document.getElementById("expressionInputArea"); if(area != null){ @@ -50,9 +49,12 @@ method:'get', parameters:param, onComplete: function(resp){ - var obj = window.document.getElementById("conditionInputArea"); + var obj = window.document.getElementById('conditionInputArea'); + if (!obj && window.parent) { + obj = window.parent.document.getElementById('conditionInputArea'); + } if (!obj) { - obj = window.top.document.getElementById("conditionInputArea"); + obj = window.top.document.getElementById('conditionInputArea'); } obj.contentDocument.getElementById("expressionArea").innerHTML = resp.responseText; obj.contentWindow.hideExpressionMessage(); @@ -82,9 +84,12 @@ method:'get', parameters:param, onComplete: function(resp){ - var obj = window.document.getElementById("conditionInputArea"); + var obj = window.document.getElementById('conditionInputArea'); + if (!obj && window.parent) { + obj = window.parent.document.getElementById('conditionInputArea'); + } if (!obj) { - obj = window.top.document.getElementById("conditionInputArea"); + obj = window.top.document.getElementById('conditionInputArea'); } obj.contentDocument.getElementById("expressionArea").innerHTML = resp.responseText; }, @@ -103,9 +108,12 @@ method:'get', parameters:param, onComplete: function(resp){ - var obj = window.document.getElementById("conditionInputArea"); + var obj = window.document.getElementById('conditionInputArea'); + if (!obj && window.parent) { + obj = window.parent.document.getElementById('conditionInputArea'); + } if (!obj) { - obj = window.top.document.getElementById("conditionInputArea"); + obj = window.top.document.getElementById('conditionInputArea'); } obj.contentDocument.getElementById("expressionArea").innerHTML = resp.responseText; }, Index: lams_tool_eadventure/web/pages/authoring/parts/expressionlist.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_eadventure/web/pages/authoring/parts/expressionlist.jsp,v diff -u -r1.4 -r1.5 --- lams_tool_eadventure/web/pages/authoring/parts/expressionlist.jsp 23 Jul 2013 17:54:18 -0000 1.4 +++ lams_tool_eadventure/web/pages/authoring/parts/expressionlist.jsp 26 Jul 2013 13:16:51 -0000 1.5 @@ -100,12 +100,14 @@ \ No newline at end of file Index: lams_tool_eadventure/web/pages/authoring/parts/gamearea.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_eadventure/web/pages/authoring/parts/gamearea.jsp,v diff -u -r1.4 -r1.5 --- lams_tool_eadventure/web/pages/authoring/parts/gamearea.jsp 23 Jul 2013 17:54:17 -0000 1.4 +++ lams_tool_eadventure/web/pages/authoring/parts/gamearea.jsp 26 Jul 2013 13:16:51 -0000 1.5 @@ -8,7 +8,15 @@ @@ -18,7 +26,15 @@ @@ -44,13 +60,16 @@

');" class="button-add-item"> @@ -61,11 +80,17 @@ \ No newline at end of file Index: lams_tool_eadventure/web/pages/authoring/parts/instructions.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_eadventure/web/pages/authoring/parts/Attic/instructions.jsp,v diff -u -r1.4 -r1.5 --- lams_tool_eadventure/web/pages/authoring/parts/instructions.jsp 23 Jul 2013 17:54:17 -0000 1.4 +++ lams_tool_eadventure/web/pages/authoring/parts/instructions.jsp 26 Jul 2013 13:16:50 -0000 1.5 @@ -77,7 +77,10 @@ Index: lams_tool_forum/web/jsps/authoring/message/topiclist.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/web/jsps/authoring/message/topiclist.jsp,v diff -u -r1.13 -r1.14 --- lams_tool_forum/web/jsps/authoring/message/topiclist.jsp 6 Jul 2012 13:06:40 -0000 1.13 +++ lams_tool_forum/web/jsps/authoring/message/topiclist.jsp 26 Jul 2013 13:16:46 -0000 1.14 @@ -65,7 +65,7 @@ <%-- This script will works when a new resoruce item submit in order to refresh "Resource List" panel. --%> Index: lams_tool_imscc/web/pages/authoring/parts/itemlist.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_imscc/web/pages/authoring/parts/itemlist.jsp,v diff -u -r1.3 -r1.4 --- lams_tool_imscc/web/pages/authoring/parts/itemlist.jsp 23 Jul 2013 17:53:46 -0000 1.3 +++ lams_tool_imscc/web/pages/authoring/parts/itemlist.jsp 26 Jul 2013 13:17:11 -0000 1.4 @@ -124,10 +124,15 @@ <%-- This script will works when a new resoruce item submit in order to refresh "CommonCartridge List" panel. --%> Index: lams_tool_lamc/web/monitoring/itemlist.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/web/monitoring/Attic/itemlist.jsp,v diff -u -r1.6 -r1.7 --- lams_tool_lamc/web/monitoring/itemlist.jsp 23 Jul 2013 17:52:31 -0000 1.6 +++ lams_tool_lamc/web/monitoring/itemlist.jsp 26 Jul 2013 13:17:03 -0000 1.7 @@ -96,11 +96,15 @@ <%-- This script will works when a new resoruce item submit in order to refresh "Resource List" panel. --%> - + win.hideMessage(); + var obj = win.document.getElementById('resourceListArea'); + obj.innerHTML= document.getElementById("itemList").innerHTML; + \ No newline at end of file Index: lams_tool_laqa/web/authoring/addCondition.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/web/authoring/addCondition.jsp,v diff -u -r1.3 -r1.4 --- lams_tool_laqa/web/authoring/addCondition.jsp 23 Jul 2013 17:53:24 -0000 1.3 +++ lams_tool_laqa/web/authoring/addCondition.jsp 26 Jul 2013 13:17:13 -0000 1.4 @@ -6,7 +6,19 @@ <%@ include file="/common/header.jsp"%> - + @@ -40,7 +52,7 @@ - Index: lams_tool_laqa/web/authoring/conditionList.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/web/authoring/conditionList.jsp,v diff -u -r1.2 -r1.3 --- lams_tool_laqa/web/authoring/conditionList.jsp 23 Jul 2013 17:53:24 -0000 1.2 +++ lams_tool_laqa/web/authoring/conditionList.jsp 26 Jul 2013 13:17:13 -0000 1.3 @@ -83,10 +83,15 @@ <%-- This script will works when a new resoruce Condition submit in order to refresh "TaskList List" panel. --%> + win.hideConditionMessage(); + var obj = win.document.getElementById('conditionsArea'); + obj.innerHTML= document.getElementById("conditionList").innerHTML; + \ No newline at end of file Index: lams_tool_laqa/web/authoring/itemlist.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/web/authoring/itemlist.jsp,v diff -u -r1.7 -r1.8 --- lams_tool_laqa/web/authoring/itemlist.jsp 23 Jul 2013 17:53:24 -0000 1.7 +++ lams_tool_laqa/web/authoring/itemlist.jsp 26 Jul 2013 13:17:13 -0000 1.8 @@ -104,10 +104,15 @@ <%-- This script will works when a new resoruce item submit in order to refresh "Resource List" panel. --%> Index: lams_tool_laqa/web/authoring/newQuestionBox.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/web/authoring/newQuestionBox.jsp,v diff -u -r1.21 -r1.22 --- lams_tool_laqa/web/authoring/newQuestionBox.jsp 23 Jul 2013 17:53:24 -0000 1.21 +++ lams_tool_laqa/web/authoring/newQuestionBox.jsp 26 Jul 2013 13:17:13 -0000 1.22 @@ -100,8 +100,17 @@ { heightOffSet = document.getElementById('wizardDiv').offsetHeight; } - window.resizeIframe ? window.resizeIframe(heightOffSet) : window.top.resizeIframe(heightOffSet); - heightOffSet = heightOffSet * -1; + + var win = null; + if (window.resizeIframe) { + win = window; + } else if (window.parent && window.parent.resizeIframe) { + win = window.parent; + } else { + win = window.top; + } + win.resizeIframe(heightOffSet); + heightOffSet = heightOffSet * -1; }); }); Index: lams_tool_laqa/web/monitoring/itemlist.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/web/monitoring/Attic/itemlist.jsp,v diff -u -r1.5 -r1.6 --- lams_tool_laqa/web/monitoring/itemlist.jsp 23 Jul 2013 17:53:24 -0000 1.5 +++ lams_tool_laqa/web/monitoring/itemlist.jsp 26 Jul 2013 13:17:13 -0000 1.6 @@ -94,11 +94,16 @@ <%-- This script will works when a new resoruce item submit in order to refresh "Resource List" panel. --%> Index: lams_tool_larsrc/web/includes/javascript/rsrcresourceitem.js =================================================================== RCS file: /usr/local/cvsroot/lams_tool_larsrc/web/includes/javascript/rsrcresourceitem.js,v diff -u -r1.11 -r1.12 --- lams_tool_larsrc/web/includes/javascript/rsrcresourceitem.js 23 Jul 2013 17:53:00 -0000 1.11 +++ lams_tool_larsrc/web/includes/javascript/rsrcresourceitem.js 26 Jul 2013 13:16:57 -0000 1.12 @@ -34,7 +34,10 @@ } function adjustInstructionsDisplayAreaHeight(adjustAmount){ var obj = window.document.getElementById('reourceInputArea'); - if (!obj) { + if (!obj && window.parent) { + obj = window.parent.document.getElementById('reourceInputArea'); + } + if (!obj) { obj = window.top.document.getElementById('reourceInputArea'); } obj.style.height=obj.contentWindow.document.body.scrollHeight+adjustAmount+'px'; @@ -86,5 +89,13 @@ // then refresh "basic tab" resourcelist and close this window. } function cancelResourceItem(){ - window.hideMessage ? window.hideMessage() : window.top.hideMessage(); + var win = null; + if (window.hideMessage) { + win = window; + } else if (window.parent && window.parent.hideMessage) { + win = window.parent; + } else { + win = window.top; + } + win.hideMessage(); } Index: lams_tool_larsrc/web/pages/authoring/parts/instructions.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_larsrc/web/pages/authoring/parts/instructions.jsp,v diff -u -r1.14 -r1.15 --- lams_tool_larsrc/web/pages/authoring/parts/instructions.jsp 25 Jul 2013 06:12:03 -0000 1.14 +++ lams_tool_larsrc/web/pages/authoring/parts/instructions.jsp 26 Jul 2013 13:16:57 -0000 1.15 @@ -77,7 +77,10 @@ Index: lams_tool_notebook/web/pages/authoring/addCondition.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_notebook/web/pages/authoring/addCondition.jsp,v diff -u -r1.4 -r1.5 --- lams_tool_notebook/web/pages/authoring/addCondition.jsp 23 Jul 2013 17:53:20 -0000 1.4 +++ lams_tool_notebook/web/pages/authoring/addCondition.jsp 26 Jul 2013 13:17:07 -0000 1.5 @@ -14,6 +14,20 @@ + + @@ -37,7 +51,7 @@ - Index: lams_tool_notebook/web/pages/authoring/conditionList.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_notebook/web/pages/authoring/conditionList.jsp,v diff -u -r1.2 -r1.3 --- lams_tool_notebook/web/pages/authoring/conditionList.jsp 23 Jul 2013 17:53:20 -0000 1.2 +++ lams_tool_notebook/web/pages/authoring/conditionList.jsp 26 Jul 2013 13:17:07 -0000 1.3 @@ -82,10 +82,15 @@ <%-- This script will works when a new resoruce Condition submit in order to refresh "TaskList List" panel. --%> Index: lams_tool_scribe/web/pages/authoring/headingForm.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_scribe/web/pages/authoring/headingForm.jsp,v diff -u -r1.5 -r1.6 --- lams_tool_scribe/web/pages/authoring/headingForm.jsp 23 Jul 2013 17:53:05 -0000 1.5 +++ lams_tool_scribe/web/pages/authoring/headingForm.jsp 26 Jul 2013 13:16:38 -0000 1.6 @@ -1,4 +1,19 @@ <%@ include file="/common/taglibs.jsp"%> + + +

@@ -34,7 +49,7 @@ + onclick="javascript:callHideMessage()"> Index: lams_tool_scribe/web/pages/authoring/headingResponse.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_scribe/web/pages/authoring/headingResponse.jsp,v diff -u -r1.2 -r1.3 --- lams_tool_scribe/web/pages/authoring/headingResponse.jsp 23 Jul 2013 17:53:05 -0000 1.2 +++ lams_tool_scribe/web/pages/authoring/headingResponse.jsp 26 Jul 2013 13:16:38 -0000 1.3 @@ -7,12 +7,17 @@ Index: lams_tool_spreadsheet/web/includes/javascript/rsrcspreadsheetitem.js =================================================================== RCS file: /usr/local/cvsroot/lams_tool_spreadsheet/web/includes/javascript/rsrcspreadsheetitem.js,v diff -u -r1.2 -r1.3 --- lams_tool_spreadsheet/web/includes/javascript/rsrcspreadsheetitem.js 23 Jul 2013 17:54:12 -0000 1.2 +++ lams_tool_spreadsheet/web/includes/javascript/rsrcspreadsheetitem.js 26 Jul 2013 13:16:44 -0000 1.3 @@ -110,8 +110,13 @@ // then refresh "basic tab" spreadsheetlist and close this window. } function cancelSpreadsheetItem(){ - var win = window.hideMessage ? window : window.top; - if (win.hideMessage != null){ - win.hideMessage(); + var win = null; + if (window.hideMessage) { + win = window; + } else if (window.parent && window.parent.hideMessage) { + win = window.parent; + } else { + win = window.top; } + win.hideMessage(); } \ No newline at end of file Index: lams_tool_spreadsheet/web/pages/monitoring/parts/editmark.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_spreadsheet/web/pages/monitoring/parts/editmark.jsp,v diff -u -r1.3 -r1.4 --- lams_tool_spreadsheet/web/pages/monitoring/parts/editmark.jsp 23 Jul 2013 17:54:12 -0000 1.3 +++ lams_tool_spreadsheet/web/pages/monitoring/parts/editmark.jsp 26 Jul 2013 13:16:44 -0000 1.4 @@ -6,6 +6,19 @@ <%@ include file="/common/header.jsp"%> + @@ -44,7 +57,7 @@ - + Index: lams_tool_spreadsheet/web/pages/monitoring/parts/summarylist.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_spreadsheet/web/pages/monitoring/parts/summarylist.jsp,v diff -u -r1.4 -r1.5 --- lams_tool_spreadsheet/web/pages/monitoring/parts/summarylist.jsp 23 Jul 2013 17:54:12 -0000 1.4 +++ lams_tool_spreadsheet/web/pages/monitoring/parts/summarylist.jsp 26 Jul 2013 13:16:44 -0000 1.5 @@ -152,10 +152,15 @@ <%-- This script will works when a new resoruce Condition submit in order to refresh "TaskList List" panel. --%> Index: lams_tool_survey/web/includes/javascript/surveyitem.js =================================================================== RCS file: /usr/local/cvsroot/lams_tool_survey/web/includes/javascript/surveyitem.js,v diff -u -r1.4 -r1.5 --- lams_tool_survey/web/includes/javascript/surveyitem.js 23 Jul 2013 17:53:37 -0000 1.4 +++ lams_tool_survey/web/includes/javascript/surveyitem.js 26 Jul 2013 13:16:42 -0000 1.5 @@ -93,8 +93,13 @@ } function cancelSurveyItem(){ - var win = window.hideMessage ? window : window.top; - if (win.hideMessage != null){ - win.hideMessage(); + var win = null; + if (window.hideMessage) { + win = window; + } else if (window.parent && window.parent.hideMessage) { + win = window.parent; + } else { + win = window.top; } + win.hideMessage(); } Index: lams_tool_survey/web/pages/authoring/addCondition.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_survey/web/pages/authoring/addCondition.jsp,v diff -u -r1.3 -r1.4 --- lams_tool_survey/web/pages/authoring/addCondition.jsp 23 Jul 2013 17:53:37 -0000 1.3 +++ lams_tool_survey/web/pages/authoring/addCondition.jsp 26 Jul 2013 13:16:42 -0000 1.4 @@ -6,7 +6,19 @@ <%@ include file="/common/header.jsp"%> - + @@ -40,7 +52,7 @@ - Index: lams_tool_survey/web/pages/authoring/conditionList.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_survey/web/pages/authoring/conditionList.jsp,v diff -u -r1.2 -r1.3 --- lams_tool_survey/web/pages/authoring/conditionList.jsp 23 Jul 2013 17:53:37 -0000 1.2 +++ lams_tool_survey/web/pages/authoring/conditionList.jsp 26 Jul 2013 13:16:42 -0000 1.3 @@ -83,10 +83,15 @@ <%-- This script will works when a new resoruce Condition submit in order to refresh "TaskList List" panel. --%> Index: lams_tool_survey/web/pages/authoring/parts/instructions.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_survey/web/pages/authoring/parts/instructions.jsp,v diff -u -r1.5 -r1.6 --- lams_tool_survey/web/pages/authoring/parts/instructions.jsp 23 Jul 2013 17:53:37 -0000 1.5 +++ lams_tool_survey/web/pages/authoring/parts/instructions.jsp 26 Jul 2013 13:16:42 -0000 1.6 @@ -62,6 +62,9 @@ Index: lams_tool_task/web/pages/authoring/parts/addcondition.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_task/web/pages/authoring/parts/addcondition.jsp,v diff -u -r1.3 -r1.4 --- lams_tool_task/web/pages/authoring/parts/addcondition.jsp 23 Jul 2013 17:52:37 -0000 1.3 +++ lams_tool_task/web/pages/authoring/parts/addcondition.jsp 26 Jul 2013 13:16:48 -0000 1.4 @@ -6,7 +6,19 @@ <%@ include file="/common/header.jsp"%> - + @@ -45,7 +57,7 @@ - Index: lams_tool_task/web/pages/authoring/parts/addtask.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_task/web/pages/authoring/parts/addtask.jsp,v diff -u -r1.8 -r1.9 --- lams_tool_task/web/pages/authoring/parts/addtask.jsp 23 Jul 2013 17:52:36 -0000 1.8 +++ lams_tool_task/web/pages/authoring/parts/addtask.jsp 26 Jul 2013 13:16:48 -0000 1.9 @@ -11,7 +11,18 @@ function uncheckIsCommentsRequired() { document.getElementById("isCommentsRequired").checked=false; } - + + function callHideMessage() { + var win = null; + if (window.hideMessage) { + win = window; + } else if (window.parent && window.parent.hideMessage) { + win = window.parent; + } else { + win = window.top; + } + win.hideMessage(); + } @@ -109,43 +120,7 @@ - -<%-- -
- - - - -
- -
-        - checked="checked" - disabled="disabled"/> - - -
-
-        - checked="checked" - disabled="disabled"/> - - -
---%> - -
- Index: lams_tool_task/web/pages/authoring/parts/conditionlist.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_task/web/pages/authoring/parts/conditionlist.jsp,v diff -u -r1.4 -r1.5 --- lams_tool_task/web/pages/authoring/parts/conditionlist.jsp 23 Jul 2013 17:52:36 -0000 1.4 +++ lams_tool_task/web/pages/authoring/parts/conditionlist.jsp 26 Jul 2013 13:16:48 -0000 1.5 @@ -83,10 +83,15 @@ <%-- This script will works when a new resoruce Condition submit in order to refresh "TaskList List" panel. --%> Index: lams_tool_task/web/pages/authoring/parts/itemlist.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_task/web/pages/authoring/parts/itemlist.jsp,v diff -u -r1.3 -r1.4 --- lams_tool_task/web/pages/authoring/parts/itemlist.jsp 23 Jul 2013 17:52:37 -0000 1.3 +++ lams_tool_task/web/pages/authoring/parts/itemlist.jsp 26 Jul 2013 13:16:48 -0000 1.4 @@ -69,10 +69,15 @@ <%-- This script will works when a new resoruce item submit in order to refresh "TaskList List" panel. --%> Index: lams_tool_videorecorder/web/pages/authoring/addCondition.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_videorecorder/web/pages/authoring/addCondition.jsp,v diff -u -r1.3 -r1.4 --- lams_tool_videorecorder/web/pages/authoring/addCondition.jsp 23 Jul 2013 17:52:39 -0000 1.3 +++ lams_tool_videorecorder/web/pages/authoring/addCondition.jsp 26 Jul 2013 13:17:09 -0000 1.4 @@ -14,6 +14,19 @@ + @@ -37,7 +50,7 @@ - Index: lams_tool_videorecorder/web/pages/authoring/conditionList.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_videorecorder/web/pages/authoring/conditionList.jsp,v diff -u -r1.2 -r1.3 --- lams_tool_videorecorder/web/pages/authoring/conditionList.jsp 23 Jul 2013 17:52:39 -0000 1.2 +++ lams_tool_videorecorder/web/pages/authoring/conditionList.jsp 26 Jul 2013 13:17:09 -0000 1.3 @@ -82,10 +82,15 @@ <%-- This script will works when a new resoruce Condition submit in order to refresh "TaskList List" panel. --%> Index: lams_tool_vote/web/authoring/itemlist.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_vote/web/authoring/itemlist.jsp,v diff -u -r1.10 -r1.11 --- lams_tool_vote/web/authoring/itemlist.jsp 23 Jul 2013 17:54:25 -0000 1.10 +++ lams_tool_vote/web/authoring/itemlist.jsp 26 Jul 2013 13:17:15 -0000 1.11 @@ -105,11 +105,16 @@
<%-- This script will works when a new resoruce item submit in order to refresh "Resource List" panel. --%> Index: lams_tool_vote/web/monitoring/itemlist.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_vote/web/monitoring/Attic/itemlist.jsp,v diff -u -r1.6 -r1.7 --- lams_tool_vote/web/monitoring/itemlist.jsp 23 Jul 2013 17:54:25 -0000 1.6 +++ lams_tool_vote/web/monitoring/itemlist.jsp 26 Jul 2013 13:17:15 -0000 1.7 @@ -94,11 +94,16 @@ <%-- This script will works when a new resoruce item submit in order to refresh "Resource List" panel. --%>