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
{ | |
"jshint_options" : { | |
// Settings | |
"passfail" : false, // Stop on first error. | |
"maxerr" : 100, // Maximum errors before stopping. | |
// Predefined globals whom JSHint will ignore. | |
"browser" : true, // Standard browser globals e.g. `window`, `document`. |
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
$(function () { | |
var regex = /\/#!\/projects\/[^\/]+\/tasks\/(\d+)\/?/; | |
function showModal (model) { | |
console.log('previewing task#' + model.id, model); | |
var view, dialog; | |
view = new Teambox.Views.Thread({model: model}); | |
dialog = (new Teambox.Views.Dialog({ |
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
// requires Infinite Scroll plugin by Paul Irish | |
// https://github.com/paulirish/infinite-scroll/blob/master/jquery.infinitescroll.min.js | |
$(function() { | |
if ($('#leftColumn').length > 0){ | |
var $ci = $('<div id="container-inner"></div>').prependTo('#container'); | |
$('#header, #fbFloat, #wrapper, #leftColumn, #rightColumn').detach().appendTo($ci); | |
$ci.infinitescroll({ | |
navSelector: "#pager", |
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
function validateXML(txt) | |
{ | |
// code for IE | |
if (window.ActiveXObject) | |
{ | |
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); | |
xmlDoc.async=false; | |
xmlDoc.loadXML(document.all(txt).value); | |
if(xmlDoc.parseError.errorCode!=0) |