From 721f6213cc1343e4ab613a89be55d37dd0780244 Mon Sep 17 00:00:00 2001 From: Dieter Hametner Date: Mon, 17 Sep 2007 22:23:40 +0000 Subject: - 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. --- live/js/live/pageenhance.js | 14 ++++++-------- live/js/live/vdr_status.js | 2 +- 2 files changed, 7 insertions(+), 9 deletions(-) (limited to 'live/js') 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: ' Success!', errorMsg: ' 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) -- cgit v1.2.3