Skip to content

Commit

Permalink
SAK-41485 Use server supplied new rubric title (sakaiproject#6649)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianfish authored Mar 13, 2019
1 parent bf9fd76 commit 7a96cd0
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ export class SakaiRubricEdit extends SakaiElement {

super();

//this.token = "";
//this.rubric = {};
this.popoverOpen = "false";
this.rubricClone = {};
}
Expand All @@ -21,10 +19,7 @@ export class SakaiRubricEdit extends SakaiElement {
if ("rubric" === name) {
this.rubricClone = JSON.parse(newValue);
if (this.rubricClone.new) {
this.rubricClone.title = "New Rubric";
setTimeout(function () {
this.querySelector(".edit").click();
}.bind(this),99);
this.updateComplete.then(() => this.querySelector(".edit").click() );
}
}
}
Expand Down

0 comments on commit 7a96cd0

Please sign in to comment.