Skip to content
Browse files

Pass a jQuery from tabulator.xul to a pane as tabulator.jQuery -- see…

…ms to work on the surface
  • Loading branch information...
1 parent 2344800 commit 0429efda3897bf865d74d67c1a79b365136f1b04 Tim Berners-Lee committed Mar 22, 2012
Showing with 7 additions and 1 deletion.
  1. +2 −1 js/panes/internalPane.js
  2. +5 −0 tabulator.xul
View
3 js/panes/internalPane.js
@@ -46,7 +46,8 @@ tabulator.panes.internalPane = {
}
tabulator.outline.appendPropertyTRs(div, plist, false, filter)
plist = kb.statementsMatching(undefined, undefined, subject)
- tabulator.outline.appendPropertyTRs(div, plist, true, filter)
+ tabulator.outline.appendPropertyTRs(div, plist, true, filter);
+ if (typeof jQuery == 'undefined') var jQuery = tabulator.jQuery;
if (doc_uri) jQuery(div).append('<tr><td>Editable</td><td>'+tabulator.sparql.editable(doc_uri)+'</td></tr>');
return div
},
View
5 tabulator.xul
@@ -99,6 +99,11 @@
<script type="application/x-javascript"><![CDATA[
+// Create a jQuery $ which will
+tabulator.jQuery = $ = function(selector,context){ return new jQuery.fn.init(selector, context || window.content.document); };
+$.fn = $.prototype = jQuery.fn;
+
+
function openTool(url, type, width, height)
{
width = width || 500;

0 comments on commit 0429efd

Please sign in to comment.
Something went wrong with that request. Please try again.