mirror of
https://github.com/friendica/friendica
synced 2025-03-04 16:28:26 +00:00
Fix code style in itemFiler()
This commit is contained in:
parent
258476e14f
commit
9e3936b151
2 changed files with 23 additions and 24 deletions
|
@ -199,22 +199,21 @@ function enableOnUser(){
|
||||||
}
|
}
|
||||||
|
|
||||||
function itemFiler(id) {
|
function itemFiler(id) {
|
||||||
|
const bordercolor = $("input").css("border-color");
|
||||||
|
|
||||||
var bordercolor = $("input").css("border-color");
|
$.get('filer/', function (data) {
|
||||||
|
$.colorbox({html: data});
|
||||||
$.get('filer/', function(data){
|
$("#id_term").keypress(function () {
|
||||||
$.colorbox({html:data});
|
$(this).css("border-color", bordercolor);
|
||||||
$("#id_term").keypress(function(){
|
|
||||||
$(this).css("border-color",bordercolor);
|
|
||||||
})
|
})
|
||||||
$("#select_term").change(function(){
|
$("#select_term").change(function () {
|
||||||
$("#id_term").css("border-color",bordercolor);
|
$("#id_term").css("border-color", bordercolor);
|
||||||
})
|
})
|
||||||
|
|
||||||
$("#filer_save").click(function(e){
|
$("#filer_save").click(function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
reply = $("#id_term").val();
|
const reply = $("#id_term").val();
|
||||||
if(reply && reply.length) {
|
if (reply && reply.length) {
|
||||||
commentBusy = true;
|
commentBusy = true;
|
||||||
$('body').css('cursor', 'wait');
|
$('body').css('cursor', 'wait');
|
||||||
$.get('filer/' + id + '?term=' + reply, NavUpdate);
|
$.get('filer/' + id + '?term=' + reply, NavUpdate);
|
||||||
|
@ -224,12 +223,11 @@ function enableOnUser(){
|
||||||
force_update = true;
|
force_update = true;
|
||||||
$.colorbox.close();
|
$.colorbox.close();
|
||||||
} else {
|
} else {
|
||||||
$("#id_term").css("border-color","#FF0000");
|
$("#id_term").css("border-color", "#FF0000");
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function jotClearLocation() {
|
function jotClearLocation() {
|
||||||
|
|
|
@ -296,21 +296,21 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function itemFiler(id) {
|
function itemFiler(id) {
|
||||||
var bordercolor = $("input").css("border-color");
|
const bordercolor = $("input").css("border-color");
|
||||||
|
|
||||||
$.get('filer/', function(data){
|
$.get('filer/', function (data) {
|
||||||
$.colorbox({html:data});
|
$.colorbox({html: data});
|
||||||
$("#id_term").keypress(function(){
|
$("#id_term").keypress(function () {
|
||||||
$(this).css("border-color",bordercolor);
|
$(this).css("border-color", bordercolor);
|
||||||
})
|
})
|
||||||
$("#select_term").change(function(){
|
$("#select_term").change(function () {
|
||||||
$("#id_term").css("border-color",bordercolor);
|
$("#id_term").css("border-color", bordercolor);
|
||||||
})
|
})
|
||||||
|
|
||||||
$("#filer_save").click(function(e){
|
$("#filer_save").click(function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
reply = $("#id_term").val();
|
const reply = $("#id_term").val();
|
||||||
if(reply && reply.length) {
|
if (reply && reply.length) {
|
||||||
commentBusy = true;
|
commentBusy = true;
|
||||||
$('body').css('cursor', 'wait');
|
$('body').css('cursor', 'wait');
|
||||||
$.get('filer/' + id + '?term=' + reply, NavUpdate);
|
$.get('filer/' + id + '?term=' + reply, NavUpdate);
|
||||||
|
@ -321,8 +321,9 @@
|
||||||
$.colorbox.close();
|
$.colorbox.close();
|
||||||
formModified = true; // Mark the form as modified
|
formModified = true; // Mark the form as modified
|
||||||
} else {
|
} else {
|
||||||
$("#id_term").css("border-color","#FF0000");
|
$("#id_term").css("border-color", "#FF0000");
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue