diff options
author | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2007-09-17 22:23:40 +0000 |
---|---|---|
committer | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2007-09-17 22:23:40 +0000 |
commit | 721f6213cc1343e4ab613a89be55d37dd0780244 (patch) | |
tree | f778a1989c106845834ead6be9fa0e5e5e0e3e0d /live/js | |
parent | 5f3d9f1f80af84c71baed2fd9108aa1494ecaba5 (diff) | |
download | vdr-plugin-live-721f6213cc1343e4ab613a89be55d37dd0780244.tar.gz vdr-plugin-live-721f6213cc1343e4ab613a89be55d37dd0780244.tar.bz2 |
- Moved images from compiled in image dir to data dir 'img'.
- Fixed MapUrl entries to the new image location
- Adapted some pages for the new image locations.
- Added a preload functionalty to fill file cache at plugin startup.
Diffstat (limited to 'live/js')
-rw-r--r-- | live/js/live/pageenhance.js | 14 | ||||
-rw-r--r-- | live/js/live/vdr_status.js | 2 |
2 files changed, 7 insertions, 9 deletions
diff --git a/live/js/live/pageenhance.js b/live/js/live/pageenhance.js index d469a8b..0cbf2ff 100644 --- a/live/js/live/pageenhance.js +++ b/live/js/live/pageenhance.js @@ -14,11 +14,12 @@ var PageEnhance = new Class({ actionLinkSelector: 'a[href^="vdr_request/"]', hintTipSelector: '*[title]', hintClassName: 'hint', - notifyIdPrefix: 'notify', - infoWinStrings: { + infoWinOptions: { + bodyselect: 'div.epg_content', loadingMsg: 'loading', errorMsg: 'an error occured!' }, + notifyIdPrefix: 'notify', notifyStrings: { successMsg: '<img src="active.png" alt=""> Success!', errorMsg: '<img src="del.png" alt=""> failed!' @@ -68,12 +69,9 @@ var PageEnhance = new Class({ epgid = found[1]; el.addEvent('click', function(event){ var event = new Event(event); - new InfoWin.Ajax(epgid, href, { - bodyselect: 'div.epg_content', - onDomExtend: this.domExtend.bind(this), - loadingMsg: this.options.infoWinStrings.loadingMsg, - errorMsg: this.options.infoWinStrings.errorMsg - }).show(event); + new InfoWin.Ajax(epgid, href, $merge(this.options.infoWinOptions, { + onDomExtend: this.domExtend.bind(this) + })).show(event); event.stop(); return false; }.bind(this)); diff --git a/live/js/live/vdr_status.js b/live/js/live/vdr_status.js index c24ed72..13e4a0d 100644 --- a/live/js/live/vdr_status.js +++ b/live/js/live/vdr_status.js @@ -68,7 +68,7 @@ var LiveVdrInfo = Ajax.extend({ var img = $('statusReloadBtn'); if (img != null) { // change image according to state. - img.src = this.reload ? 'stop_update.png' : 'reload.png'; + img.src = this.reload ? 'img/stop_update.png' : 'img/reload.png'; } } if (this.reload) |