Source code
function() {
var value = top.getSelection();
if (!value || value == "") {
value = document.URL;
}
var url = "BASE" + "/occurrences/.suggest?value=" + encodeURIComponent(value);
var win = window.open(url,'topincs-dialog', 'width=800,height=600,left=100,top=100,resizable=yes');
setTimeout(function() {win.focus();}, 1000);
}
Details of this statement
Usage
*Allows you to create a new occurrence from any web page that you are visiting in your browser.*
If some text is selected on the web page, this text will become the value of the occurrence. Otherwise, the URL of the web page will be the value.
In both cases, a dialog will pop up, in which you are prompted for additional information (e.g. to which topic to add the occurrence to). Only after committing this dialog, the occurrence is created.
Language: English Details of this statement
|