[otrs-cvs] CVS: FAQ/Kernel/Output/HTML/Standard AgentFAQ.dtl, 1.2,
1.3 FAQ.dtl,1.1.1.1,1.2
cvs-log at otrs.org
cvs-log at otrs.org
Mon Oct 2 17:36:37 CEST 2006
Update of /home/cvs/FAQ/Kernel/Output/HTML/Standard
In directory lancelot:/tmp/cvs-serv31922/Kernel/Output/HTML/Standard
Modified Files:
AgentFAQ.dtl FAQ.dtl
Log Message:
fixed javascript error
Index: AgentFAQ.dtl
===================================================================
RCS file: /home/cvs/FAQ/Kernel/Output/HTML/Standard/AgentFAQ.dtl,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** AgentFAQ.dtl 2 Aug 2006 12:36:48 -0000 1.2
--- AgentFAQ.dtl 2 Oct 2006 14:36:35 -0000 1.3
***************
*** 1,5 ****
# --
# AgentFAQ.dtl - provides HTML view for faq articles
! # Copyright (C) 2001-2005 Martin Edenhofer <martin+code at otrs.org>
# --
# $Id$
--- 1,5 ----
# --
# AgentFAQ.dtl - provides HTML view for faq articles
! # Copyright (C) 2001-2006 OTRS GmbH, http://otrs.org/
# --
# $Id$
***************
*** 348,351 ****
--- 348,366 ----
<!-- dtl:block:Add -->
+ <script language="JavaScript" type="text/javascript">
+ <!--
+ function submit_compose()
+ {
+ if (document.compose.Title.value == "") {
+ alert('$Text{"A article should have a title!"}');
+ document.compose.Title.focus();
+ return false;
+ }
+ else {
+ return true;
+ }
+ }
+ //-->
+ </script>
<!-- start form -->
***************
*** 434,437 ****
--- 449,469 ----
<!-- dtl:block:Update -->
+ <script language="JavaScript" type="text/javascript">
+ <!--
+ function submit_compose()
+ {
+ if (document.compose.Title.value == "") {
+ alert('$Text{"A article should have a title!"}');
+ document.compose.Title.focus();
+ return false;
+ }
+ else {
+ return true;
+ }
+ }
+ //-->
+ </script>
+
+
<table border="0" width="100%" cellspacing="0" cellpadding="3">
<tr>
Index: FAQ.dtl
===================================================================
RCS file: /home/cvs/FAQ/Kernel/Output/HTML/Standard/FAQ.dtl,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** FAQ.dtl 29 Jun 2006 09:29:51 -0000 1.1.1.1
--- FAQ.dtl 2 Oct 2006 14:36:35 -0000 1.2
***************
*** 1,5 ****
# --
# FAQ.dtl - provides HTML view for faq articles
! # Copyright (C) 2001-2005 Martin Edenhofer <martin+code at otrs.org>
# --
# $Id$
--- 1,5 ----
# --
# FAQ.dtl - provides HTML view for faq articles
! # Copyright (C) 2001-2006 OTRS GmbH, http://otrs.org/
# --
[...1024 lines suppressed...]
! <!-- dtl:block:ExplorerLatestCreate -->
!
!
! <!-- dtl:block:ExplorerLatestChange -->
! <h3>$Text{"LatestChangedItems"}</h3>
! <ul style="padding-left:0px;list-style-image:url($Env{"Images"}$Config{"FAQ::Item::Icon"});">
! <!-- dtl:block:ExplorerLatestChangeFAQItemRow -->
! <li>
! <a href="$Env{"Baselink"}Action=$Env{"Action"}&CategoryID=$QData{"CategoryID"}&ItemID=$QData{"ItemID"}">$QData{"Title"} ($QData{"CategoryName"})</a> $QData{"Language"} <br>
! <i>$TimeLong{"$Data{"Changed"}"}</i>
! </li>
! <!-- dtl:block:ExplorerLatestChangeFAQItemRow -->
! </ul>
! <!-- dtl:block:ExplorerLatestChange -->
!
!
</td>
</tr>
! </table>
<!-- dtl:block:Explorer -->
More information about the cvs-log
mailing list