aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/jot-header.tpl
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-03-17 14:22:10 +0100
committerMario Vavti <mario@mariovavti.com>2017-03-17 14:22:10 +0100
commitd10525a375884850b1b643796b839747cbc623b2 (patch)
tree917c17806b477b7ddb7c51ef2c519ff27fb57ac3 /view/tpl/jot-header.tpl
parent4c2bdc9dc021418563040929fbd0363e08591f9f (diff)
downloadvolse-hubzilla-d10525a375884850b1b643796b839747cbc623b2.tar.gz
volse-hubzilla-d10525a375884850b1b643796b839747cbc623b2.tar.bz2
volse-hubzilla-d10525a375884850b1b643796b839747cbc623b2.zip
fix item_list and item_search templates. make item filer use a bootdtrap modal and some css and class fixes
Diffstat (limited to 'view/tpl/jot-header.tpl')
-rwxr-xr-xview/tpl/jot-header.tpl18
1 files changed, 5 insertions, 13 deletions
diff --git a/view/tpl/jot-header.tpl b/view/tpl/jot-header.tpl
index d846f3e34..535e6c66c 100755
--- a/view/tpl/jot-header.tpl
+++ b/view/tpl/jot-header.tpl
@@ -340,18 +340,12 @@ function enableOnUser(){
}
function itemFiler(id) {
-
- var bordercolor = $("input").css("border-color");
+ if($('#item-filer-dialog').length)
+ $('#item-filer-dialog').remove();
$.get('filer/', function(data){
- $.colorbox({html:data});
- $("#id_term").keypress(function(){
- $(this).css("border-color",bordercolor);
- })
- $("#select_term").change(function(){
- $("#id_term").css("border-color",bordercolor);
- })
-
+ $('body').append(data);
+ $('#item-filer-dialog').modal('show');
$("#filer_save").click(function(e){
e.preventDefault();
reply = $("#id_term").val();
@@ -362,9 +356,7 @@ function enableOnUser(){
// if(timer) clearTimeout(timer);
// timer = setTimeout(NavUpdate,3000);
liking = 1;
- $.colorbox.close();
- } else {
- $("#id_term").css("border-color","#FF0000");
+ $('#item-filer-dialog').modal('hide');
}
return false;
});