Update MarkdownSectionController with support for editing
This allows the MarkdownSectionController and ItemPageController to work together to begin an editing session for an item description.
This commit is contained in:
@@ -66,7 +66,7 @@ Event.route = 'route'
|
||||
Event.sort = 'sort'
|
||||
Event.sync = 'sync' # model, response
|
||||
Event.transitionEnd = (->
|
||||
return unless document?
|
||||
return 'transitionend' unless document?
|
||||
transitions =
|
||||
'WebkitTransition': 'webkitTransitionEnd'
|
||||
'MozTransition': 'transitionend'
|
||||
@@ -88,6 +88,10 @@ Key.Escape = 27
|
||||
Key.UpArrow = 38
|
||||
Key.DownArrow = 40
|
||||
|
||||
exports.GitHub = GitHub = {}
|
||||
GitHub.file = {}
|
||||
GitHub.file.itemDescription = _.template "/data/<%= modSlug %>/items/<%= itemSlug %>/item.cg"
|
||||
|
||||
exports.Login = Login = {}
|
||||
Login.authorizeUrl = _.template "https://github.com/login/oauth/authorize" +
|
||||
"?client_id=<%= clientId %>&scope=public_repo&state=<%= state %>"
|
||||
|
||||
Reference in New Issue
Block a user