# HG changeset patch
# User raph
# Date 1361986793 -3600
# Node ID a7efd386872a5ad8077b08489d285ad4fa08cef5
# Parent 566b590aaf8fdfaa5f64dc9e584b26ddd40ae823
Drag-and-drop support for Renkan
diff -r 566b590aaf8f -r a7efd386872a .project
--- a/.project Fri Feb 08 16:38:28 2013 +0100
+++ b/.project Wed Feb 27 18:39:53 2013 +0100
@@ -6,12 +6,12 @@
- org.python.pydev.PyDevBuilder
+ com.aptana.ide.core.unifiedBuilder
- org.python.pydev.pythonNature
+ com.aptana.projects.webnature
diff -r 566b590aaf8f -r a7efd386872a src/widgets/Annotation.js
--- a/src/widgets/Annotation.js Fri Feb 08 16:38:28 2013 +0100
+++ b/src/widgets/Annotation.js Wed Feb 27 18:39:53 2013 +0100
@@ -34,7 +34,7 @@
+ '
'
+ '
'
+ '{{#show_social}}
{{/show_social}}'
- + '
{{#show_annotation_type}} » {{/show_annotation_type}} '
+ + '{{#show_annotation_type}} » {{/show_annotation_type}} '
+ '( - )
'
+ '{{l10n.excerpt_from}} '
+ '( - )
'
@@ -167,6 +167,14 @@
this.source.getAnnotations().on("found", highlightTitleAndDescription);
this.source.getAnnotations().on("not-found", highlightTitleAndDescription);
this.source.getAnnotations().on("search-cleared", highlightTitleAndDescription);
+ this.$.find("[draggable]").on("dragstart", function(e) {
+ var url = (typeof currentAnnotation.url !== "undefined"
+ ? currentAnnotation.url
+ : (document.location.href.replace(/#.*$/,'') + '#id=' + currentAnnotation.id));
+ e.originalEvent.dataTransfer.setData("text/x-iri-title",currentAnnotation.title);
+ e.originalEvent.dataTransfer.setData("text/x-iri-description",currentAnnotation.description);
+ e.originalEvent.dataTransfer.setData("text/x-iri-uri",url);
+ });
}
IriSP.Widgets.Annotation.prototype.sendBounds = function() {
diff -r 566b590aaf8f -r a7efd386872a src/widgets/AnnotationsList.js
--- a/src/widgets/AnnotationsList.js Fri Feb 08 16:38:28 2013 +0100
+++ b/src/widgets/AnnotationsList.js Wed Feb 27 18:39:53 2013 +0100
@@ -65,15 +65,15 @@
IriSP.Widgets.AnnotationsList.prototype.annotationTemplate =
''
+ ''
+ '{{begin}} - {{end}}
'
- + '{{{description}}}
'
+ + '{{{hdescription}}}
'
+ '{{#tags.length}}'
+ '