From 626bb57e1dd0024c8d5d7f02cc8d4fb359152136 Mon Sep 17 00:00:00 2001 From: Vasudev Kamath Date: Sat, 14 Apr 2012 20:04:54 +0530 Subject: Removed execution permission: lintian warning in Debian packaging --- view/theme/diabook-red/communityhome.tpl | 0 view/theme/diabook-red/contact_template.tpl | 0 view/theme/diabook-red/directory_item.tpl | 0 view/theme/diabook-red/group_side.tpl | 0 view/theme/diabook-red/jot.tpl | 0 view/theme/diabook-red/mail_conv.tpl | 0 view/theme/diabook-red/photo_view.tpl | 0 view/theme/diabook-red/search_item.tpl | 0 8 files changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 view/theme/diabook-red/communityhome.tpl mode change 100755 => 100644 view/theme/diabook-red/contact_template.tpl mode change 100755 => 100644 view/theme/diabook-red/directory_item.tpl mode change 100755 => 100644 view/theme/diabook-red/group_side.tpl mode change 100755 => 100644 view/theme/diabook-red/jot.tpl mode change 100755 => 100644 view/theme/diabook-red/mail_conv.tpl mode change 100755 => 100644 view/theme/diabook-red/photo_view.tpl mode change 100755 => 100644 view/theme/diabook-red/search_item.tpl (limited to 'view/theme/diabook-red') diff --git a/view/theme/diabook-red/communityhome.tpl b/view/theme/diabook-red/communityhome.tpl old mode 100755 new mode 100644 diff --git a/view/theme/diabook-red/contact_template.tpl b/view/theme/diabook-red/contact_template.tpl old mode 100755 new mode 100644 diff --git a/view/theme/diabook-red/directory_item.tpl b/view/theme/diabook-red/directory_item.tpl old mode 100755 new mode 100644 diff --git a/view/theme/diabook-red/group_side.tpl b/view/theme/diabook-red/group_side.tpl old mode 100755 new mode 100644 diff --git a/view/theme/diabook-red/jot.tpl b/view/theme/diabook-red/jot.tpl old mode 100755 new mode 100644 diff --git a/view/theme/diabook-red/mail_conv.tpl b/view/theme/diabook-red/mail_conv.tpl old mode 100755 new mode 100644 diff --git a/view/theme/diabook-red/photo_view.tpl b/view/theme/diabook-red/photo_view.tpl old mode 100755 new mode 100644 diff --git a/view/theme/diabook-red/search_item.tpl b/view/theme/diabook-red/search_item.tpl old mode 100755 new mode 100644 -- cgit v1.2.3 From 41d74c08681db9fca60a1b70cfae0c0481f57a81 Mon Sep 17 00:00:00 2001 From: Vasudev Kamath Date: Sat, 14 Apr 2012 20:16:06 +0530 Subject: Another bunch of executable permission removal --- view/theme/diabook-red/fpostit/fpostit.js | 0 view/theme/diabook-red/icons/attach.png | Bin view/theme/diabook-red/icons/audio.png | Bin view/theme/diabook-red/icons/camera.png | Bin view/theme/diabook-red/icons/close_box.png | Bin view/theme/diabook-red/icons/contacts.png | Bin view/theme/diabook-red/icons/contacts2.png | Bin view/theme/diabook-red/icons/drop.png | Bin view/theme/diabook-red/icons/file_as.png | Bin view/theme/diabook-red/icons/link.png | Bin view/theme/diabook-red/icons/lock.png | Bin view/theme/diabook-red/icons/lupe.png | Bin view/theme/diabook-red/icons/next.png | Bin view/theme/diabook-red/icons/notifications.png | Bin view/theme/diabook-red/icons/pencil.png | Bin view/theme/diabook-red/icons/photo-menu.jpg | Bin view/theme/diabook-red/icons/prev.png | Bin view/theme/diabook-red/icons/recycle.png | Bin view/theme/diabook-red/icons/remote.png | Bin view/theme/diabook-red/icons/scroll_top.png | Bin view/theme/diabook-red/icons/star.png | Bin view/theme/diabook-red/icons/starred.png | Bin view/theme/diabook-red/icons/tagged.png | Bin view/theme/diabook-red/icons/unlock.png | Bin view/theme/diabook-red/icons/unstarred.png | Bin view/theme/diabook-red/icons/video.png | Bin view/theme/diabook-red/icons/weblink.png | Bin view/theme/diabook-red/theme.php | 0 28 files changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 view/theme/diabook-red/fpostit/fpostit.js mode change 100755 => 100644 view/theme/diabook-red/icons/attach.png mode change 100755 => 100644 view/theme/diabook-red/icons/audio.png mode change 100755 => 100644 view/theme/diabook-red/icons/camera.png mode change 100755 => 100644 view/theme/diabook-red/icons/close_box.png mode change 100755 => 100644 view/theme/diabook-red/icons/contacts.png mode change 100755 => 100644 view/theme/diabook-red/icons/contacts2.png mode change 100755 => 100644 view/theme/diabook-red/icons/drop.png mode change 100755 => 100644 view/theme/diabook-red/icons/file_as.png mode change 100755 => 100644 view/theme/diabook-red/icons/link.png mode change 100755 => 100644 view/theme/diabook-red/icons/lock.png mode change 100755 => 100644 view/theme/diabook-red/icons/lupe.png mode change 100755 => 100644 view/theme/diabook-red/icons/next.png mode change 100755 => 100644 view/theme/diabook-red/icons/notifications.png mode change 100755 => 100644 view/theme/diabook-red/icons/pencil.png mode change 100755 => 100644 view/theme/diabook-red/icons/photo-menu.jpg mode change 100755 => 100644 view/theme/diabook-red/icons/prev.png mode change 100755 => 100644 view/theme/diabook-red/icons/recycle.png mode change 100755 => 100644 view/theme/diabook-red/icons/remote.png mode change 100755 => 100644 view/theme/diabook-red/icons/scroll_top.png mode change 100755 => 100644 view/theme/diabook-red/icons/star.png mode change 100755 => 100644 view/theme/diabook-red/icons/starred.png mode change 100755 => 100644 view/theme/diabook-red/icons/tagged.png mode change 100755 => 100644 view/theme/diabook-red/icons/unlock.png mode change 100755 => 100644 view/theme/diabook-red/icons/unstarred.png mode change 100755 => 100644 view/theme/diabook-red/icons/video.png mode change 100755 => 100644 view/theme/diabook-red/icons/weblink.png mode change 100755 => 100644 view/theme/diabook-red/theme.php (limited to 'view/theme/diabook-red') diff --git a/view/theme/diabook-red/fpostit/fpostit.js b/view/theme/diabook-red/fpostit/fpostit.js old mode 100755 new mode 100644 diff --git a/view/theme/diabook-red/icons/attach.png b/view/theme/diabook-red/icons/attach.png old mode 100755 new mode 100644 diff --git a/view/theme/diabook-red/icons/audio.png b/view/theme/diabook-red/icons/audio.png old mode 100755 new mode 100644 diff --git a/view/theme/diabook-red/icons/camera.png b/view/theme/diabook-red/icons/camera.png old mode 100755 new mode 100644 diff --git a/view/theme/diabook-red/icons/close_box.png b/view/theme/diabook-red/icons/close_box.png old mode 100755 new mode 100644 diff --git a/view/theme/diabook-red/icons/contacts.png b/view/theme/diabook-red/icons/contacts.png old mode 100755 new mode 100644 diff --git a/view/theme/diabook-red/icons/contacts2.png b/view/theme/diabook-red/icons/contacts2.png old mode 100755 new mode 100644 diff --git a/view/theme/diabook-red/icons/drop.png b/view/theme/diabook-red/icons/drop.png old mode 100755 new mode 100644 diff --git a/view/theme/diabook-red/icons/file_as.png b/view/theme/diabook-red/icons/file_as.png old mode 100755 new mode 100644 diff --git a/view/theme/diabook-red/icons/link.png b/view/theme/diabook-red/icons/link.png old mode 100755 new mode 100644 diff --git a/view/theme/diabook-red/icons/lock.png b/view/theme/diabook-red/icons/lock.png old mode 100755 new mode 100644 diff --git a/view/theme/diabook-red/icons/lupe.png b/view/theme/diabook-red/icons/lupe.png old mode 100755 new mode 100644 diff --git a/view/theme/diabook-red/icons/next.png b/view/theme/diabook-red/icons/next.png old mode 100755 new mode 100644 diff --git a/view/theme/diabook-red/icons/notifications.png b/view/theme/diabook-red/icons/notifications.png old mode 100755 new mode 100644 diff --git a/view/theme/diabook-red/icons/pencil.png b/view/theme/diabook-red/icons/pencil.png old mode 100755 new mode 100644 diff --git a/view/theme/diabook-red/icons/photo-menu.jpg b/view/theme/diabook-red/icons/photo-menu.jpg old mode 100755 new mode 100644 diff --git a/view/theme/diabook-red/icons/prev.png b/view/theme/diabook-red/icons/prev.png old mode 100755 new mode 100644 diff --git a/view/theme/diabook-red/icons/recycle.png b/view/theme/diabook-red/icons/recycle.png old mode 100755 new mode 100644 diff --git a/view/theme/diabook-red/icons/remote.png b/view/theme/diabook-red/icons/remote.png old mode 100755 new mode 100644 diff --git a/view/theme/diabook-red/icons/scroll_top.png b/view/theme/diabook-red/icons/scroll_top.png old mode 100755 new mode 100644 diff --git a/view/theme/diabook-red/icons/star.png b/view/theme/diabook-red/icons/star.png old mode 100755 new mode 100644 diff --git a/view/theme/diabook-red/icons/starred.png b/view/theme/diabook-red/icons/starred.png old mode 100755 new mode 100644 diff --git a/view/theme/diabook-red/icons/tagged.png b/view/theme/diabook-red/icons/tagged.png old mode 100755 new mode 100644 diff --git a/view/theme/diabook-red/icons/unlock.png b/view/theme/diabook-red/icons/unlock.png old mode 100755 new mode 100644 diff --git a/view/theme/diabook-red/icons/unstarred.png b/view/theme/diabook-red/icons/unstarred.png old mode 100755 new mode 100644 diff --git a/view/theme/diabook-red/icons/video.png b/view/theme/diabook-red/icons/video.png old mode 100755 new mode 100644 diff --git a/view/theme/diabook-red/icons/weblink.png b/view/theme/diabook-red/icons/weblink.png old mode 100755 new mode 100644 diff --git a/view/theme/diabook-red/theme.php b/view/theme/diabook-red/theme.php old mode 100755 new mode 100644 -- cgit v1.2.3 From dddf3307af24de71a8b6e52a984ba2f2e310c3b7 Mon Sep 17 00:00:00 2001 From: tommy tomson Date: Sun, 15 Apr 2012 04:39:33 +0200 Subject: diabook-themes: added js for auto-growing comment-textareas --- view/theme/diabook-red/comment_item.tpl | 2 +- .../diabook-red/js/jquery.autogrow.textarea.js | 46 ++++++++++++++++++++++ view/theme/diabook-red/theme.php | 12 ++++++ 3 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 view/theme/diabook-red/js/jquery.autogrow.textarea.js (limited to 'view/theme/diabook-red') diff --git a/view/theme/diabook-red/comment_item.tpl b/view/theme/diabook-red/comment_item.tpl index 09fd8da3d..47046c371 100644 --- a/view/theme/diabook-red/comment_item.tpl +++ b/view/theme/diabook-red/comment_item.tpl @@ -11,7 +11,7 @@ $mytitle
- + img url video diff --git a/view/theme/diabook-red/js/jquery.autogrow.textarea.js b/view/theme/diabook-red/js/jquery.autogrow.textarea.js new file mode 100644 index 000000000..806e34f51 --- /dev/null +++ b/view/theme/diabook-red/js/jquery.autogrow.textarea.js @@ -0,0 +1,46 @@ +(function($) { + + /* + * Auto-growing textareas; technique ripped from Facebook + */ + $.fn.autogrow = function(options) { + + this.filter('textarea').each(function() { + + var $this = $(this), + minHeight = $this.height(), + lineHeight = $this.css('lineHeight'); + + var shadow = $('
').css({ + position: 'absolute', + top: -10000, + left: -10000, + width: $(this).width(), + fontSize: $this.css('fontSize'), + fontFamily: $this.css('fontFamily'), + lineHeight: $this.css('lineHeight'), + resize: 'none' + }).appendTo(document.body); + + var update = function() { + + var val = this.value.replace(//g, '>') + .replace(/&/g, '&') + .replace(/\n/g, '
'); + + shadow.html(val); + $(this).css('height', Math.max(shadow.height() + 20, minHeight)); + } + + $(this).change(update).keyup(update).keydown(update); + + update.apply(this); + + }); + + return this; + + } + +})(jQuery); \ No newline at end of file diff --git a/view/theme/diabook-red/theme.php b/view/theme/diabook-red/theme.php index c7fa77985..479a0130a 100644 --- a/view/theme/diabook-red/theme.php +++ b/view/theme/diabook-red/theme.php @@ -289,6 +289,9 @@ $a->page['htmlhead'] .= sprintf('', $imageresizeJS); +//load jquery.autogrow-textarea.js +$autogrowJS = $a->get_baseurl($ssl_state)."/view/theme/diabook-red/js/jquery.autogrow.textarea.js"; +$a->page['htmlhead'] .= sprintf('', $autogrowJS); //js scripts //comment-edit-wrapper on photo_view @@ -313,6 +316,15 @@ $a->page['htmlhead'] .= ' }); '; + +$a->page['htmlhead'] .= ' + +'; $a->page['htmlhead'] .= '