X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Ftestbubble%2Fjot-header.tpl;h=0d11da271758c35e6df778d90fbae59f9b17ea37;hb=203aa819e2309e3e776aa1eaedb26b08d8336288;hp=b44ea78fddafb53a105cb5fe07192f4d7e9f5928;hpb=cafd4003522a472d2709569ea5eb5f80b817af23;p=friendica.git diff --git a/view/theme/testbubble/jot-header.tpl b/view/theme/testbubble/jot-header.tpl old mode 100755 new mode 100644 index b44ea78fdd..0d11da2717 --- a/view/theme/testbubble/jot-header.tpl +++ b/view/theme/testbubble/jot-header.tpl @@ -304,6 +304,41 @@ function initEditor(cb) { } } } + + function itemFiler(id) { + + var bordercolor = $("input").css("border-color"); + + $.get('filer/', function(data){ + $.fancybox(data); + $("#id_term").keypress(function(){ + $(this).css("border-color",bordercolor); + }) + $("#select_term").change(function(){ + $("#id_term").css("border-color",bordercolor); + }) + + $("#filer_save").click(function(e){ + e.preventDefault(); + reply = $("#id_term").val(); + if(reply && reply.length) { + commentBusy = true; + $('body').css('cursor', 'wait'); + $.get('filer/' + id + '?term=' + reply); + if(timer) clearTimeout(timer); + timer = setTimeout(NavUpdate,3000); + liking = 1; + $.fancybox.close(); + } else { + $("#id_term").css("border-color","#FF0000"); + } + return false; + }); + }); + + } + + function jotClearLocation() { $('#jot-coord').val('');