Created
August 14, 2013 15:02
-
-
Save jfkhoury/6231905 to your computer and use it in GitHub Desktop.
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
that.buttonLabel = ko.computed(function () { | |
if (that.isTermSelected()) { | |
return str("deleteEntireTerm"); | |
} | |
if (idsToDelete().length > 0) { | |
return idsToDelete().length === 1 ? str("deleteCourse") : str("deleteCourses"); | |
} | |
return str("deleteSelection"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment