Index: lams_tool_images/src/java/org/lamsfoundation/lams/tool/imageGallery/web/action/AuthoringAction.java
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_images/src/java/org/lamsfoundation/lams/tool/imageGallery/web/action/AuthoringAction.java,v
diff -u -r1.9.2.7 -r1.9.2.8
--- lams_tool_images/src/java/org/lamsfoundation/lams/tool/imageGallery/web/action/AuthoringAction.java 11 May 2016 07:15:19 -0000 1.9.2.7
+++ lams_tool_images/src/java/org/lamsfoundation/lams/tool/imageGallery/web/action/AuthoringAction.java 12 May 2016 09:54:34 -0000 1.9.2.8
@@ -953,19 +953,19 @@
private List createFileListFromMultipleForm(MultipleImagesForm multipleForm) {
List fileList = new ArrayList();
- if (!StringUtils.isEmpty(multipleForm.getFile1().getFileName())) {
+ if (multipleForm.getFile1() != null && !StringUtils.isEmpty(multipleForm.getFile1().getFileName())) {
fileList.add(multipleForm.getFile1());
}
- if (!StringUtils.isEmpty(multipleForm.getFile2().getFileName())) {
+ if (multipleForm.getFile2() != null && !StringUtils.isEmpty(multipleForm.getFile2().getFileName())) {
fileList.add(multipleForm.getFile2());
}
- if (!StringUtils.isEmpty(multipleForm.getFile3().getFileName())) {
+ if (multipleForm.getFile3() != null && !StringUtils.isEmpty(multipleForm.getFile3().getFileName())) {
fileList.add(multipleForm.getFile3());
}
- if (!StringUtils.isEmpty(multipleForm.getFile4().getFileName())) {
+ if (multipleForm.getFile4() != null && !StringUtils.isEmpty(multipleForm.getFile4().getFileName())) {
fileList.add(multipleForm.getFile4());
}
- if (!StringUtils.isEmpty(multipleForm.getFile5().getFileName())) {
+ if (multipleForm.getFile5() != null && !StringUtils.isEmpty(multipleForm.getFile5().getFileName())) {
fileList.add(multipleForm.getFile5());
}
Index: lams_tool_images/web/WEB-INF/struts-config.xml
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_images/web/WEB-INF/Attic/struts-config.xml,v
diff -u -r1.1.2.1 -r1.1.2.2
--- lams_tool_images/web/WEB-INF/struts-config.xml 27 Apr 2016 13:22:17 -0000 1.1.2.1
+++ lams_tool_images/web/WEB-INF/struts-config.xml 12 May 2016 09:54:34 -0000 1.1.2.2
@@ -300,11 +300,6 @@
scope="request"
validate="false">
-
-
-
-
-
-
-
-
+
+
-
+
+
+
+
\ No newline at end of file
Index: lams_tool_images/web/WEB-INF/tags/AuthoringRatingCriteria.tag
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_images/web/WEB-INF/tags/AuthoringRatingCriteria.tag,v
diff -u -r1.2.2.4 -r1.2.2.5
--- lams_tool_images/web/WEB-INF/tags/AuthoringRatingCriteria.tag 10 Mar 2016 09:47:16 -0000 1.2.2.4
+++ lams_tool_images/web/WEB-INF/tags/AuthoringRatingCriteria.tag 12 May 2016 09:54:34 -0000 1.2.2.5
@@ -18,6 +18,7 @@
<%-- Optional attribute --%>
<%@ attribute name="hasRatingLimits" required="false" rtexprvalue="true" %>
<%@ attribute name="formContentPrefix" required="false" rtexprvalue="true" %>
+<%@ attribute name="styleId" required="false" rtexprvalue="true" %>
<%@ attribute name="headerLabel" required="false" rtexprvalue="true" %>
<%@ attribute name="addLabel" required="false" rtexprvalue="true" %>
<%@ attribute name="deleteLabel" required="false" rtexprvalue="true" %>
@@ -106,16 +107,16 @@
jQuery(' ').append(jQuery(' ', {
'class': 'criteria-info',
html: ' ' +
- ' '
+ ' '
})).append(jQuery(' ', {
width: '40px',
- html: '
" />' +
+ html: '
" />' +
'
" />'
})).append(jQuery(' ', {
width: '20px',
- html: '
" />'
+ html: ' ">'
})).appendTo('#criterias-table');
reactivateArrows();
@@ -124,30 +125,29 @@
addCriteria();
addCriteria();
+ reactivateArrows();
function reactivateArrows() {
$('#criterias-table tr').each(function() {
$this = $(this); // cache $(this)
if ($this.is(':first-child')) {
- $(".up-arrow", $this).addClass("up-arrow-disabled").removeClass("up-arrow");
-
+ $(".arrow-up", $this).removeClass("fa fa-long-arrow-up fa-pull-left");
} else {
- $(".up-arrow-disabled", $this).addClass("up-arrow").removeClass("up-arrow-disabled");
+ $(".arrow-up", $this).addClass("fa fa-long-arrow-up fa-pull-left");
}
if ($this.is(':last-child')) {
- $(".down-arrow", $this).addClass("down-arrow-disabled").removeClass("down-arrow");
-
+ $(".arrow-down", $this).removeClass("fa fa-long-arrow-down fa-pull-right");
} else {
- $(".down-arrow-disabled", $this).addClass("down-arrow").removeClass("down-arrow-disabled");
+ $(".arrow-down", $this).addClass("fa fa-long-arrow-down fa-pull-right");
}
});
}
//upCriteria
- $( "body" ).on( "click", ".up-arrow", function() {
+ $( "body" ).on( "click", ".fa-long-arrow-up", function() {
var currentRow = $(this).closest('tr');
var currentCriteriaTd = $( ".criteria-info", currentRow);
var currentOrderId = $( "input[name^='criteriaOrderId']", currentCriteriaTd);
@@ -170,7 +170,7 @@
} );
//downCriteria
- $( "body" ).on( "click", ".down-arrow", function() {
+ $( "body" ).on( "click", ".fa-long-arrow-down", function() {
var currentRow = $(this).closest('tr');
var currentCriteriaTd = $( ".criteria-info", currentRow);
var currentOrderId = $( "input[name^='criteriaOrderId']", currentCriteriaTd);
@@ -193,7 +193,7 @@
});
//deleteCriteria
- $( "body" ).on( "click", ".delete-arrow", function() {
+ $( "body" ).on( "click", ".fa-times", function() {
var currentRow = $(this).closest('tr');
currentRow.remove();
@@ -241,112 +241,110 @@
}
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
">
-
-
">
-
-
+
-
+
-
-
-
-
-
" >
-
-
+
+
+
+
+
+
+
+
+
+
+
+ 1
+ 2
+ 3
+ 4
+ 5
+ 6
+ 7
+ 8
+ 9
+ 10
+
+
+
+
+
+
+
+
+
+ 1
+ 2
+ 3
+ 4
+ 5
+ 6
+ 7
+ 8
+ 9
+ 10
+
+
-
-
-
+
+
+ checked="checked"
+ />
+
+
+
-
-
-
-
-
-
-
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
-
-
-
-
-
-
-
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
-
+
+
+
+
-
-
-
- checked="checked"
- />
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
Index: lams_tool_images/web/WEB-INF/tags/CKEditor.tag
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_images/web/WEB-INF/tags/CKEditor.tag,v
diff -u -r1.14.2.1 -r1.14.2.2
--- lams_tool_images/web/WEB-INF/tags/CKEditor.tag 3 Sep 2014 13:19:54 -0000 1.14.2.1
+++ lams_tool_images/web/WEB-INF/tags/CKEditor.tag 12 May 2016 09:54:34 -0000 1.14.2.2
@@ -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}Replace
+
+
@@ -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",
Fisheye: Tag 1.1 refers to a dead (removed) revision in file `lams_tool_images/web/WEB-INF/tags/Comments.tag'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.1 refers to a dead (removed) revision in file `lams_tool_images/web/WEB-INF/tags/CommentsAuthor.tag'.
Fisheye: No comparison available. Pass `N' to diff?
Index: lams_tool_images/web/WEB-INF/tags/ImgButtonWrapper.tag
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_images/web/WEB-INF/tags/ImgButtonWrapper.tag,v
diff -u -r1.1 -r1.1.12.1
--- lams_tool_images/web/WEB-INF/tags/ImgButtonWrapper.tag 11 Oct 2008 12:04:14 -0000 1.1
+++ lams_tool_images/web/WEB-INF/tags/ImgButtonWrapper.tag 12 May 2016 09:54:34 -0000 1.1.12.1
@@ -1,37 +1,37 @@
-<%
-/****************************************************************
- * 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
- * ****************************************************************
- */
-
- /**
- * ImgButtonWrapper.tag
- * Author: Mitchell Seaton
- * Description: Simple wrapper that will display buttons correctly when RTL page rendering is used.
- */
-
- %>
-<%@ tag body-content="scriptless" %>
-
+<%
+/****************************************************************
+ * 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
+ * ****************************************************************
+ */
+
+ /**
+ * ImgButtonWrapper.tag
+ * Author: Mitchell Seaton
+ * Description: Simple wrapper that will display buttons correctly when RTL page rendering is used.
+ */
+
+ %>
+<%@ tag body-content="scriptless" %>
+
Index: lams_tool_images/web/WEB-INF/tags/Page.tag
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_images/web/WEB-INF/tags/Attic/Page.tag,v
diff -u -r1.1.2.1 -r1.1.2.2
--- lams_tool_images/web/WEB-INF/tags/Page.tag 10 Mar 2016 09:47:16 -0000 1.1.2.1
+++ lams_tool_images/web/WEB-INF/tags/Page.tag 12 May 2016 09:54:34 -0000 1.1.2.2
@@ -12,25 +12,38 @@
+
+
+
+
Fisheye: Tag 1.1 refers to a dead (removed) revision in file `lams_tool_images/web/WEB-INF/tags/RestrictedUsageAccordian.tag'.
Fisheye: No comparison available. Pass `N' to diff?
Index: lams_tool_images/web/WEB-INF/tags/Tab.tag
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_images/web/WEB-INF/tags/Tab.tag,v
diff -u -r1.1 -r1.1.12.1
--- lams_tool_images/web/WEB-INF/tags/Tab.tag 11 Oct 2008 12:04:14 -0000 1.1
+++ lams_tool_images/web/WEB-INF/tags/Tab.tag 12 May 2016 09:54:34 -0000 1.1.12.1
@@ -24,8 +24,8 @@
/**
* Tab.tag
- * Author: Mitchell Seaton
- * Description: Creates a tab element.
+ * Author: Fiona Malikoff
+ * Description: Creates a tab element within the Hybrid Tab Header.
* Wiki:
*/
%>
@@ -54,6 +54,9 @@
<%--
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;">
+
--%>
@@ -73,13 +76,14 @@
-
+
+
+ class="active"
+
+
+
+
+ class="disabled"
+
+
+
${tabTitle}
Index: lams_tool_images/web/WEB-INF/tags/TabBody.tag
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_images/web/WEB-INF/tags/TabBody.tag,v
diff -u -r1.1 -r1.1.12.1
--- lams_tool_images/web/WEB-INF/tags/TabBody.tag 11 Oct 2008 12:04:14 -0000 1.1
+++ lams_tool_images/web/WEB-INF/tags/TabBody.tag 12 May 2016 09:54:34 -0000 1.1.12.1
@@ -28,25 +28,17 @@
* 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"%>
-
-
-
-
-
-
-
-
-
-
+
+
+ active
+
-
-
+
Fisheye: Tag 1.1 refers to a dead (removed) revision in file `lams_tool_images/web/WEB-INF/tags/TabBodyArea.tag'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.1 refers to a dead (removed) revision in file `lams_tool_images/web/WEB-INF/tags/TabBodys.tag'.
Fisheye: No comparison available. Pass `N' to diff?
Index: lams_tool_images/web/WEB-INF/tags/Tabs.tag
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_images/web/WEB-INF/tags/Tabs.tag,v
diff -u -r1.1 -r1.1.12.1
--- lams_tool_images/web/WEB-INF/tags/Tabs.tag 11 Oct 2008 12:04:14 -0000 1.1
+++ lams_tool_images/web/WEB-INF/tags/Tabs.tag 12 May 2016 09:54:34 -0000 1.1.12.1
@@ -23,47 +23,70 @@
/**
* Tabs.tag
- * Author: Mitchell Seaton
- * Description: Create a tab list from a input collection or nested Tab tags.
- * Wiki:
+ * Author: Fiona Malikoff
+ * Description: Create a hybrid panel header that contains a nav bar that acts like tabs.
*/
- %>
-<%@ 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"%>
+<%@ 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"%>
+
+
+
+
+
+
-
-
-
-
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ${extraControl}
+
+
+
+
+
+
+
+
+
\ No newline at end of file
Index: lams_tool_images/web/WEB-INF/tags/headItems.tag
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_images/web/WEB-INF/tags/headItems.tag,v
diff -u -r1.2.2.1 -r1.2.2.2
--- lams_tool_images/web/WEB-INF/tags/headItems.tag 10 Feb 2016 10:01:52 -0000 1.2.2.1
+++ lams_tool_images/web/WEB-INF/tags/headItems.tag 12 May 2016 09:54:34 -0000 1.2.2.2
@@ -41,7 +41,9 @@
-
+
-
+
+
+
Index: lams_tool_images/web/WEB-INF/tlds/lams/lams.tld
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_images/web/WEB-INF/tlds/lams/lams.tld,v
diff -u -r1.6.2.4 -r1.6.2.5
--- lams_tool_images/web/WEB-INF/tlds/lams/lams.tld 10 Mar 2016 09:47:16 -0000 1.6.2.4
+++ lams_tool_images/web/WEB-INF/tlds/lams/lams.tld 12 May 2016 09:54:34 -0000 1.6.2.5
@@ -178,7 +178,7 @@
css
org.lamsfoundation.lams.web.tag.CssTag
empty
-
+
Output stylesheet based on the user preferences.
style
@@ -408,10 +408,18 @@
/WEB-INF/tags/TabBody.tag
+ TabBodys
+ /WEB-INF/tags/TabBodys.tag
+
+
TabName
/WEB-INF/tags/TabName.tag
+ TabBodyArea
+ /WEB-INF/tags/TabBodyArea.tag
+
+
CKEditor
/WEB-INF/tags/CKEditor.tag
@@ -440,17 +448,29 @@
/WEB-INF/tags/DefineLater.tag
- TSTable
- /WEB-INF/tags/TSTable.tag
-
-
Alert
/WEB-INF/tags/Alert.tag
Page
/WEB-INF/tags/Page.tag
+
+
+ TSTable
+ /WEB-INF/tags/TSTable.tag
+
+
+ Arrow
+ /WEB-INF/tags/Arrow.tag
+
+
+ AdvancedAccordian
+ /WEB-INF/tags/AdvancedAccordian.tag
+
+ RestrictedUsageAccordian
+ /WEB-INF/tags/RestrictedUsageAccordian.tag
+
ImgButtonWrapper
/WEB-INF/tags/ImgButtonWrapper.tag
@@ -493,5 +513,13 @@
head
/WEB-INF/tags/Head.tag
+
+ Comments
+ /WEB-INF/tags/Comments.tag
+
+
+ CommentsAuthor
+ /WEB-INF/tags/CommentsAuthor.tag
+
Index: lams_tool_images/web/common/header.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_images/web/common/header.jsp,v
diff -u -r1.1.12.2 -r1.1.12.3
--- lams_tool_images/web/common/header.jsp 10 Mar 2016 09:47:16 -0000 1.1.12.2
+++ lams_tool_images/web/common/header.jsp 12 May 2016 09:54:34 -0000 1.1.12.3
@@ -8,10 +8,10 @@
-
-
+
+
Index: lams_tool_images/web/common/messages.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_images/web/common/messages.jsp,v
diff -u -r1.1.12.1 -r1.1.12.2
--- lams_tool_images/web/common/messages.jsp 10 Mar 2016 09:47:16 -0000 1.1.12.1
+++ lams_tool_images/web/common/messages.jsp 12 May 2016 09:54:34 -0000 1.1.12.2
@@ -1,8 +1,8 @@
<%-- Error Messages --%>
-
+
-
+
\ No newline at end of file
Index: lams_tool_images/web/common/tabbedheader.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_images/web/common/tabbedheader.jsp,v
diff -u -r1.2.2.1 -r1.2.2.2
--- lams_tool_images/web/common/tabbedheader.jsp 10 Feb 2016 10:01:52 -0000 1.2.2.1
+++ lams_tool_images/web/common/tabbedheader.jsp 12 May 2016 09:54:34 -0000 1.2.2.2
@@ -4,10 +4,12 @@
+
-
+
+
+
-
Index: lams_tool_images/web/includes/javascript/imageGallerycommon.js
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_images/web/includes/javascript/imageGallerycommon.js,v
diff -u -r1.1.12.1 -r1.1.12.2
--- lams_tool_images/web/includes/javascript/imageGallerycommon.js 13 Apr 2015 18:18:03 -0000 1.1.12.1
+++ lams_tool_images/web/includes/javascript/imageGallerycommon.js 12 May 2016 09:54:34 -0000 1.1.12.2
@@ -1,8 +1,27 @@
+/**
+ * Launches the popup window for the instruction files
+ */
+function showMessage(url) {
+ $("#reourceInputArea").load(url, function() {
+ var area=document.getElementById("reourceInputArea");
+ if (area != null) {
+ area.style.width="100%";
+ area.style.height="100%";
+ area.style.display="block";
+ }
+ var elem = document.getElementById("saveCancelButtons");
+ if (elem != null) {
+ elem.style.display="none";
+ }
+ });
+}
+
function showBusy(targetDiv){
if($(targetDiv+"_Busy") != null){
document.getElementById(targetDiv+"_Busy").style.display = '';
}
}
+
function hideBusy(targetDiv){
if($(targetDiv+"_Busy") != null){
document.getElementById(targetDiv+"_Busy").style.display = 'none';
Index: lams_tool_images/web/includes/javascript/imageGalleryitem.js
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_images/web/includes/javascript/imageGalleryitem.js,v
diff -u -r1.4.2.2 -r1.4.2.3
--- lams_tool_images/web/includes/javascript/imageGalleryitem.js 13 Apr 2015 18:18:03 -0000 1.4.2.2
+++ lams_tool_images/web/includes/javascript/imageGalleryitem.js 12 May 2016 09:54:34 -0000 1.4.2.3
@@ -1,63 +1,152 @@
- var itemAttachmentTargetDiv = "itemAttachmentArea";
- function removeItemAttachment(idx){
- //var id = "instructionItem" + idx;
- //Element.remove(id);
- var url= removeItemAttachmentUrl;
- var reqIDVar = new Date();
- var param = "reqID="+reqIDVar.getTime();
- removeItemAttachmentLoading();
- var myAjax = new Ajax.Updater(
- itemAttachmentTargetDiv,
- url,
- {
- method:'post',
- parameters:param,
- onComplete:removeItemAttachmentComplete,
- evalScripts:true
- }
- );
- }
- function removeItemAttachmentLoading(){
- showBusy(itemAttachmentTargetDiv);
- }
- function removeItemAttachmentComplete(){
- hideBusy(itemAttachmentTargetDiv);
- }
-
- function cancelImageGalleryItem(){
- var win = null;
- if (window.hideMessage) {
- win = window;
- } else if (window.parent && window.parent.hideMessage) {
- win = window.parent;
- } else {
- win = window.top;
+var itemAttachmentTargetDiv = "itemAttachmentArea";
+function removeItemAttachment(idx){
+ removeItemAttachmentLoading();
+ $("#" + itemAttachmentTargetDiv).load(
+ removeItemAttachmentUrl,
+ {
+ reqID: new Date()
}
- win.hideMessage();
+ );
+}
+
+function removeItemAttachmentLoading(){
+ showBusy(itemAttachmentTargetDiv);
+}
+
+function cancelImageGalleryItem(){
+ var win = null;
+ if (window.hideMessage) {
+ win = window;
+ } else if (window.parent && window.parent.hideMessage) {
+ win = window.parent;
+ } else {
+ win = window.top;
}
- /**
- * Launches the popup window for the instruction files
- */
- function showMessage(url) {
- var area = window.document.getElementById('reourceInputArea');
- var elem = window.document.getElementById("saveCancelButtons");
- if (!area && window.parent) {
- area = window.parent.document.getElementById('reourceInputArea');
- elem = window.parent.document.getElementById("saveCancelButtons");
- }
- if (!area) {
- obj = window.top.document.getElementById('reourceInputArea');
- elem = window.top.document.getElementById("saveCancelButtons");
+ win.hideMessage();
+}
+
+function submitImageGalleryItem(){
+
+ if ( typeof CKEDITOR !== 'undefined' ) {
+ for ( instance in CKEDITOR.instances ) {
+ CKEDITOR.instances[instance].updateElement();
}
+ }
+
+ var formData = new FormData();
+ $.each($('#imageGalleryItemForm').serializeArray(), function(i, field) {
+ formData.append(field.name, field.value);
+ });
+
+ // validate uploading file if we add it for the first time
+ if (!eval($("#has-file").val())) {
+ var fileSelect = document.getElementById('file-select');
+ // Get the selected files from the input.
+ var files = fileSelect.files;
- if(area != null){
- area.style.width="100%";
- area.src=url;
- area.style.display="block";
+ if (files.length == 0) {
+ alert(LABEL_ITEM_BLANK);
+ return;
}
+ var file = files[0];
- if (elem != null) {
- elem.style.display="none";
+ // Check the file type.
+ if (file.name.length < 1) {
+ alert("file.name.length < 1");
+ return;
+ } else if (file.size > UPLOAD_FILE_LARGE_MAX_SIZE) {
+ alert(LABEL_MAX_FILE_SIZE);
+ return;
+ } else if (file.type != 'image/png' && file.type != 'image/jpg' && file.type != 'image/gif' && file.type != 'image/jpeg' ) {
+ alert(LABEL_NOT_ALLOWED_FORMAT);
+ return;
}
- location.hash = "reourceInputArea";
- }
+
+ // Add the file to the request.
+ formData.append('file', file, file.name);
+ }
+
+ $.ajax({
+ type: 'POST',
+ url: $("#imageGalleryItemForm").attr('action'),
+ data: formData,
+ processData: false,
+ contentType: false,
+ success: function(data) {
+ $('#imageGalleryListArea').html(data);
+ },
+ error: function(jqXHR, textStatus, errorMessage) {
+ alert(errorMessage);
+ }
+ });
+}
+
+function submitMultipleImageGalleryItems(){
+ var formData = new FormData();
+ formData.append('sessionMapID', $("#sessionMapID").val());
+
+ // Get selected files from the inputs
+ var validateFiles = [];
+ if ($('#file1').val()) {
+ var file = document.getElementById('file1').files[0];
+ validateFiles.push(file);
+ formData.append('file1', file, file.name);
+ }
+ if ($('#file2').val()) {
+ var file = document.getElementById('file2').files[0];
+ validateFiles.push(file);
+ formData.append('file2', file, file.name);
+ }
+ if ($('#file3').val()) {
+ var file = document.getElementById('file3').files[0];
+ validateFiles.push(file);
+ formData.append('file3', file, file.name);
+ }
+ if ($('#file4').val()) {
+ var file = document.getElementById('file4').files[0];
+ validateFiles.push(file);
+ formData.append('file4', file, file.name);
+ }
+ if ($('#file5').val()) {
+ var file = document.getElementById('file5').files[0];
+ validateFiles.push(file);
+ formData.append('file5', file, file.name);
+ }
+
+ // validate files
+ if (validateFiles.length == 0) {
+ alert(LABEL_ITEM_BLANK);
+ return;
+ }
+ for (var i = 0; i < validateFiles.length; i++) {
+ var file = validateFiles[i];
+
+ // Check the file type.
+ if(file.name.length < 1) {
+ alert("file.name.length < 1");
+ return;
+ } else if (file.size > UPLOAD_FILE_LARGE_MAX_SIZE) {
+ alert(LABEL_MAX_FILE_SIZE);
+ return;
+ } else if (file.type != 'image/png' && file.type != 'image/jpg' && file.type != 'image/gif' && file.type != 'image/jpeg' ) {
+ alert(LABEL_NOT_ALLOWED_FORMAT);
+ return;
+ }
+
+ // Add the file to the request.
+ }
+
+ $.ajax({
+ type: 'POST',
+ url: saveMultipleImagesUrl,
+ data: formData,
+ processData: false,
+ contentType: false,
+ success: function(data) {
+ $('#imageGalleryListArea').html(data);
+ },
+ error: function(jqXHR, textStatus, errorMessage) {
+ alert(errorMessage);
+ }
+ });
+}
Index: lams_tool_images/web/pages/authoring/advance.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_images/web/pages/authoring/advance.jsp,v
diff -u -r1.4.10.3 -r1.4.10.4
--- lams_tool_images/web/pages/authoring/advance.jsp 5 Oct 2015 16:40:56 -0000 1.4.10.3
+++ lams_tool_images/web/pages/authoring/advance.jsp 12 May 2016 09:54:34 -0000 1.4.10.4
@@ -3,10 +3,10 @@
-
-
-
-
-
+
+
+
-
+
-
-
-
+
+
-
+
-
-
-
+
+
-
+
-
-
-
+
+
+
-
-
checked="checked"
-
disabled="disabled"
- />
+
+
+
+ checked="checked"
+ disabled="disabled"
+ />
-
+
-
checked="checked"
-
disabled="disabled"
- />
+
-
+
+
display:none;
+
+
+
-
-
-
+
+
+
-
+
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
-
-
-
-
- <%@ include file="/common/messages.jsp"%>
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
-
+
+ <%@ include file="/common/messages.jsp"%>
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
- <%-- Default value
- cancelButtonLabelKey="label.authoring.cancel.button"
- saveButtonLabelKey="label.authoring.save.button"
- cancelConfirmMsgKey="authoring.msg.cancel.save"
+
+
+
-
-
+ contentFolderID="${formBean.contentFolderID}" />
+
+
-
+
-
-
-
-
-
+
+
+
+
Index: lams_tool_images/web/pages/authoring/basic.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_images/web/pages/authoring/basic.jsp,v
diff -u -r1.11.2.2 -r1.11.2.3
--- lams_tool_images/web/pages/authoring/basic.jsp 13 Apr 2015 18:18:03 -0000 1.11.2.2
+++ lams_tool_images/web/pages/authoring/basic.jsp 12 May 2016 09:54:34 -0000 1.11.2.3
@@ -10,22 +10,6 @@
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
-
+
+
+
+
+
+
+
<%@ include file="/pages/authoring/parts/itemlist.jsp"%>
-
- ');" class="button-add-item">
-
-
-
-
+
+
+
+
+
+
-
+
+
Index: lams_tool_images/web/pages/authoring/parts/addimage.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_images/web/pages/authoring/parts/addimage.jsp,v
diff -u -r1.3.2.6 -r1.3.2.7
--- lams_tool_images/web/pages/authoring/parts/addimage.jsp 10 Feb 2016 10:01:52 -0000 1.3.2.6
+++ lams_tool_images/web/pages/authoring/parts/addimage.jsp 12 May 2016 09:54:34 -0000 1.3.2.7
@@ -1,88 +1,66 @@
-
-
<%@ include file="/common/taglibs.jsp"%>
-
-
-
- <%@ include file="/common/header.jsp"%>
-
-
-
-
-
-
-
+
+
+
-
-
+
-
-
<%@ include file="/common/messages.jsp"%>
-
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
-
-
-
+
+
+
+
+
+
+ contentFolderID="${sessionMap.imageGalleryForm.contentFolderID}"
+ resizeParentFrameName="reourceInputArea" />
-
-
-
+
+
-
-
- <%@ include file="/pages/authoring/parts/imagefile.jsp"%>
-
-
+
-
+ ');"
+ class="btn btn-default btn-xs">
+
+
-
+
-
-
-
+
+
+
+
+
Index: lams_tool_images/web/pages/authoring/parts/addmultipleimages.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_images/web/pages/authoring/parts/addmultipleimages.jsp,v
diff -u -r1.1.10.3 -r1.1.10.4
--- lams_tool_images/web/pages/authoring/parts/addmultipleimages.jsp 10 Feb 2016 10:01:52 -0000 1.1.10.3
+++ lams_tool_images/web/pages/authoring/parts/addmultipleimages.jsp 12 May 2016 09:54:34 -0000 1.1.10.4
@@ -1,64 +1,56 @@
-
-
<%@ include file="/common/taglibs.jsp"%>
+
+
+
+
+
-
-
- <%@ include file="/common/header.jsp"%>
-
-
-
-
-
-
-
-
-
-
<%@ include file="/common/messages.jsp"%>
-
-
-
-
-
-
-
-
+
Index: lams_tool_images/web/pages/authoring/parts/imagefile.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_images/web/pages/authoring/parts/imagefile.jsp,v
diff -u -r1.1 -r1.1.10.1
--- lams_tool_images/web/pages/authoring/parts/imagefile.jsp 25 Dec 2008 14:28:02 -0000 1.1
+++ lams_tool_images/web/pages/authoring/parts/imagefile.jsp 12 May 2016 09:54:34 -0000 1.1.10.1
@@ -1,45 +1,38 @@
<%@ include file="/common/taglibs.jsp"%>
-
+
+
-
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
+
+
+
+
-
+
-
Index: lams_tool_images/web/pages/authoring/parts/itemlist.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_images/web/pages/authoring/parts/itemlist.jsp,v
diff -u -r1.12.2.2 -r1.12.2.3
--- lams_tool_images/web/pages/authoring/parts/itemlist.jsp 24 Apr 2015 10:00:49 -0000 1.12.2.2
+++ lams_tool_images/web/pages/authoring/parts/itemlist.jsp 12 May 2016 09:54:34 -0000 1.12.2.3
@@ -1,102 +1,74 @@
<%@ include file="/common/taglibs.jsp"%>
-
+
-
-
-
-
-
+
+
<%-- This script will works when a new resoruce item submit in order to refresh "ImageGallery List" panel. --%>
Index: lams_tool_images/web/pages/learning/parts/addimage.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_images/web/pages/learning/parts/addimage.jsp,v
diff -u -r1.3.2.3 -r1.3.2.4
--- lams_tool_images/web/pages/learning/parts/addimage.jsp 10 Mar 2016 09:47:16 -0000 1.3.2.3
+++ lams_tool_images/web/pages/learning/parts/addimage.jsp 12 May 2016 09:54:34 -0000 1.3.2.4
@@ -15,56 +15,59 @@
-
-
-
+
+
+
+
+
<%@ include file="/common/messages.jsp"%>
-
-
+
+
+
+
+
-
-
-
-
-
+
+
+
+
-
+
Index: lams_tool_images/web/pages/learning/parts/addmultipleimages.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_images/web/pages/learning/parts/addmultipleimages.jsp,v
diff -u -r1.1.10.3 -r1.1.10.4
--- lams_tool_images/web/pages/learning/parts/addmultipleimages.jsp 10 Mar 2016 09:47:16 -0000 1.1.10.3
+++ lams_tool_images/web/pages/learning/parts/addmultipleimages.jsp 12 May 2016 09:54:34 -0000 1.1.10.4
@@ -9,58 +9,62 @@
<%@ include file="/common/header.jsp"%>
-
-
-
-
+
+
+
+
+
+
<%@ include file="/common/messages.jsp"%>
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
+
-
-
+
+
+
Index: lams_tool_images/web/pages/learning/parts/commentsarea.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_images/web/pages/learning/parts/commentsarea.jsp,v
diff -u -r1.12.2.6 -r1.12.2.7
--- lams_tool_images/web/pages/learning/parts/commentsarea.jsp 10 Mar 2016 09:47:16 -0000 1.12.2.6
+++ lams_tool_images/web/pages/learning/parts/commentsarea.jsp 12 May 2016 09:54:34 -0000 1.12.2.7
@@ -75,7 +75,7 @@
-
+
disabled="disabled"
checked="checked"
@@ -104,7 +104,8 @@
-
+
Index: lams_tool_images/web/pages/monitoring/editactivity.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_images/web/pages/monitoring/editactivity.jsp,v
diff -u -r1.2 -r1.2.2.1
--- lams_tool_images/web/pages/monitoring/editactivity.jsp 27 Mar 2014 20:10:14 -0000 1.2
+++ lams_tool_images/web/pages/monitoring/editactivity.jsp 12 May 2016 09:54:34 -0000 1.2.2.1
@@ -3,16 +3,15 @@
-
+
-
+
-
+
- :
@@ -22,7 +21,6 @@
- :
@@ -35,7 +33,7 @@
-
+
Index: lams_tool_images/web/pages/monitoring/imagesummary.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_images/web/pages/monitoring/imagesummary.jsp,v
diff -u -r1.9.2.3 -r1.9.2.4
--- lams_tool_images/web/pages/monitoring/imagesummary.jsp 9 Feb 2016 18:53:11 -0000 1.9.2.3
+++ lams_tool_images/web/pages/monitoring/imagesummary.jsp 12 May 2016 09:54:34 -0000 1.9.2.4
@@ -36,16 +36,21 @@
-
-
+
+
+
+
+
+
-
-
-
${image.mediumFileUuid}&preferDownload=false
@@ -54,18 +59,21 @@
-
-
+
+
+
+
+
-
-
-
+
+
+
+
+
+
-
-
-
-
@@ -79,16 +87,15 @@
- ${groupSummary[0].sessionName}
+
+ ${groupSummary[0].sessionName}
+
-
-
- : ${groupSummary[0].numberOfVotesForImage}
-
-
-
+
+ : ${groupSummary[0].numberOfVotesForImage}
+
-
+
@@ -126,20 +133,21 @@
-
-
-
-
-
+
-
-
+
+
+
Index: lams_tool_images/web/pages/monitoring/monitoring.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_images/web/pages/monitoring/monitoring.jsp,v
diff -u -r1.9.2.4 -r1.9.2.5
--- lams_tool_images/web/pages/monitoring/monitoring.jsp 9 Feb 2016 18:53:11 -0000 1.9.2.4
+++ lams_tool_images/web/pages/monitoring/monitoring.jsp 12 May 2016 09:54:34 -0000 1.9.2.5
@@ -1,5 +1,4 @@
-
<%@ include file="/common/taglibs.jsp"%>
<%@ page import="org.lamsfoundation.lams.tool.imageGallery.ImageGalleryConstants"%>
@@ -13,35 +12,16 @@
-
+
-
@@ -95,9 +74,9 @@
$(document).ready(function(){
$(".tablesorter").tablesorter({
- theme: 'blue',
- widthFixed: true,
- widgets: ['zebra'],
+ theme: 'bootstrap',
+ headerTemplate : '{content} {icon}',
+ widgets: ["uitheme", "resizable", "filter"],
headers: {
0: { sorter: false }
@@ -129,26 +108,24 @@
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
+
+
-