Closes #126: click to copy

This commit is contained in:
jendib 2017-05-07 01:25:20 +02:00
parent 6b0106e385
commit c352b94b38

View File

@ -100,7 +100,8 @@ angular.module('docs').controller('DocumentView', function ($scope, $state, $sta
var title = 'Shared document'; var title = 'Shared document';
var msg = 'You can share this document by giving this link. ' + var msg = 'You can share this document by giving this link. ' +
'Note that everyone having this link can see the document.<br/>' + 'Note that everyone having this link can see the document.<br/>' +
'<input class="form-control share-link" type="text" readonly="readonly" value="' + link + '" />'; '<input class="form-control share-link" type="text" readonly="readonly" value="' + link + '"' +
' onclick="this.select(); document.execCommand(\'copy\');" />';
var btns = [ var btns = [
{result: 'unshare', label: 'Unshare', cssClass: 'btn-danger'}, {result: 'unshare', label: 'Unshare', cssClass: 'btn-danger'},
{result: 'close', label: 'Close'} {result: 'close', label: 'Close'}