Skip to content

Commit

Permalink
this is backwards. fix w3
Browse files Browse the repository at this point in the history
  • Loading branch information
drcapulet committed Jul 30, 2011
1 parent 10fc534 commit 9bb5793
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webroot/desktop.js
Expand Up @@ -675,7 +675,7 @@ $(function () {
cntrlrCanvasContext.strokeStyle = 'rgb(' + (Math.floor(Math.random() * 256)) + ',' + (Math.floor(Math.random() * 256)) + ',' + (Math.floor(Math.random() * 256)) + ')'; cntrlrCanvasContext.strokeStyle = 'rgb(' + (Math.floor(Math.random() * 256)) + ',' + (Math.floor(Math.random() * 256)) + ',' + (Math.floor(Math.random() * 256)) + ')';
} else { } else {
cntrlrClickCalled = true; cntrlrClickCalled = true;
elem = document.elementFromPoint($("#cntrlr-cursor").position().left, $("#cntrlr-cursor").position().top); elem = document.elementFromPoint(parseInt($("#cntrlr-cursor").css('left').replace('px', ''), 10), parseInt($("#cntrlr-cursor").css('top').replace('px', ''), 10));
if(elem != null) { if(elem != null) {
if((elem.tagName == "INPUT" && elem.type.toLowerCase() != "submit" && elem.type.toLowerCase() != "checkbox" && elem.type.toLowerCase() != "radio") || elem.tagName == "TEXTAREA" || elem.tagName == "SELECT") { if((elem.tagName == "INPUT" && elem.type.toLowerCase() != "submit" && elem.type.toLowerCase() != "checkbox" && elem.type.toLowerCase() != "radio") || elem.tagName == "TEXTAREA" || elem.tagName == "SELECT") {
$(elem).click(); $(elem).click();
Expand Down

0 comments on commit 9bb5793

Please sign in to comment.