复制备忘录小问题
This commit is contained in:
parent
50c5ececa8
commit
757ff6fd09
|
|
@ -108,7 +108,7 @@ app.controller('noteCtr', ['$scope', '$state', '$stateParams', '$filter', '$wind
|
|||
|
||||
$scope.copy = function(content) {
|
||||
var showContent = content.length >= 180 ? content.substr(0, 180) + '...' : content;
|
||||
clipboard.copy(showContent).then(
|
||||
clipboard.copy(content).then(
|
||||
function() {
|
||||
toastr.success(showContent + '<br/>已复制到您的剪切板', "提示");
|
||||
},
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
<div class="ui form" ng-show="add">
|
||||
<div class="required field">
|
||||
<label>内容</label>
|
||||
<textarea rows="4" placeholder="" ng-model="content" id="noteedit"></textarea>
|
||||
<textarea rows="12" placeholder="" ng-model="content" id="noteedit"></textarea>
|
||||
</div>
|
||||
<div class="field">
|
||||
<div class="actions">
|
||||
|
|
|
|||
Loading…
Reference in New Issue