diff options
author | friendica <info@friendica.com> | 2012-05-02 22:38:17 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-05-02 22:38:17 -0700 |
commit | 2bfba93940e9b7eecca7ae3496f1fd24a7cb44f7 (patch) | |
tree | dde5316bc6a4e806c220de480aeb78501cb62629 /view/theme/diabook/bottom.tpl | |
parent | e7ff35f27d7f2a7f7caed63f9bf48bd8104cc336 (diff) | |
parent | ff2ddc319d4307e56a1bf48f51f8f948fe0736ca (diff) | |
download | volse-hubzilla-2bfba93940e9b7eecca7ae3496f1fd24a7cb44f7.tar.gz volse-hubzilla-2bfba93940e9b7eecca7ae3496f1fd24a7cb44f7.tar.bz2 volse-hubzilla-2bfba93940e9b7eecca7ae3496f1fd24a7cb44f7.zip |
Merge https://github.com/friendica/friendica into pull
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"); |