This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if ticket.labels_new == "preview" %} | |
This is where your new form's code would go. | |
{% else %} | |
<div class="customer_widget" id="customer_widget_main"> | |
<div class="inside_title" style="font-size:25px"><img src= | |
"http://www.ebookconversion.biz/images/coffeecup_logo_banner_b.jpg"></div> | |
<div class="inside_desc"> | |
CONTACT BOOKNOOK.BIZ NOW! | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="//desk-customers.s3.amazonaws.com/shared/default/js/jquery.customSelect.min.js" type="text/javascript"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if case.custom_brand == "ABC Clothing Store" %} | |
<div class="agent_ticket_section"> | |
{{custom_shirt_size}} | |
</div> | |
{% endif %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% assign emails = case.emails %}{% assign threadlength = emails.size|minus:1 %} {% for email in emails reversed %}{% if forloop.first %}{{email.new_html}}{% if email.agent %}{% if email.agent.signature %}<div style="margin-top:10px;">{{email.agent.signature | newline_to_br}}</div>{% else %}<p>--<br/>{{email.agent.signature | newline_to_br}} | |
<br /></p>{% endif %}{% endif %}{% endif %}{% endfor %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(".input-block select, .input-block input, .input-block textarea").on("change keyup", function() { | |
$("ticket_labels_new").val(""); | |
var labels = []; | |
if ($("#div-inquiry-type select").val() == "Mobile App Support" && $("#div-platform select").val() == "Apple iPad" && $("#div-app select").val() == "Big Cat Week: Quest for Survival") { | |
labels.push("T- Channel"); | |
} | |
if ($("#div-inquiry-type select").val() == "Mobile App Support" && ($("#div-platform select").val() == "Apple iPad" || $("#div-platform select").val() == "Apple iPhone or iPod Touch" || $("#div-platform select").val() == "Android Phone (any)" || $("#div-platform select").val() == "Android Tablet (any)") && $("#div-app select").val() == "Nat Geo TV") { | |
labels.push("T- Channel"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- HTML --> | |
<div class="form-group div-category"> | |
<label for="ticket_custom_category" class="control-label">Category ({{system.snippets.required}}):</label> | |
{{ ticket_custom_category }} | |
</div> | |
<div class="form-group div-favorite-color"> | |
<label for="customer_custom_favorite_color" class="control-label">Favorite Color ({{system.snippets.required}}):</label> | |
{{ customer_custom_favorite_color }} | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Example form HTML --> | |
<div class="row"> | |
<div class="col-md-6"> | |
<div class="form-group"> | |
<label for="s-first-name" class="control-label">First Name <span class="required">*</span></label> | |
<input tabindex="1" id="s-first-name" class="form-control" maxlength="100" name="s-first-name" type="text"> | |
</div> | |
</div> | |
<div class="col-md-6"> | |
<div class="form-group"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if article == null %} | |
<script> | |
article_id = window.location.href.split("/portal/articles/")[1].split("-")[0]; | |
window.location = "https://my-site.desk.com/customer/portal/articles/" + article_id; | |
</script> | |
{% endif %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($) { | |
function nextPage(url, callback) { | |
$.get(url, function(data, textStatus, jqXHR) { | |
var cases = $(data).find('.mycases tbody tr') | |
, nextUrl = $(data).find('#pagination a.next_page'); | |
callback(cases); | |
if (nextUrl && nextUrl.attr('href')) nextPage(nextUrl.attr('href'), callback); | |
}, 'html'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($) { | |
function nextPage(url, callback) { | |
$.get(url, function(data, textStatus, jqXHR) { | |
var cases = $(data).find('.mycases tbody tr') | |
, nextUrl = $(data).find('#pagination a.next_page'); | |
callback(cases); | |
if (nextUrl && nextUrl.attr('href')) nextPage(nextUrl.attr('href'), callback); | |
}, 'html'); |