\ No newline at end of file
Index: lams_tool_larsrc/web/WEB-INF/tags/Page.tag
===================================================================
diff -u -r48be6456edafa05b5486a6b3fc37f33d926d3c58 -rb3fe40cd67fc779a6eee8320fadc3a489565a557
--- lams_tool_larsrc/web/WEB-INF/tags/Page.tag (.../Page.tag) (revision 48be6456edafa05b5486a6b3fc37f33d926d3c58)
+++ lams_tool_larsrc/web/WEB-INF/tags/Page.tag (.../Page.tag) (revision b3fe40cd67fc779a6eee8320fadc3a489565a557)
@@ -12,25 +12,38 @@
+
+
+
+
+
+
-
-
+
+
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
Index: lams_tool_larsrc/web/WEB-INF/tags/Tab.tag
===================================================================
diff -u -rac6c077d83ef253fa3f07a515edc49077317029a -rb3fe40cd67fc779a6eee8320fadc3a489565a557
--- lams_tool_larsrc/web/WEB-INF/tags/Tab.tag (.../Tab.tag) (revision ac6c077d83ef253fa3f07a515edc49077317029a)
+++ lams_tool_larsrc/web/WEB-INF/tags/Tab.tag (.../Tab.tag) (revision b3fe40cd67fc779a6eee8320fadc3a489565a557)
@@ -1,85 +1,89 @@
-<%
- /****************************************************************
- * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org)
- * =============================================================
- * License Information: http://lamsfoundation.org/licensing/lams/2.0/
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2.0
- * as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
- * USA
- *
- * http://www.gnu.org/licenses/gpl.txt
- * ****************************************************************
- */
-
- /**
- * Tab.tag
- * Author: Mitchell Seaton
- * Description: Creates a tab element.
- * Wiki:
- */
-%>
-<%@ tag body-content="empty"%>
-<%@ attribute name="id" required="true" rtexprvalue="true"%>
-<%@ attribute name="value" required="false" rtexprvalue="true"%>
-<%@ attribute name="key" required="false" rtexprvalue="true"%>
-<%@ attribute name="inactive" required="false" rtexprvalue="true"%>
-<%@ attribute name="methodCall" required="false" rtexprvalue="true"%>
-
-<%@ taglib uri="tags-core" prefix="c"%>
-<%@ taglib uri="tags-fmt" prefix="fmt"%>
-<%@ taglib uri="tags-lams" prefix="lams"%>
-
-<%-- Check if bundle is set --%>
-
-
-
-
-
-
-
-
-
-
-<%--
- Usually methodCall is selectTab, but the calling code can override methodCall if desired.
- this is handy if the page needs different logic on initialisation and user switching tabs
---%>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+<%
+ /****************************************************************
+ * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org)
+ * =============================================================
+ * License Information: http://lamsfoundation.org/licensing/lams/2.0/
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2.0
+ * as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
+ * USA
+ *
+ * http://www.gnu.org/licenses/gpl.txt
+ * ****************************************************************
+ */
+
+ /**
+ * Tab.tag
+ * Author: Fiona Malikoff
+ * Description: Creates a tab element within the Hybrid Tab Header.
+ * Wiki:
+ */
+%>
+<%@ tag body-content="empty"%>
+<%@ attribute name="id" required="true" rtexprvalue="true"%>
+<%@ attribute name="value" required="false" rtexprvalue="true"%>
+<%@ attribute name="key" required="false" rtexprvalue="true"%>
+<%@ attribute name="inactive" required="false" rtexprvalue="true"%>
+<%@ attribute name="methodCall" required="false" rtexprvalue="true"%>
+
+<%@ taglib uri="tags-core" prefix="c"%>
+<%@ taglib uri="tags-fmt" prefix="fmt"%>
+<%@ taglib uri="tags-lams" prefix="lams"%>
+
+<%-- Check if bundle is set --%>
+
+
+
+
+
+
+
+
+
+
+<%--
+ Usually methodCall is selectTab, but the calling code can override methodCall if desired.
+ this is handy if the page needs different logic on initialisation and user switching tabs
+
+ -- onclick="${methodCall}(${id});return false;">
+
+--%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ class="active"
+
+
+
+
+ class="disabled"
+
+
+
Index: lams_tool_larsrc/web/WEB-INF/tags/TabBody.tag
===================================================================
diff -u -r9481bb9c6f8c0e4d6fbed6b230a41c77feda64c6 -rb3fe40cd67fc779a6eee8320fadc3a489565a557
--- lams_tool_larsrc/web/WEB-INF/tags/TabBody.tag (.../TabBody.tag) (revision 9481bb9c6f8c0e4d6fbed6b230a41c77feda64c6)
+++ lams_tool_larsrc/web/WEB-INF/tags/TabBody.tag (.../TabBody.tag) (revision b3fe40cd67fc779a6eee8320fadc3a489565a557)
@@ -1,52 +1,44 @@
-<%/****************************************************************
- * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org)
- * =============================================================
- * License Information: http://lamsfoundation.org/licensing/lams/2.0/
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2.0
- * as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
- * USA
- *
- * http://www.gnu.org/licenses/gpl.txt
- * ****************************************************************
- */
-
-/**
- * TabBody.tag
- * Author: Mitchell Seaton
- * Description: Creates the body container for a tab element
- * Wiki:
- */
-
- %>
-<%@ tag body-content="scriptless"%>
-<%@ attribute name="id" required="true" rtexprvalue="true"%>
-<%@ attribute name="tabTitle" required="false" rtexprvalue="true"%>
-<%@ attribute name="titleKey" required="false" rtexprvalue="true"%>
-<%@ attribute name="page" required="false" rtexprvalue="true"%>
-<%@ taglib uri="tags-core" prefix="c"%>
-<%@ taglib uri="tags-bean" prefix="bean"%>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+<%/****************************************************************
+ * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org)
+ * =============================================================
+ * License Information: http://lamsfoundation.org/licensing/lams/2.0/
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2.0
+ * as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
+ * USA
+ *
+ * http://www.gnu.org/licenses/gpl.txt
+ * ****************************************************************
+ */
+
+/**
+ * TabBody.tag
+ * Author: Mitchell Seaton
+ * Description: Creates the body container for a tab element
+ * Wiki:
+ */
+
+%>
+<%@ attribute name="id" required="true" rtexprvalue="true"%>
+<%@ attribute name="tabTitle" required="false" rtexprvalue="true"%>
+<%@ attribute name="titleKey" required="false" rtexprvalue="true"%>
+<%@ attribute name="page" required="false" rtexprvalue="true"%>
+<%@ taglib uri="tags-core" prefix="c"%>
+<%@ taglib uri="tags-bean" prefix="bean"%>
+
+
+
+ active
+
+
+
+<%/****************************************************************
+ * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org)
+ * =============================================================
+ * License Information: http://lamsfoundation.org/licensing/lams/2.0/
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2.0
+ * as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
+ * USA
+ *
+ * http://www.gnu.org/licenses/gpl.txt
+ * ****************************************************************
+ */
+
+/**
+ * Tabs.tag
+ * Author: Fiona Malikoff
+ * Description: Create a hybrid panel header that contains a nav bar that acts like tabs.
+ */
+
+%>
+<%@ attribute name="control" required="false" rtexprvalue="true"%>
+<%@ attribute name="title" required="false" rtexprvalue="true"%>
+<%@ attribute name="refreshOnClickAction" required="false" rtexprvalue="true"%>
+<%@ attribute name="helpToolSignature" required="false" rtexprvalue="true"%>
+<%@ attribute name="helpModule" required="false" rtexprvalue="true"%>
+<%@ attribute name="extraControl" required="false" rtexprvalue="true"%>
+
+<%@ taglib uri="tags-core" prefix="c"%>
+<%@ taglib uri="tags-lams" prefix="lams"%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
Index: lams_tool_larsrc/web/WEB-INF/tags/headItems.tag
===================================================================
diff -u -r613f0d0d76eb497ed58d7e6836eda34a245425a9 -rb3fe40cd67fc779a6eee8320fadc3a489565a557
--- lams_tool_larsrc/web/WEB-INF/tags/headItems.tag (.../headItems.tag) (revision 613f0d0d76eb497ed58d7e6836eda34a245425a9)
+++ lams_tool_larsrc/web/WEB-INF/tags/headItems.tag (.../headItems.tag) (revision b3fe40cd67fc779a6eee8320fadc3a489565a557)
@@ -41,7 +41,9 @@
-
+
-
+
+
+
Index: lams_tool_larsrc/web/common/header.jsp
===================================================================
diff -u -re9e2a6b00397afa86d303bfbc6ca3649744a982e -rb3fe40cd67fc779a6eee8320fadc3a489565a557
--- lams_tool_larsrc/web/common/header.jsp (.../header.jsp) (revision e9e2a6b00397afa86d303bfbc6ca3649744a982e)
+++ lams_tool_larsrc/web/common/header.jsp (.../header.jsp) (revision b3fe40cd67fc779a6eee8320fadc3a489565a557)
@@ -12,6 +12,10 @@
-
+<%--
+
+
+ --%>
+
\ No newline at end of file
Index: lams_tool_larsrc/web/common/tabbedheader.jsp
===================================================================
diff -u -r613f0d0d76eb497ed58d7e6836eda34a245425a9 -rb3fe40cd67fc779a6eee8320fadc3a489565a557
--- lams_tool_larsrc/web/common/tabbedheader.jsp (.../tabbedheader.jsp) (revision 613f0d0d76eb497ed58d7e6836eda34a245425a9)
+++ lams_tool_larsrc/web/common/tabbedheader.jsp (.../tabbedheader.jsp) (revision b3fe40cd67fc779a6eee8320fadc3a489565a557)
@@ -5,12 +5,16 @@
-
+
-
-
+
+<%--
+
+
+ --%>
+
\ No newline at end of file
Index: lams_tool_larsrc/web/includes/javascript/rsrccommon.js
===================================================================
diff -u -r529adc13063b7d012d49a4c7ed47a27716c76a94 -rb3fe40cd67fc779a6eee8320fadc3a489565a557
--- lams_tool_larsrc/web/includes/javascript/rsrccommon.js (.../rsrccommon.js) (revision 529adc13063b7d012d49a4c7ed47a27716c76a94)
+++ lams_tool_larsrc/web/includes/javascript/rsrccommon.js (.../rsrccommon.js) (revision b3fe40cd67fc779a6eee8320fadc3a489565a557)
@@ -1,10 +1,12 @@
function showBusy(targetDiv){
- if($(targetDiv+"_Busy") != null){
+ var div = document.getElementById(targetDiv+"_Busy");
+ if(div != null){
document.getElementById(targetDiv+"_Busy").style.display = '';
}
}
function hideBusy(targetDiv){
- if($(targetDiv+"_Busy") != null){
+ var div = document.getElementById(targetDiv+"_Busy");
+ if(div != null){
document.getElementById(targetDiv+"_Busy").style.display = 'none';
}
}
\ No newline at end of file
Index: lams_tool_larsrc/web/includes/javascript/rsrcresourceitem.js
===================================================================
diff -u -re9e2a6b00397afa86d303bfbc6ca3649744a982e -rb3fe40cd67fc779a6eee8320fadc3a489565a557
--- lams_tool_larsrc/web/includes/javascript/rsrcresourceitem.js (.../rsrcresourceitem.js) (revision e9e2a6b00397afa86d303bfbc6ca3649744a982e)
+++ lams_tool_larsrc/web/includes/javascript/rsrcresourceitem.js (.../rsrcresourceitem.js) (revision b3fe40cd67fc779a6eee8320fadc3a489565a557)
@@ -4,7 +4,7 @@
var instructionTargetDiv = "instructionArea";
var itemAttachmentTargetDiv = "itemAttachmentArea";
var singleInstructionHeight = 74;
-
+
function removeInstruction(idx){
//prepare lams_textarea value to Ajax submit
$('textarea').trigger('change');
@@ -27,7 +27,8 @@
removeItemAttachmentUrl,
{
reqID: new Date()
- }
+ },
+ removeItemAttachmentComplete
);
}
@@ -42,24 +43,13 @@
addInstructionUrl,
param,
function(xml) {
- addInstructionComplete();
- document.getElementById("instructionArea").innerHTML = xml;
+ $('#instructionArea').html(xml);
}
);
return false;
}
- function adjustInstructionsDisplayAreaHeight(adjustAmount){
- var obj = window.document.getElementById('reourceInputArea');
- 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';
- }
function upItem(itemIdx){
//prepare lams_textarea value to Ajax submit
$('textarea').trigger('change');
@@ -90,7 +80,6 @@
}
function removeInstructionComplete(){
hideBusy(instructionTargetDiv);
- adjustInstructionsDisplayAreaHeight(-singleInstructionHeight);
}
function removeItemAttachmentLoading(){
showBusy(itemAttachmentTargetDiv);
@@ -103,26 +92,25 @@
}
function addInstructionComplete(){
hideBusy(instructionTargetDiv);
- adjustInstructionsDisplayAreaHeight(singleInstructionHeight);
}
function submitResourceItem(){
- //prepare lams_textarea value to Ajax submit
+ //prepare lams_textarea value to Ajax submit and add instructions to form
$('textarea').trigger('change');
-
document.getElementById("instructionList").value = $("#instructionForm").serialize();
- $("#resourceItemForm").submit();
+ var formData = new FormData(document.getElementById("resourceItemForm"));
+
// after submit, it direct to itemlist.jsp,
- // then refresh "basic tab" resourcelist and close this window.
- }
- function cancelResourceItem(){
- var win = null;
- if (window.hideMessage) {
- win = window;
- } else if (window.parent && window.parent.hideMessage) {
- win = window.parent;
- } else {
- win = window.top;
- }
- win.hideMessage();
- }
+ // then refresh "basic tab" resource list and close this window.
+ $.ajax({ // create an AJAX call...
+ data: formData,
+ processData: false, // tell jQuery not to process the data
+ contentType: false, // tell jQuery not to set contentType
+ type: $("#resourceItemForm").attr('method'),
+ url: $("#resourceItemForm").attr('action'),
+ success: function(data) {
+ $('#resourceInputArea').html(data);
+ }
+ });
+
+ }
\ No newline at end of file
Index: lams_tool_larsrc/web/pages/authoring/advance.jsp
===================================================================
diff -u -r94ed30ec071e295e4a2d469f02778c25f401ca41 -rb3fe40cd67fc779a6eee8320fadc3a489565a557
--- lams_tool_larsrc/web/pages/authoring/advance.jsp (.../advance.jsp) (revision 94ed30ec071e295e4a2d469f02778c25f401ca41)
+++ lams_tool_larsrc/web/pages/authoring/advance.jsp (.../advance.jsp) (revision b3fe40cd67fc779a6eee8320fadc3a489565a557)
@@ -1,99 +1,76 @@
<%@ include file="/common/taglibs.jsp"%>
-
+
-