X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Ffrio%2Fjs%2Ftheme.js;h=9be1b9456e8f8254d36e99f093f59d096d222d01;hb=60c1172e7ef43ffa8a8e631c6e484e5ca803dbc7;hp=928b04551cc0d2febb07162d19fe4a08550ec3f6;hpb=d663447e3c751f26d5b188b98f4459e1b7639715;p=friendica.git diff --git a/view/theme/frio/js/theme.js b/view/theme/frio/js/theme.js index 928b04551c..9be1b9456e 100644 --- a/view/theme/frio/js/theme.js +++ b/view/theme/frio/js/theme.js @@ -1,3 +1,6 @@ + +var jotcache = ''; //The jot cache. We use it as cache to restore old/original jot content + $(document).ready(function(){ //fade in/out based on scrollTop value $(window).scroll(function () { @@ -68,24 +71,8 @@ $(document).ready(function(){ if( $("#jot-popup").is(":hidden")) $("#topbar-second > .container > #navbar-button #jotOpen").hide(); } - // move shared content in it's own DIV (so we can style it better) - $('.wall-item-body .shared_content').each(function() { - // create a DIV after ".shared_content" where we will putt in the shared_header - // and the "shared_content" - $(this).after('
'); - // get the shared_header - var sheader = $(this).prev(); - // get the shared-content-wrapper which we have created above - var swrapper = $(this).next(); - // move the "shared_header into the new shared_content DIV - $(swrapper).append(sheader); - // move the "shared_content" into the new DIV - $(swrapper).append(this); - }); - - // show bulk deletion button at network page if checkbox is checked - $('input.item-select').change(function(){ + $("body").change("input.item-select", function(){ var checked = false; // We need to get all checked items, so it would close the delete button @@ -130,6 +117,9 @@ $(document).ready(function(){ } }); + // initialize the bootstrap-select + $('.selectpicker').selectpicker(); + }); //function commentOpenUI(obj, id) {