better label for relmapper button
[scpubgit/stemmaweb.git] / root / js / componentload.js
index 4c17616..ba8e48d 100644 (file)
@@ -47,10 +47,12 @@ function loadTradition( textid, textname, editable ) {
        $('#open_stemma_add').show();
        $('#open_stemma_edit').show();
        $('#open_textinfo_edit').show();
+       $('#relatebutton_label').text('View collation and edit relationships');
     } else {
        $('#open_stemma_add').hide();
        $('#open_stemma_edit').hide();
        $('#open_textinfo_edit').hide();
+       $('#relatebutton_label').text('View collation and relationships');
     }
 
     // Then get and load the actual content.
@@ -88,7 +90,12 @@ function load_textinfo() {
        // Who the owner is
        $('#owner_id').empty().append('no one');
        if( selectedTextInfo.owner ) {
-               $('#owner_id').empty().append( selectedTextInfo.owner );
+               var owneremail = selectedTextInfo.owner;
+               var chop = owneremail.indexOf( '@' );
+               if( chop > -1 ) {
+                       owneremail = owneremail.substr( 0, chop + 1 ) + '...';
+               }
+               $('#owner_id').empty().append( owneremail );
        }
        // Whether or not it is public
        $('#not_public').empty();