View encryptSID
function encryptSID(sid) { | |
sid = String(sid); | |
var sidLength = sid.length; | |
var encryptedSID = []; | |
for (var index = 0; index < sidLength; index++) { | |
var e = sid.charAt(index); | |
switch (index) { |
View backbone_pushstate_router.js
// Only need this for pushState enabled browsers | |
if (Backbone.history && Backbone.history._hasPushState) { | |
var $document = $(window.document); | |
var openLinkInTab = false; | |
$document.keydown(function(e) { | |
if (e.ctrlKey || e.keyCode === 91) { | |
openLinkInTab = true; | |
} | |
}); |