diff options
author | Simon L'nu <simon.lnu@gmail.com> | 2012-05-03 00:25:56 -0400 |
---|---|---|
committer | Simon L'nu <simon.lnu@gmail.com> | 2012-05-03 00:25:56 -0400 |
commit | 0446766f0407b45c78031ad9e5029cc9218b025e (patch) | |
tree | 030c81fee9826ce80c0bd488f06fd469d2a6afa9 /view/theme/diabook/bottom.tpl | |
parent | 02dc116a9c646ea5683b8df199a7ff492ae6cfcb (diff) | |
parent | ff2ddc319d4307e56a1bf48f51f8f948fe0736ca (diff) | |
download | volse-hubzilla-0446766f0407b45c78031ad9e5029cc9218b025e.tar.gz volse-hubzilla-0446766f0407b45c78031ad9e5029cc9218b025e.tar.bz2 volse-hubzilla-0446766f0407b45c78031ad9e5029cc9218b025e.zip |
Merge branch 'master', remote-tracking branch 'remotes/upstream/master'
* remotes/upstream/master:
diabook-theme: small fix
diabook-theme: made boxes at right_aside sortable
use cid rather than uid in perms
Modify events_post() in mod/events.php to set the `private` field to true when an event is shared with specific people. This is necessary to have event posts show correctly in Diaspora if an event is created visible only to self, but modified later to be visible to others.
use mysql replace on cache items
fixing common friends
rev update
Moved Meta Viewport from global head.tpl to diabook's header
* master:
Diffstat (limited to 'view/theme/diabook/bottom.tpl')
-rw-r--r-- | view/theme/diabook/bottom.tpl | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/view/theme/diabook/bottom.tpl b/view/theme/diabook/bottom.tpl index 8eb71b7dd..2bb651796 100644 --- a/view/theme/diabook/bottom.tpl +++ b/view/theme/diabook/bottom.tpl @@ -1,11 +1,6 @@ <script type="text/javascript" src="$baseurl/view/theme/diabook/js/jquery.autogrow.textarea.js"></script> <script type="text/javascript"> -$(document).ready(function() { -}); -function tautogrow(id){ - $("textarea#comment-edit-text-" +id).autogrow(); - }; $(document).ready(function() { $("iframe").each(function(){ var ifr_source = $(this).attr("src"); @@ -21,9 +16,28 @@ $(document).ready(function() { }); }); + + $(document).ready(function(){ + $("#sortable_boxes").sortable({ + update: function(event, ui) { + var BoxOrder = $(this).sortable("toArray").toString(); + $.cookie("Boxorder", BoxOrder , { expires: 365, path: "/" }); + } + }); + var cookie = $.cookie("Boxorder"); + if (!cookie) return; + var SavedID = cookie.split(","); + for (var Sitem=0, m = SavedID.length; Sitem < m; Sitem++) { + $("#sortable_boxes").append($("#sortable_boxes").children("#" + SavedID[Sitem])); + } + }); + + function tautogrow(id){ + $("textarea#comment-edit-text-" +id).autogrow(); + }; + function yt_iframe() { - $("iframe").load(function() { var ifr_src = $(this).contents().find("body iframe").attr("src"); $("iframe").contents().find("body iframe").attr("src", ifr_src+"&wmode=transparent"); |