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
| onTicketSave: function(){ | |
| if(custom_field_A === 'apple'){ | |
| if (custom_field_B === ''){ | |
| return "please fill out custom field b" | |
| } else if (custom_field_C = ''){ | |
| return "please fill out custom field c" | |
| } else { | |
| return true; | |
| } | |
| } |
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> | |
| $(document).ready(function(){ | |
| (function(){ | |
| $('option[value="641"]').wrap('<span class="hide-option"></span>'); | |
| var isCust; | |
| function isCustomer(element, index, array){ | |
| return (element === 'paying'); | |
| } | |
| HelpCenter.user.organizations.forEach(function(x){ | |
| isCust = x.tags.some(isCustomer); |
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 getParameterByName( name,href ) | |
| { | |
| name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); | |
| var regexS = "[\\?&]"+name+"=([^&#]*)"; | |
| var regex = new RegExp( regexS ); | |
| var results = regex.exec( href ); | |
| if( results == null ) | |
| return ""; | |
| else | |
| return decodeURIComponent(results[1].replace(/\+/g, " ")); |
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
| /* ==================================================== | |
| things to hide at start up | |
| ==================================================== */ | |
| a[href$='requests/new'], .my-activities, #user-menu .my-activities { | |
| display: none; | |
| } |
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(!currentUser.isAnonymous){ | |
| $j('.tab_new').show(); | |
| $j('.tab_requests').show() | |
| } |
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
| events: { | |
| 'app.activated': 'appActivated', | |
| 'ticket.form.id.changed': 'hideCustomField' | |
| }, | |
| appActivated: function() { | |
| this.hideCustomField(); | |
| }, | |
| hideCustomField: function() { |
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
| jQuery(document).ready(function() { | |
| //list of fields to hide | |
| var options = ['#ticket_fields_139051']; | |
| //groups allowed to see the fields | |
| var allowGroups = [88054]; | |
| //function to hide a array of arrays | |
| var hide = function(){ |
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
| <h4>Blog</h4> | |
| <div id="feedContent"> | |
| </div> | |
| <script> | |
| $j(document).ready(function() { | |
| truncate = function(text, length, ellipsis) { |
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
| $j('span#title-tagger-147685').text('skip is 3113t'); | |
| $j('#drop-list-tagger-147685 li.link').each(function(){ | |
| if($j(this).data('value') === '') { | |
| $j(this).text('Skip is 3113t'); | |
| } | |
| }); |
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
| //place these right after return | |
| currAttempt : 0, | |
| MAX_ATTEMPTS : 20, | |
| events: { | |
| 'requiredProperties.ready': 'whatever' | |
| } | |
| // | |
| init: function() { |