diff options
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) |