diff options
Diffstat (limited to 'tpl/default')
-rw-r--r-- | tpl/default/css/shaarli.css | 4 | ||||
-rw-r--r-- | tpl/default/tools.html | 14 |
2 files changed, 14 insertions, 4 deletions
diff --git a/tpl/default/css/shaarli.css b/tpl/default/css/shaarli.css index 8b86bce2..39bbd0a3 100644 --- a/tpl/default/css/shaarli.css +++ b/tpl/default/css/shaarli.css | |||
@@ -539,8 +539,8 @@ body, .pure-g [class*="pure-u"] { | |||
539 | color: #1b926c; | 539 | color: #1b926c; |
540 | } | 540 | } |
541 | 541 | ||
542 | .linklist-item-title .linklist-link:visited { | 542 | .linklist-item-title a:visited .linklist-link { |
543 | color: #1b926c; | 543 | color: #555555; |
544 | } | 544 | } |
545 | 545 | ||
546 | .linklist-item-title a:hover, .linklist-item-title .linklist-link:hover{ | 546 | .linklist-item-title a:hover, .linklist-item-title .linklist-link:hover{ |
diff --git a/tpl/default/tools.html b/tpl/default/tools.html index 6951ad28..35173d17 100644 --- a/tpl/default/tools.html +++ b/tpl/default/tools.html | |||
@@ -72,10 +72,15 @@ | |||
72 | function(){ | 72 | function(){ |
73 | var%20url%20=%20location.href; | 73 | var%20url%20=%20location.href; |
74 | var%20title%20=%20document.title%20||%20url; | 74 | var%20title%20=%20document.title%20||%20url; |
75 | var%20desc=document.getSelection().toString(); | ||
76 | if(desc.length>4000){ | ||
77 | desc=desc.substr(0,4000)+'...'; | ||
78 | alert('{function="str_replace(' ', '%20', t('The selected text is too long, it will be truncated.'))"}'); | ||
79 | } | ||
75 | window.open( | 80 | window.open( |
76 | '{$pageabsaddr}?post='%20+%20encodeURIComponent(url)+ | 81 | '{$pageabsaddr}?post='%20+%20encodeURIComponent(url)+ |
77 | '&title='%20+%20encodeURIComponent(title)+ | 82 | '&title='%20+%20encodeURIComponent(title)+ |
78 | '&description='%20+%20encodeURIComponent(document.getSelection())+ | 83 | '&description='%20+%20encodeURIComponent(desc)+ |
79 | '&source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1' | 84 | '&source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1' |
80 | ); | 85 | ); |
81 | } | 86 | } |
@@ -89,9 +94,14 @@ | |||
89 | class="bookmarklet-link" | 94 | class="bookmarklet-link" |
90 | href="javascript:( | 95 | href="javascript:( |
91 | function(){ | 96 | function(){ |
97 | var%20desc=document.getSelection().toString(); | ||
98 | if(desc.length>4000){ | ||
99 | desc=desc.substr(0,4000)+'...'; | ||
100 | alert("{function="str_replace(' ', '%20', t('The selected text is too long, it will be truncated.'))"}"); | ||
101 | } | ||
92 | window.open( | 102 | window.open( |
93 | '{$pageabsaddr}?private=1&post='+ | 103 | '{$pageabsaddr}?private=1&post='+ |
94 | '&description='%20+%20encodeURIComponent(document.getSelection())+ | 104 | '&description='%20+%20encodeURIComponent(desc)+ |
95 | '&source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1' | 105 | '&source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1' |
96 | ); | 106 | ); |
97 | } | 107 | } |