diff options
| author | dumpfmprod <dumpfmprod@ubuntu.(none)> | 2013-09-10 13:10:56 -0400 |
|---|---|---|
| committer | dumpfmprod <dumpfmprod@ubuntu.(none)> | 2013-09-10 13:10:56 -0400 |
| commit | 7a62c03ebe5c36a47274d170ce8c39957cdf437c (patch) | |
| tree | 88e885767feef778bde41cce32321724471723ce | |
| parent | c1550c8b525521251d8213740dc56371644dc708 (diff) | |
reveal favs on /log
| -rw-r--r-- | static/js/pichat.js | 15 | ||||
| -rw-r--r-- | static/js/pichat2.js | 13 | ||||
| -rw-r--r-- | static/js/src/log.js | 13 | ||||
| -rw-r--r-- | template/log.st | 3 |
4 files changed, 39 insertions, 5 deletions
diff --git a/static/js/pichat.js b/static/js/pichat.js index 08054e7..5fd0de8 100644 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -445,7 +445,7 @@ function removeOldMessages(){ } } -window.TextEnabled = Preferences.getProperty("chat.textEnabled", "true") == "ok"; +window.TextEnabled = Preferences.getProperty("chat.textEnabled", "true") == "true"; window.ImgsEnabled = Preferences.getProperty("chat.imgsEnabled", "true") == "true"; function muteSelector() { @@ -547,7 +547,6 @@ function dragTarget (target, callbacks) { } base.enter = function(e){ base.target.classList.add('over'); - console.log(e.target); if ('enter' in callbacks) { callbacks.enter(Drag.url); } @@ -985,6 +984,18 @@ function initLogThumb(selector, parentSelector) { } }) } + +function load_favs(){ + $(function(){ + $(".permalink").each(function(){ + var $div = $("<div>"); + $div.load(this.href + " .faver-list"); + $div.insertBefore($(this).parent()) + }) + }) +} + + // Messages diff --git a/static/js/pichat2.js b/static/js/pichat2.js index ceeb397..5fd0de8 100644 --- a/static/js/pichat2.js +++ b/static/js/pichat2.js @@ -547,7 +547,6 @@ function dragTarget (target, callbacks) { } base.enter = function(e){ base.target.classList.add('over'); - console.log(e.target); if ('enter' in callbacks) { callbacks.enter(Drag.url); } @@ -985,6 +984,18 @@ function initLogThumb(selector, parentSelector) { } }) } + +function load_favs(){ + $(function(){ + $(".permalink").each(function(){ + var $div = $("<div>"); + $div.load(this.href + " .faver-list"); + $div.insertBefore($(this).parent()) + }) + }) +} + + // Messages diff --git a/static/js/src/log.js b/static/js/src/log.js index e5a93d9..0f678fe 100644 --- a/static/js/src/log.js +++ b/static/js/src/log.js @@ -31,4 +31,15 @@ function initLogThumb(selector, parentSelector) { } } }) -}
\ No newline at end of file +} + +function load_favs(){ + $(function(){ + $(".permalink").each(function(){ + var $div = $("<div>"); + $div.load(this.href + " .faver-list"); + $div.insertBefore($(this).parent()) + }) + }) +} + diff --git a/template/log.st b/template/log.st index ab4eb53..c235ae8 100644 --- a/template/log.st +++ b/template/log.st @@ -14,7 +14,7 @@ <div id="content"> <div id="messagePanep"> <div id="userListp"> - <h2> $roomkey$ log </h2><br><h3></h3> + <h2> $roomkey$ log </h2><br><h3></h3> </div> <div id="messageList"> @@ -57,5 +57,6 @@ </div> </div></div></div> +<script type="text/javascript">load_favs()</script> </body> </html> |
