diff options
author | zottel <github@zottel.net> | 2012-03-29 10:23:45 +0200 |
---|---|---|
committer | zottel <github@zottel.net> | 2012-03-29 10:23:45 +0200 |
commit | 953840cf822718cba66a0727b576c674c6e44875 (patch) | |
tree | a924cf0031d16f6f15b7d84d5f519ca4257042b4 /view/theme/testbubble/jot-header.tpl | |
parent | fb817a29a934a68f194a42c29d3ed11da2da558f (diff) | |
parent | 3ee529d095ac7e83ae1e71d86cbe6d443885d54e (diff) | |
download | volse-hubzilla-953840cf822718cba66a0727b576c674c6e44875.tar.gz volse-hubzilla-953840cf822718cba66a0727b576c674c6e44875.tar.bz2 volse-hubzilla-953840cf822718cba66a0727b576c674c6e44875.zip |
Merge remote branch 'upstream/master'
Diffstat (limited to 'view/theme/testbubble/jot-header.tpl')
-rwxr-xr-x | view/theme/testbubble/jot-header.tpl | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/view/theme/testbubble/jot-header.tpl b/view/theme/testbubble/jot-header.tpl index b44ea78fd..0d11da271 100755 --- 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(''); |