微信回复后先加载后启用回复按钮
This commit is contained in:
parent
18df93ba9f
commit
b17b92cc3e
|
@ -8,7 +8,7 @@
|
|||
<div class="post-title mb5"><span class="c-grey3 f15 fb">{{blog.title}}</span><img ng-if="blog.locked" src="/images/locked.png" style="display:inline-block;" /></div>
|
||||
<div class="post-title"><a herf="javascript:void(0);" class="mr10">{{blog.user.realname}}</a>发表博客</div>
|
||||
<div class="cl"></div>
|
||||
<div class="f13 c-grey3 mt10 text-control post-all-content" ng-bind-html="blog.content|safeHtml"></div>
|
||||
<div class="f13 c-grey3 mt10 text-control" ng-bind-html="blog.content|safeHtml"></div>
|
||||
<div class="cl"></div>
|
||||
<span class="c-grey f13 mt10 fl">{{blog.created_at}}</span>
|
||||
<div class="cl"></div>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<div class="post-title mb5"><a herf="javascript:void(0);" class="mr10">{{message.user.realname}}</a><span style="vertical-align:top;">给您留言了</span><br /></div>
|
||||
<div class="post-title">{{message.created_on}}</div>
|
||||
<div class="cl"></div>
|
||||
<div class="f13 c-grey3 mt10 text-control post-all-content" ng-bind-html="message.notes|safeHtml"></div>
|
||||
<div class="f13 c-grey3 mt10 text-control" ng-bind-html="message.notes|safeHtml"></div>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
<div class="post-interactive border-bottom">
|
||||
|
|
|
@ -16,7 +16,7 @@ app.factory('auth', function($http,$routeParams, $q){
|
|||
}
|
||||
|
||||
if(debug===true){
|
||||
_openid = "orgVLv8TlS6e7FDiI6xdTGHRaaRo"; //guange的帐号
|
||||
_openid = "1"; //guange的帐号
|
||||
}
|
||||
|
||||
var getOpenId = function() {
|
||||
|
@ -147,8 +147,6 @@ app.factory('common', function($http, auth, $routeParams){
|
|||
data: userInfo
|
||||
}).then(function successCallback(response) {
|
||||
//alert("提交成功");
|
||||
//数据提交完成,回复按钮启用
|
||||
data.disabled = false;
|
||||
if(typeof cb === 'function'){
|
||||
cb();
|
||||
}
|
||||
|
@ -219,6 +217,8 @@ app.controller('IssueController', function($scope, $http, $routeParams, auth, co
|
|||
common.addCommonReply($routeParams.id, 'Issue', data, function(){
|
||||
$scope.formData = {comment: ''};
|
||||
loadData($routeParams.id);
|
||||
//数据提交完成,回复按钮启用
|
||||
data.disabled = false;
|
||||
});
|
||||
|
||||
};
|
||||
|
@ -256,6 +256,8 @@ app.controller('HomeworkController', function($scope, $http, $routeParams, auth,
|
|||
common.addCommonReply($routeParams.id, 'HomeworkCommon', data, function(){
|
||||
$scope.formData = {comment: ''};
|
||||
loadData($routeParams.id);
|
||||
//数据提交完成,回复按钮启用
|
||||
data.disabled = false;
|
||||
});
|
||||
};
|
||||
|
||||
|
@ -292,6 +294,8 @@ app.controller('CourseNoticeController', function($scope, $http, $routeParams, a
|
|||
common.addCommonReply($routeParams.id, 'News', data, function(){
|
||||
$scope.formData = {comment: ''};
|
||||
loadData($routeParams.id);
|
||||
//数据提交完成,回复按钮启用
|
||||
data.disabled = false;
|
||||
});
|
||||
};
|
||||
|
||||
|
@ -328,6 +332,8 @@ app.controller('DiscussionController', function($scope, $http, $routeParams, aut
|
|||
common.addCommonReply($routeParams.id, 'Message', data, function(){
|
||||
$scope.formData = {comment: ''};
|
||||
loadData($routeParams.id);
|
||||
//数据提交完成,回复按钮启用
|
||||
data.disabled = false;
|
||||
});
|
||||
};
|
||||
|
||||
|
@ -364,6 +370,8 @@ app.controller('JournalsController', function($scope, $http, $routeParams, auth,
|
|||
common.addCommonReply($routeParams.id, 'JournalsForMessage', data, function(){
|
||||
$scope.formData = {comment: ''};
|
||||
loadData($routeParams.id);
|
||||
//数据提交完成,回复按钮启用
|
||||
data.disabled = false;
|
||||
});
|
||||
};
|
||||
|
||||
|
@ -402,6 +410,8 @@ app.controller('BlogController', function($scope, $http, $routeParams, auth, com
|
|||
common.addCommonReply($routeParams.id, 'BlogComment', data, function(){
|
||||
$scope.formData = {comment: ''};
|
||||
loadData($routeParams.id);
|
||||
//数据提交完成,回复按钮启用
|
||||
data.disabled = false;
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ a.underline {text-decoration:underline;}
|
|||
.tac {text-align:center;}
|
||||
|
||||
/*背景色*/
|
||||
.bg-grey {background-color:#c1c1c1;}
|
||||
.bg-grey {background-color:#c1c1c1 !important;}
|
||||
|
||||
/*动态样式*/
|
||||
.post-container {width:100%;}
|
||||
|
|
Loading…
Reference in New Issue