This file contains 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('#topic_search').bind('DOMSubtreeModified', function(e) {console.log(e); console.log($j('#topic_search_result .item').length);}) |
This file contains 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
sortJsonArrayByProperty: function(objArray, prop, direction){ | |
if (arguments.length<2) throw new Error("sortJsonArrayByProp requires 2 arguments"); | |
var direct = arguments.length>2 ? arguments[2] : 1; //Default to ascending | |
if (objArray && objArray.constructor===Array){ | |
var propPath = (prop.constructor===Array) ? prop : prop.split("."); | |
objArray.sort(function(a,b){ | |
for (var p in propPath){ | |
if (a[propPath[p]] && b[propPath[p]]){ | |
a = a[propPath[p]]; | |
b = b[propPath[p]]; |
This file contains 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
.tab_new { | |
display: none; | |
} |
This file contains 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
Event.observe(window, 'load', function() { | |
jQuery('.assignee').parent().find('input.ui-widget').blur(function(){ | |
jQuery("#ticket_fields_22399063").val(jQuery('.assignee').find('option:selected').text()); | |
}); | |
}); |
This file contains 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.isAgent) { | |
if (window.location.pathname == '/bad/entry'){ | |
window.location.href = '/good/entry'; | |
} | |
} |
This file contains 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
<div id='createtheticket'> | |
<ol> | |
<li> | |
<div class="select" style> | |
<label for="zendeskSelect">Select Spoke Account</label> | |
<select id="zendeskSelect" name="zendeskSelect" onchange style="width: auto;"> | |
<option value="-">-</option> | |
<option value="sutoka.techassistant.net">Germany</option> | |
</select> | |
</li> |
This file contains 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
var UrbanDictionaryWidget = Class.create({ | |
getRandomTerm: function() { | |
var url = '/proxy/direct?url=http://www.urbandictionary.com/random.php' | |
new Ajax.Request(url, { | |
method:'post', | |
postBody: '', | |
onSuccess: function(transport) { | |
this.getDocument(transport.responseText); |
This file contains 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('h2.forums a:last-child').css('color', 'red') |
This file contains 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('#ticket_fields_104609').autocompleteFromSelect(); | |
$j('#ticket_fields_109943').autocompleteFromSelect(); |
This file contains 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
<div id="attachmentList"> | |
<div id="attachmentItem"> | |
</div> | |
</div> | |
<script type="application/javascript"> | |
(function () { | |
var processComments = function (data) { | |
data.forEach(function (i) { |