parent
10017d2c69
commit
05170c43ed
@ -0,0 +1,32 @@
|
||||
/**
|
||||
* Created by ttang on 2016/9/5.
|
||||
*/
|
||||
app.directive('multiReply',["$timeout",function(timer){
|
||||
return{
|
||||
restrict: 'A',
|
||||
scope: {},
|
||||
link: function(scope, element){
|
||||
timer(function(){
|
||||
$(".reply-icons").each(function(){
|
||||
$(this).toggle(function(){
|
||||
var multiInput = $(this).next().next();
|
||||
multiInput.show();
|
||||
multiInput.focus();
|
||||
$(".post-reply-input").val("");
|
||||
$(multiInput).bind("focus",function(){
|
||||
$("#post_input_1").hide();
|
||||
});
|
||||
},function(){
|
||||
var multiInput = $(this).next().next();
|
||||
$(this).next().next().hide();
|
||||
$(this).next().next().blur();
|
||||
$(".post-reply-input").val("");
|
||||
$(multiInput).bind("blur",function(){
|
||||
$("#post_input_1").show();
|
||||
});
|
||||
});
|
||||
});
|
||||
})
|
||||
}
|
||||
}
|
||||
}]);
|
@ -1,17 +0,0 @@
|
||||
/**
|
||||
* Created by ttang on 2016/8/31.
|
||||
*/
|
||||
app.directive('submitStart',["$timeout",function(timer){
|
||||
return{
|
||||
restrict: 'A',
|
||||
scope: {},
|
||||
link: function(scope, element){
|
||||
timer(function(){
|
||||
$("#manageDelete,.login-box").click(function(){
|
||||
element.removeClass("bg-grey c-white");
|
||||
element.addClass("link-blue2");
|
||||
});
|
||||
})
|
||||
}
|
||||
}
|
||||
}]);
|
Loading…
Reference in new issue