Index: lams_tool_larsrc/web/WEB-INF/tags/AuthoringButton.tag =================================================================== diff -u -r29fac4bd0bdf28bcaaeee7aae4020ccb15b6e520 -rb3fe40cd67fc779a6eee8320fadc3a489565a557 --- lams_tool_larsrc/web/WEB-INF/tags/AuthoringButton.tag (.../AuthoringButton.tag) (revision 29fac4bd0bdf28bcaaeee7aae4020ccb15b6e520) +++ lams_tool_larsrc/web/WEB-INF/tags/AuthoringButton.tag (.../AuthoringButton.tag) (revision b3fe40cd67fc779a6eee8320fadc3a489565a557) @@ -122,12 +122,12 @@ window.close(); } -

- - - - +

+ -

+ + + +
\ No newline at end of file Index: lams_tool_larsrc/web/WEB-INF/tags/CKEditor.tag =================================================================== diff -u -rdc884b8e6274ebbc664d1ee940e565803445bb26 -rb3fe40cd67fc779a6eee8320fadc3a489565a557 --- lams_tool_larsrc/web/WEB-INF/tags/CKEditor.tag (.../CKEditor.tag) (revision dc884b8e6274ebbc664d1ee940e565803445bb26) +++ lams_tool_larsrc/web/WEB-INF/tags/CKEditor.tag (.../CKEditor.tag) (revision b3fe40cd67fc779a6eee8320fadc3a489565a557) @@ -10,7 +10,12 @@ <%@ attribute name="contentFolderID" required="false" rtexprvalue="true"%> <%@ attribute name="displayExpanded" required="false" rtexprvalue="true"%> <%@ attribute name="resizeParentFrameName" required="false" rtexprvalue="true"%> +<%@ attribute name="method" required="false" rtexprvalue="true"%> + + + + @@ -19,6 +24,10 @@ + + ${toolbarSet}Inline + + @@ -33,10 +42,10 @@ - + - ckeditor/ + /lams/ckeditor/ @@ -59,10 +68,9 @@ var editor = CKEDITOR.instances["${id}"]; if (editor) { editor.destroy(true); } - var instance = CKEDITOR.replace( "${id}", { + var instance = CKEDITOR.${method}( "${id}", { width : "${width}", height : "${height}", - autoGrow_minHeight : "${height}".replace("px", ""), toolbar : "${toolbarSet}", language : "${language}", defaultLangugage : "en", Index: lams_tool_larsrc/web/WEB-INF/tags/DefineLater.tag =================================================================== diff -u -rfef442a88ab05c91db8a551081c4abc060d4da5e -rb3fe40cd67fc779a6eee8320fadc3a489565a557 --- lams_tool_larsrc/web/WEB-INF/tags/DefineLater.tag (.../DefineLater.tag) (revision fef442a88ab05c91db8a551081c4abc060d4da5e) +++ lams_tool_larsrc/web/WEB-INF/tags/DefineLater.tag (.../DefineLater.tag) (revision b3fe40cd67fc779a6eee8320fadc3a489565a557) @@ -1,6 +1,6 @@ <% - /**************************************************************** + /**************************************************************** * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org) * ============================================================= * License Information: http://lamsfoundation.org/licensing/lams/2.0/ @@ -49,10 +49,18 @@ -

- -

-
- +
+
+
+ +
+
+
+
+ +
+
\ 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" + + +
  • ${tabTitle}
  • 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 + + +
    Index: lams_tool_larsrc/web/WEB-INF/tags/TabName.tag =================================================================== diff -u -r7329c82c5388fbb86b6a0a2b27a71151ee8f116e -rb3fe40cd67fc779a6eee8320fadc3a489565a557 --- lams_tool_larsrc/web/WEB-INF/tags/TabName.tag (.../TabName.tag) (revision 7329c82c5388fbb86b6a0a2b27a71151ee8f116e) +++ lams_tool_larsrc/web/WEB-INF/tags/TabName.tag (.../TabName.tag) (revision b3fe40cd67fc779a6eee8320fadc3a489565a557) @@ -1,59 +1,59 @@ -<%/**************************************************************** - * 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 - * **************************************************************** - */ - -/** - * TabName Tag - * Author: Mitchell Seaton - * Description: Shortens name that are too long to fit inside a tab - */ - - %> -<%@ tag body-content="scriptless" %> - -<%@ attribute name="url" required="true" rtexprvalue="true"%> -<%@ attribute name="highlight" required="false" rtexprvalue="true" %> - -<%@ taglib uri="tags-core" prefix="c"%> -<%@ taglib uri="tags-function" prefix="fn"%> - -12 - - - - - - - - - - - - - - - - - - - +<%/**************************************************************** + * 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 + * **************************************************************** + */ + +/** + * TabName Tag + * Author: Mitchell Seaton + * Description: Shortens name that are too long to fit inside a tab + */ + + %> +<%@ tag body-content="scriptless" %> + +<%@ attribute name="url" required="true" rtexprvalue="true"%> +<%@ attribute name="highlight" required="false" rtexprvalue="true" %> + +<%@ taglib uri="tags-core" prefix="c"%> +<%@ taglib uri="tags-function" prefix="fn"%> + +12 + + + + + + + + + + + + + + + + + + + \ No newline at end of file Index: lams_tool_larsrc/web/WEB-INF/tags/Tabs.tag =================================================================== diff -u -r9481bb9c6f8c0e4d6fbed6b230a41c77feda64c6 -rb3fe40cd67fc779a6eee8320fadc3a489565a557 --- lams_tool_larsrc/web/WEB-INF/tags/Tabs.tag (.../Tabs.tag) (revision 9481bb9c6f8c0e4d6fbed6b230a41c77feda64c6) +++ lams_tool_larsrc/web/WEB-INF/tags/Tabs.tag (.../Tabs.tag) (revision b3fe40cd67fc779a6eee8320fadc3a489565a557) @@ -1,69 +1,92 @@ -<%/**************************************************************** - * 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: Mitchell Seaton - * Description: Create a tab list from a input collection or nested Tab tags. - * Wiki: - */ - - %> -<%@ tag body-content="scriptless"%> -<%@ attribute name="collection" type="java.util.Collection" required="false" rtexprvalue="true"%> -<%@ attribute name="control" required="false" rtexprvalue="true"%> -<%@ attribute name="useKey" required="false" rtexprvalue="true"%> -<%@ taglib uri="tags-core" prefix="c"%> -<%@ taglib uri="tags-lams" prefix="lams"%> - - - - - - - - - - - - +<%/**************************************************************** + * 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"%> - + -

    - - +

    + +
    - -

    +
    + +
    -

    - - - -

    +
    + + + + + + + + + + + + + +
    -

    - - - - - - - - - - - - +

    + +
    - -

    +
    + +
    -

    - - - -

    +
    + +
    -

    - - - -

    +
    + +
    -

    - - - -

    +
    + +
    -

    - - - -

    - -

    - - - -

    - -

    - -

    +
    + +
    Index: lams_tool_larsrc/web/pages/authoring/basic.jsp =================================================================== diff -u -rfb9d13eb115f5281b03ab1624ec10a22ba3b81b7 -rb3fe40cd67fc779a6eee8320fadc3a489565a557 --- lams_tool_larsrc/web/pages/authoring/basic.jsp (.../basic.jsp) (revision fb9d13eb115f5281b03ab1624ec10a22ba3b81b7) +++ lams_tool_larsrc/web/pages/authoring/basic.jsp (.../basic.jsp) (revision b3fe40cd67fc779a6eee8320fadc3a489565a557) @@ -4,35 +4,17 @@ + - - - - - - - +
    + + +
    +
    + + +
    -
    -
    - -
    - -
    -
    - -
    - -
    -
    - <%@ include file="/pages/authoring/parts/itemlist.jsp"%> + <%@ include file="/pages/authoring/parts/itemlist.jsp"%>
    -

    - ');"> - - ');" class="space-left"> - - ');" class="space-left"> - - ');" class="space-left"> - -

    + -

    - -

    +
    \ No newline at end of file Index: lams_tool_larsrc/web/pages/authoring/definelater.jsp =================================================================== diff -u -re48fc0e1f6819e257b87efa36c3baec3c1c488f0 -rb3fe40cd67fc779a6eee8320fadc3a489565a557 --- lams_tool_larsrc/web/pages/authoring/definelater.jsp (.../definelater.jsp) (revision e48fc0e1f6819e257b87efa36c3baec3c1c488f0) +++ lams_tool_larsrc/web/pages/authoring/definelater.jsp (.../definelater.jsp) (revision b3fe40cd67fc779a6eee8320fadc3a489565a557) @@ -1,5 +1,6 @@ + <%@ include file="/common/taglibs.jsp"%> <%@ page import="java.util.HashSet"%> @@ -21,11 +22,6 @@ function init(){ selectTab(1); //select the default tab; - initEditor("Title"); - initEditor("Instructions"); - initEditor("OnlineInstruction"); - initEditor("OfflineInstruction"); - } function doSelectTab(tabId) { @@ -43,43 +39,38 @@ -
    -

    - -

    - -
    - <%@ include file="/common/messages.jsp"%> - - - -
    - - - + - + + + + + + <%@ include file="/common/messages.jsp"%> + + + + + + -
    + + + + + - -
    - -
    Index: lams_tool_larsrc/web/pages/authoring/definelaterforbid.jsp =================================================================== diff -u -re48fc0e1f6819e257b87efa36c3baec3c1c488f0 -rb3fe40cd67fc779a6eee8320fadc3a489565a557 --- lams_tool_larsrc/web/pages/authoring/definelaterforbid.jsp (.../definelaterforbid.jsp) (revision e48fc0e1f6819e257b87efa36c3baec3c1c488f0) +++ lams_tool_larsrc/web/pages/authoring/definelaterforbid.jsp (.../definelaterforbid.jsp) (revision b3fe40cd67fc779a6eee8320fadc3a489565a557) @@ -8,14 +8,12 @@ <%@ include file="/common/header.jsp"%> -
    -
    -

    - -

    - -
    -
    + + + + + + Index: lams_tool_larsrc/web/pages/authoring/parts/addfile.jsp =================================================================== diff -u -re48fc0e1f6819e257b87efa36c3baec3c1c488f0 -rb3fe40cd67fc779a6eee8320fadc3a489565a557 --- lams_tool_larsrc/web/pages/authoring/parts/addfile.jsp (.../addfile.jsp) (revision e48fc0e1f6819e257b87efa36c3baec3c1c488f0) +++ lams_tool_larsrc/web/pages/authoring/parts/addfile.jsp (.../addfile.jsp) (revision b3fe40cd67fc779a6eee8320fadc3a489565a557) @@ -5,7 +5,7 @@ <%@ include file="/common/header.jsp"%> - + - + - - <%@ include file="/common/messages.jsp"%> - - - - - - -

    +
    +
    -

    - -
    -
    - - -
    - -
    +
    - -
    - <%@ include file="/pages/authoring/parts/itemattachment.jsp"%> -
    + <%@ include file="/common/messages.jsp"%> - + + + + + + +
    + + +
    + + +
    + + + + <%@ include file="/pages/authoring/parts/itemattachment.jsp"%> + + +
    + +
    + + + <%@ include file="instructions.jsp"%> - - <%@ include file="instructions.jsp"%> - - - - - -
    + + +
    +
    + Index: lams_tool_larsrc/web/pages/authoring/parts/addurl.jsp =================================================================== diff -u -r48be6456edafa05b5486a6b3fc37f33d926d3c58 -rb3fe40cd67fc779a6eee8320fadc3a489565a557 --- lams_tool_larsrc/web/pages/authoring/parts/addurl.jsp (.../addurl.jsp) (revision 48be6456edafa05b5486a6b3fc37f33d926d3c58) +++ lams_tool_larsrc/web/pages/authoring/parts/addurl.jsp (.../addurl.jsp) (revision b3fe40cd67fc779a6eee8320fadc3a489565a557) @@ -5,7 +5,7 @@ <%@ include file="/common/header.jsp"%> - + <%-- user for rsrcresourceitem.js --%> - + - - - <%@ include file="/common/messages.jsp"%> - - - - - - -

    +
    +
    -

    - -
    -
    + +
    - + <%@ include file="/common/messages.jsp"%> + + + + + + + +
    + + +
    + -
    - -
    - - -
    - <%@ include file="/pages/authoring/parts/itemattachment.jsp"%> -
    - -
    +
    + + + + <%@ include file="/pages/authoring/parts/itemattachment.jsp"%> + + +
    + + - - <%@ include file="instructions.jsp"%> - - - - - + + <%@ include file="instructions.jsp"%> + +
    Index: lams_tool_larsrc/web/pages/authoring/parts/instructions.jsp =================================================================== diff -u -re9e2a6b00397afa86d303bfbc6ca3649744a982e -rb3fe40cd67fc779a6eee8320fadc3a489565a557 --- lams_tool_larsrc/web/pages/authoring/parts/instructions.jsp (.../instructions.jsp) (revision e9e2a6b00397afa86d303bfbc6ca3649744a982e) +++ lams_tool_larsrc/web/pages/authoring/parts/instructions.jsp (.../instructions.jsp) (revision b3fe40cd67fc779a6eee8320fadc3a489565a557) @@ -1,83 +1,46 @@ <%@ include file="/common/taglibs.jsp"%> -
    +
    - + -
    - -
    + - + - +
    - -
    ${status.index+1} - - <%-- Don't display down icon if last line --%> - - - " - onclick="upItem('${status.index}')"> - - - "> - - - - - - " - onclick="downItem('${status.index}','${listSize}')"> - - - - "> - - - - - <%-- Don't display down icon if last line --%> + + + + + + + + + - " - onclick="removeInstruction('${status.index}')"> + " + onclick="removeInstruction('${status.index}')">
    - - + +  
    -
    - -<%-- This script will adjust resource item input area height according to the new instruction item amount. --%> - \ No newline at end of file Index: lams_tool_larsrc/web/pages/authoring/parts/itemattachment.jsp =================================================================== diff -u -r7011368b3f7cc34d52ce8f8640b64a9add794dd6 -rb3fe40cd67fc779a6eee8320fadc3a489565a557 --- lams_tool_larsrc/web/pages/authoring/parts/itemattachment.jsp (.../itemattachment.jsp) (revision 7011368b3f7cc34d52ce8f8640b64a9add794dd6) +++ lams_tool_larsrc/web/pages/authoring/parts/itemattachment.jsp (.../itemattachment.jsp) (revision b3fe40cd67fc779a6eee8320fadc3a489565a557) @@ -1,27 +1,11 @@ <%@ include file="/common/taglibs.jsp"%> - - - - - - - - -
    - - - - - -
    +   +
    - +
    + Index: lams_tool_larsrc/web/pages/authoring/parts/itemlist.jsp =================================================================== diff -u -ra0bce7961a19548c58f5b0025160f124785f9951 -rb3fe40cd67fc779a6eee8320fadc3a489565a557 --- lams_tool_larsrc/web/pages/authoring/parts/itemlist.jsp (.../itemlist.jsp) (revision a0bce7961a19548c58f5b0025160f124785f9951) +++ lams_tool_larsrc/web/pages/authoring/parts/itemlist.jsp (.../itemlist.jsp) (revision b3fe40cd67fc779a6eee8320fadc3a489565a557) @@ -1,19 +1,14 @@ <%@ include file="/common/taglibs.jsp"%> - - - - -
    -

    - - -

    - - + +
    +
    + + +
    + +
    - - - @@ -87,49 +39,6 @@ onclick="previewItem(2,${status.index},'${sessionMapID}')"> - - - @@ -143,48 +52,6 @@ onclick="previewItem(3,${status.index},'${sessionMapID}')"> - - - @@ -198,69 +65,32 @@ onclick="previewItem(4,${status.index},'${sessionMapID}')"> - - - + + + + +
    - <%-- Don't display down icon if last line --%> - - - " - onclick="switchItem(${status.index}, ${status.index - 1}, '${sessionMapID}')"> - - - "> - - - - - - " - onclick="switchItem(${status.index}, ${status.index + 1}, '${sessionMapID}')"> - - - - "> - - - - - <%-- Don't display down icon if last line --%> - - " - onclick="editItem(${status.index},'${sessionMapID}')" /> - - - " - onclick="deleteItem(${status.index},'${sessionMapID}')" /> - - <%-- Don't display down icon if last line --%> - - - " - onclick="switchItem(${status.index}, ${status.index - 1}, '${sessionMapID}')"> - - - "> - - - - - - " - onclick="switchItem(${status.index}, ${status.index + 1}, '${sessionMapID}')"> - - - - "> - - - - - <%-- Don't display down icon if last line --%> - - " - onclick="editItem(${status.index},'${sessionMapID}')" /> - - - " - onclick="deleteItem(${status.index},'${sessionMapID}')" /> - - <%-- Don't display down icon if last line --%> - - - " - onclick="switchItem(${status.index}, ${status.index - 1}, '${sessionMapID}')"> - - - "> - - - - - - " - onclick="switchItem(${status.index}, ${status.index + 1}, '${sessionMapID}')"> - - - - "> - - - - - <%-- Don't display down icon if last line --%> - - " - onclick="editItem(${status.index},'${sessionMapID}')" /> - - " - onclick="deleteItem(${status.index},'${sessionMapID}')" /> - - <%-- Don't display down icon if last line --%> - - - " - onclick="switchItem(${status.index}, ${status.index - 1}, '${sessionMapID}')"> - - - "> - - - - - - " - onclick="switchItem(${status.index}, ${status.index + 1}, '${sessionMapID}')"> - - - - "> - - - - - <%-- Don't display down icon if last line --%> - - " - onclick="editItem(${status.index},'${sessionMapID}')" /> - - " - onclick="deleteItem(${status.index},'${sessionMapID}')" /> - + + + + + + + + + " id="edit${status.index}" + onclick="editItem(${status.index},'${sessionMapID}')">" id="delete${status.index}" + onclick="deleteItem(${status.index},'${sessionMapID}')">
    +
    -<%-- This script will works when a new resoruce item submit in order to refresh "Resource List" panel. --%> +<%-- This script will works when a new resource item submit in order to refresh "Resource List" panel. --%>