|
|
|
@ -136,7 +136,7 @@ app.factory('common', function($http, auth, $routeParams){
|
|
|
|
|
url: apiUrl+ "new_comment/"+id,
|
|
|
|
|
data: userInfo
|
|
|
|
|
}).then(function successCallback(response) {
|
|
|
|
|
alert("提交成功");
|
|
|
|
|
//alert("提交成功");
|
|
|
|
|
//数据提交完成,回复按钮启用
|
|
|
|
|
data.disabled = false;
|
|
|
|
|
if(typeof cb === 'function'){
|
|
|
|
@ -410,11 +410,16 @@ app.directive('inputAuto',function(){
|
|
|
|
|
scope: {},
|
|
|
|
|
link: function(scope, element){
|
|
|
|
|
var copyContainer = element.parent().children().eq(0);
|
|
|
|
|
var sendButton = element.parent().next();
|
|
|
|
|
element.on('input',function(){
|
|
|
|
|
console.log(sendButton);
|
|
|
|
|
copyContainer.html(element[0].value);
|
|
|
|
|
var textHeight = copyContainer[0].scrollHeight;
|
|
|
|
|
element.css('height', textHeight + 'px');
|
|
|
|
|
});
|
|
|
|
|
sendButton.on('click',function(){
|
|
|
|
|
element.css('height','28px');
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|