[otrs-cvs] FAQ/Kernel/Output/HTML/Standard AgentFAQZoomSmall.dtl, 1.16, 1.17
"CVS commits notifications of OTRS.org" <[email protected]> Wed, 12 Jun 2013 18:13:02 +0000
| Newsgroups | gmane.comp.otrs.cvs |
|---|---|
| Message-ID | <[email protected]> |
Comments:
Update of /home/cvs/FAQ/Kernel/Output/HTML/Standard
In directory lancelot:/tmp/cvs-serv4748/Kernel/Output/HTML/Standard
Modified Files:
AgentFAQZoomSmall.dtl
Log Message:
Added Insert Full FAQ (Text Images and Attachments) feature into tickets.
Author: cr
Index: AgentFAQZoomSmall.dtl
===================================================================
RCS file: /home/cvs/FAQ/Kernel/Output/HTML/Standard/AgentFAQZoomSmall.dtl,v
retrieving revision 1.16
retrieving revision 1.17
diff -2 -u -d -r1.16 -r1.17
--- AgentFAQZoomSmall.dtl 2 Mar 2013 19:44:09 -0000 1.16
+++ AgentFAQZoomSmall.dtl 12 Jun 2013 18:12:57 -0000 1.17
@@ -155,4 +155,5 @@
<div class="Clear"></div>
</div>
+ <input id="FAQID" type="hidden" name="FAQID" value="$QData{"ID"}">
<input id="FAQTitle" type="hidden" name="Title" value="$QData{"Title"}">
<input id="FAQBody" type="hidden" name="Body" value="$QData{"FullBody"}">
@@ -166,11 +167,19 @@
<!-- dtl:block:InsertText -->
+<!-- dtl:block:InsertFull -->
+ <button id="InsertFull" class="Primary ZoomSmallButton">$Text{"Insert Full FAQ"}</button>
+<!-- dtl:block:InsertFull -->
+
<!-- dtl:block:InsertLink -->
<button id="InsertLink" class="Primary ZoomSmallButton">$Text{"Insert FAQ Link"}</button>
<!-- dtl:block:InsertLink -->
-<!-- dtl:block:InsertBoth -->
- <button id="InsertBoth" class="Primary ZoomSmallButton">$Text{"Insert FAQ Text & Link"}</button>
-<!-- dtl:block:InsertBoth -->
+<!-- dtl:block:InsertTextAndLink -->
+ <button id="InsertTextAndLink" class="Primary ZoomSmallButton">$Text{"Insert FAQ Text & Link"}</button>
+<!-- dtl:block:InsertTextAndLink -->
+
+<!-- dtl:block:InsertFullAndLink -->
+ <button id="InsertFullAndLink" class="Primary ZoomSmallButton">$Text{"Insert Full FAQ & Link"}</button>
+<!-- dtl:block:InsertFullAndLink -->
<!-- dtl:block:Or -->
@@ -190,25 +199,36 @@
$('#InsertText').bind('click', function (event) {
- var FAQTitle = $('#FAQTitle').val(),
- FAQContent = $('#FAQBody').val(),
- FAQHTMLContent = FAQContent;
+ var InsertText = 1,
+ InsertLink = 0;
- FAQ.Agent.TicketCompose.SetData(FAQTitle, FAQContent, FAQHTMLContent);
+ FAQ.Agent.TicketCompose.SetText(InsertText, InsertLink);
});
$('#InsertLink').bind('click', function (event) {
- var FAQTitle = $('#FAQTitle').val(),
- FAQContent = $('#FAQPublicLink').val(),
- FAQHTMLContent = '<a href="' + $('#FAQPublicLink').val() + '">' + $('#FAQTitle').val() + '</a>';
+ var InsertText = 0,
+ InsertLink = 1;
- FAQ.Agent.TicketCompose.SetData(FAQTitle, FAQContent, FAQHTMLContent);
+ FAQ.Agent.TicketCompose.SetText(InsertText, InsertLink);
});
-$('#InsertBoth').bind('click', function (event) {
- var FAQTitle = $('#FAQTitle').val(),
- FAQContent = $('#FAQBody').val() + "\n" + $('#FAQPublicLink').val(),
- FAQHTMLContent = $('#FAQBody').val() + '<br/>' + '<a href="' + $('#FAQPublicLink').val() + '">' + $('#FAQTitle').val() + '</a>';
+$('#InsertTextAndLink').bind('click', function (event) {
+ var InsertText = 1,
+ InsertLink = 1;
- FAQ.Agent.TicketCompose.SetData(FAQTitle, FAQContent, FAQHTMLContent);
+ FAQ.Agent.TicketCompose.SetText(InsertText, InsertLink);
+});
+
+$('#InsertFull').bind('click', function (event) {
+ var InsertText = 1,
+ InsertLink = 0;
+
+ FAQ.Agent.TicketCompose.SetFullFAQ(InsertText, InsertLink);
+});
+
+$('#InsertFullAndLink').bind('click', function (event) {
+ var InsertText = 1,
+ InsertLink = 1;
+
+ FAQ.Agent.TicketCompose.SetFullFAQ(InsertText, InsertLink);
});
//]]></script>
---------------------------------------------------------------------
OTRS mailing list: cvs-log - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/cvs-log
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log