Skip to content

Commit

Permalink
Use 0 when left isn't a percent. Fixes #9
Browse files Browse the repository at this point in the history
  • Loading branch information
imightbeamy committed Mar 17, 2015
1 parent 84f01b7 commit eda9ff7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion events.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function monthTimedEventKey($event) {
function cleanUp($event) {
var chip = $event.parents('.chip'),
left = Number(chip[0].style.left.replace(/%/g, ''));
chip.css('width', 100 - left + "%");
chip.css('width', 100 - (isNaN(left) ? 0 : left) + "%");
}

var weekTimed = new EventMerger(weekTimedEventKey, cleanUp),
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Event Merge for Google Calendar™",
"description": "Chrome extension that visually merges the same event on multiple Google Calendars into one event.",
"version": "1.3",
"version": "1.3.1",
"content_scripts": [ {
"matches": ["https://www.google.com/calendar/*", "http://www.google.com/calendar/*"],
"js": ["jquery-2.1.0.min.js", "events.user.js"],
Expand Down

0 comments on commit eda9ff7

Please sign in to comment.