From: riccardo Date: Wed, 11 May 2011 16:44:36 +0000 (+0200) Subject: fixed minor stuff X-Git-Tag: 1.1~204 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=80e6e7fc5bf24897caeb01645af9b175f41c2c7c;p=telemeta.git fixed minor stuff -------------This line and the following will be ignored -------------- modified: telemeta/htdocs/js/locale.js telemeta/htdocs/timeside/src/divmarker.js telemeta/htdocs/timeside/src/markermap.js telemeta/htdocs/timeside/src/player.js unknown: telemeta/htdocs/js/soundmanager2-jsmin.js telemeta/htdocs/js/soundmanager2-nodebug.js telemeta/htdocs/swf/soundmanager2_debug.swf telemeta/htdocs/timeside/skins/lab/img/empty.png --- diff --git a/telemeta/htdocs/js/locale.js b/telemeta/htdocs/js/locale.js index c2de5388..f68ed189 100644 --- a/telemeta/htdocs/js/locale.js +++ b/telemeta/htdocs/js/locale.js @@ -15,7 +15,9 @@ var localeStrings = { 'delete the marker permanently?': gettext('delete the marker permanently?'), 'marker added to the selected playlist': gettext('marker added to the selected playlist'), 'item added to the selected playlist': gettext('item added to the selected playlist'), - 'collection added to the selected playlist': gettext('collection added to the selected playlist') + 'collection added to the selected playlist': gettext('collection added to the selected playlist'), + 'there is at least one unsaved marker': gettext('there is at least one unsaved marker'), + 'If you exit the page you will loose your changes' : gettext('If you exit the page you will loose your changes') }; function gettrans(str){ diff --git a/telemeta/htdocs/timeside/src/divmarker.js b/telemeta/htdocs/timeside/src/divmarker.js index 1245ad18..514b5d4b 100644 --- a/telemeta/htdocs/timeside/src/divmarker.js +++ b/telemeta/htdocs/timeside/src/divmarker.js @@ -261,8 +261,9 @@ var MarkerMapDiv = TimesideArray.extend({ return false; }); - - + if(!this.getCurrentUserName()){ + e_addplaylistButton.hide(); + } if(!marker.isEditable){ //marker is editable means that author == getCurrentUserName(). addToPlaylist diff --git a/telemeta/htdocs/timeside/src/markermap.js b/telemeta/htdocs/timeside/src/markermap.js index 000d7cba..bc3fe85e 100644 --- a/telemeta/htdocs/timeside/src/markermap.js +++ b/telemeta/htdocs/timeside/src/markermap.js @@ -29,8 +29,8 @@ var MarkerMap = TimesideArray.extend({ }); consolelog(markerUnsaved); if(markerUnsaved>0){ - return 'There ' + (markerUnsaved==1 ? 'is ' : 'are ') + markerUnsaved+ ' unsaved marker'+ - (markerUnsaved==1 ? '' : 's') + '. If you exit the page you will loose your changes'; + return gettrans('there is at least one unsaved marker') +' ('+ markerUnsaved+ '). '+ + gettrans('If you exit the page you will loose your changes'); } }; diff --git a/telemeta/htdocs/timeside/src/player.js b/telemeta/htdocs/timeside/src/player.js index 7e9470c0..c5303317 100644 --- a/telemeta/htdocs/timeside/src/player.js +++ b/telemeta/htdocs/timeside/src/player.js @@ -6,7 +6,8 @@ var Player = TimesideClass.extend({ this._super(); var player = this; - + //container is the div #player + if (!container){ this.debug('ERROR: container is null in initializing the player') }