aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/diabook/bottom.tpl
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-05-02 22:38:17 -0700
committerfriendica <info@friendica.com>2012-05-02 22:38:17 -0700
commit2bfba93940e9b7eecca7ae3496f1fd24a7cb44f7 (patch)
treedde5316bc6a4e806c220de480aeb78501cb62629 /view/theme/diabook/bottom.tpl
parente7ff35f27d7f2a7f7caed63f9bf48bd8104cc336 (diff)
parentff2ddc319d4307e56a1bf48f51f8f948fe0736ca (diff)
downloadvolse-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.tpl26
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");