weixin_guange
parent
66357c4024
commit
e85f9373c8
After Width: | Height: | Size: 31 KiB |
@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Created by ttang on 2016/8/10.
|
||||
*/
|
||||
app.directive('atDeleteLink',["$timeout",function(timer){
|
||||
return{
|
||||
restrict: 'A',
|
||||
scope: {},
|
||||
link: function(scope, element){
|
||||
timer(function(){
|
||||
$(".at a").each(function(){
|
||||
var atText = $(this).text();
|
||||
$(this).parent().html(atText);
|
||||
});
|
||||
})
|
||||
}
|
||||
}
|
||||
}]);
|
@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Created by ttang on 2016/8/10.
|
||||
*/
|
||||
app.directive('inputFocus',function(){
|
||||
return{
|
||||
restrict: 'A',
|
||||
scope: {},
|
||||
link: function(scope, element){
|
||||
element.on('click',function(){
|
||||
$("#postInput1").focus();
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
Loading…
Reference in new issue