]> git.parisson.com Git - telemeta.git/commitdiff
minor fixes 2
authorriccardo <riccardo@parisson.com>
Wed, 11 May 2011 17:17:21 +0000 (19:17 +0200)
committerriccardo <riccardo@parisson.com>
Wed, 11 May 2011 17:17:21 +0000 (19:17 +0200)
telemeta/htdocs/css/telemeta.css
telemeta/htdocs/js/locale.js
telemeta/htdocs/timeside/src/divmarker.js

index e3350b1e7a275843672197579772b2b7de31f3f6..55c98e2841b0990f716822fb81d36295f75bbf98 100644 (file)
@@ -963,7 +963,7 @@ a.image-link {
 }
 
 .markerdiv div{
-    padding:1ex;
+    padding:0.7ex 1ex;
 }
 .markerdiv div[zero_top_padding]{ /*mathces any div with the attribute zero_top_padding set (whatever the value)*/
     padding-top:0px;
index f68ed18924e20ee4d77a3eb8cec105abd2724f07..f655e59dd4b29e92c2f51a4cab20246c1ee45ac1 100644 (file)
@@ -17,7 +17,8 @@ var localeStrings = {
     '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'),
     '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')
+    'If you exit the page you will loose your changes' : gettext('If you exit the page you will loose your changes'),
+    'author' : gettext('author')
 };
 
 function gettrans(str){
index 514b5d4baf84e34b0d36c2056393a804f983b488..319a489adf32b79461080eb250a231baeaacc94e 100644 (file)
@@ -122,14 +122,15 @@ var MarkerMapDiv = TimesideArray.extend({
             div.css('backgroundColor','#E65911');
             e_descriptionText.removeAttr('readonly').removeClass('markersdivUneditable');
             e_titleText.removeAttr('readonly').removeClass('markersdivUneditable');
-            e_okButton.show();
+            e_okButton.add(e_okButton.parent()).show(); //hiding also the parent div saves space (padding bottom hidden)
             e_titleText.select(); //TODO: this does NOT set the focus on the div. Why?
             editButton.hide();
         //e_titleText.focus();
         }else{
             e_descriptionText.attr('readonly','readonly').addClass('markersdivUneditable');
             e_titleText.attr('readonly','readonly').addClass('markersdivUneditable');
-            e_okButton.hide();
+            consolelog(e_okButton.parent());
+            e_okButton.add(e_okButton.parent()).hide(); //hiding also the parent div saves space (padding bottom hidden)
             editButton.show();
             div.css('backgroundColor','');
         }
@@ -204,7 +205,8 @@ var MarkerMapDiv = TimesideArray.extend({
             '<a class="markersdivDelete" title="delete"></a>'+
             '</div>'+
             '<div zero_top_padding><textarea class="markersdivDescription"></textarea></div>'+
-            '<div zero_top_padding><a class="markersdivSave">OK</a></div>'); //TODO: avoid text nodes
+            '<div zero_top_padding><a class="markersdivSave">OK</a></div>'+
+        '<div zero_top_padding><span style="font-size:75%;color:#999">'+gettrans('author')+': '+marker.author+'</span></div>'); //TODO: avoid text nodes
         div.find('a').attr('href','#');
         //todo: remove markerlabel from css!!!!!!!
         //new RulerMarker(div.find('.markerlbl'),div.find('.markercanvas'),'marker',false);
@@ -234,7 +236,7 @@ var MarkerMapDiv = TimesideArray.extend({
         e_titleText.val(marker.title ? marker.title : "");
         //}
 
-        e_okButton.hide();
+        e_okButton.add(e_okButton.parent()).hide(); //hiding also the parent div saves space (padding bottom hidden)
         e_editButton.show();
         e_deleteButton.show();
         e_addplaylistButton.show();