-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed some bugs that were introduced with 55a5e41
- Loading branch information
ReneHollander
committed
Nov 30, 2015
1 parent
55a5e41
commit 6815d2f
Showing
2 changed files
with
7 additions
and
14 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,17 @@ | ||
var tickpath = chrome.extension.getURL('tick.png'); | ||
events = $(".block_calendar_upcoming .content .event"); | ||
|
||
events.each(function() { | ||
checkAssignment($(this)); | ||
}); | ||
|
||
function checkAssignment(event) { | ||
var eventlink = event.find("> a"); | ||
var name = eventlink.text(); | ||
var handler = function(data) { | ||
$.get(eventlink.attr('href'), function(data) { | ||
var submissionstatussubmitted = $(data).find('.submissionstatussubmitted'); | ||
if (submissionstatussubmitted.length >= 1) { | ||
var img = event.find(".icon > img"); | ||
img.attr("src" , tickpath); | ||
} | ||
}; | ||
$.get(eventlink.attr('href'), handler); | ||
}); | ||
} | ||
events = $(".block_calendar_upcoming .content .event > a"); | ||
|
||
events.each(function() { | ||
$(".block_calendar_upcoming .content .event").each(function() { | ||
checkAssignment($(this)); | ||
}); | ||
}); |
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