-
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.
- Loading branch information
Becky Bianco
authored and
Becky Bianco
committed
May 2, 2011
1 parent
1f58371
commit cae7c30
Showing
2 changed files
with
8 additions
and
9 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
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 |
---|---|---|
|
@@ -47,8 +47,12 @@ function login(type) { | |
firstBucket.tasks = [task1, task2]; | ||
secondBucket.tasks = [task3, task4]; | ||
var or=[firstBucket, secondBucket]; | ||
|
||
user = new User('img/personIcon.png', "Alice Packer", "[email protected]")//usually gotten from backend | ||
if(type == 'create') { | ||
user = new User('img/personIcon.png', $('#newNameEntry').val(), $('#newEmail').val())//usually gotten from backend | ||
$('#nameButton').val($('#newNameEntry').val()) | ||
} else { | ||
user = new User('img/personIcon.png', "Alice Packer", "[email protected]"); | ||
} | ||
user.organizer = or; | ||
user.friends = [new Collaborator("Becky Bianco", "[email protected]"), new Collaborator("Tamara Fleisher", "[email protected]")]; | ||
maxZ = 0; // should get this and totalPapers from data from backend | ||
|
@@ -460,11 +464,6 @@ function collabBlur(paperID) { | |
name = $(inp).val(); | ||
var collab = new Collaborator(name, null); | ||
addCollabToBucket(paper, collab); | ||
//$(inp).removeClass('new'); | ||
//name = $(inp).val(); | ||
//var iconText = "<img src='img/personIcon.png' class='icon persona'></img>" | ||
//var xbutton = "<div style='color:#808080; cursor: pointer; float: right;'>x</div>" | ||
//$('#'+currentView.objName+"collabs").append("<div>"+iconText+name+xbutton+"</div>"); | ||
} else { | ||
name = $(inp).val(); | ||
var collab = new Collaborator(name, null); | ||
|