forked from imifan/mifan
-
Notifications
You must be signed in to change notification settings - Fork 0
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
binnng
committed
Aug 9, 2014
1 parent
dde4e26
commit e198ad4
Showing
33 changed files
with
543 additions
and
191 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Mifan.controller "mDesginCtrl", ($scope, $timeout) -> | ||
|
||
DOC = $scope.DOC | ||
|
||
elMDesignTextarea = DOC["getElementById"] "m-design-input" | ||
|
||
# 设置展示界面类型 | ||
# ask => 提问 | ||
# | ||
$scope.$on "setMDesignType", (detail, msg) -> | ||
$scope.viewType = msg | ||
|
||
$timeout -> | ||
elMDesignTextarea.focus() | ||
, 400 | ||
|
||
# 取消内容发送的展示 | ||
# 实际上后台还会继续网络请求发送 | ||
$scope.$on "cancelMDesingSending", -> | ||
$scope.isSending = no | ||
$scope.mDesignContent = "" | ||
|
||
$scope.onSubmit = -> | ||
$scope.isSending = yes | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
|
||
Mifan.controller "mMenuCtrl", ($scope) -> | ||
Mifan.controller "mMenuCtrl", ($scope, $timeout) -> | ||
|
||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.