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 /static/js | |
| parent | c1550c8b525521251d8213740dc56371644dc708 (diff) | |
reveal favs on /log
Diffstat (limited to 'static/js')
| -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 |
3 files changed, 37 insertions, 4 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()) + }) + }) +} + |
