From 0238925a635cd412e9c05131402fa68cc8e6b725 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sat, 8 Nov 2008 09:35:46 +0000 Subject: Restrict our dom traversal to look only for span.gInPlaceEdit for speed. --- core/views/in_place_edit.html.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core') diff --git a/core/views/in_place_edit.html.php b/core/views/in_place_edit.html.php index adcad6c6..2cf0c8a1 100644 --- a/core/views/in_place_edit.html.php +++ b/core/views/in_place_edit.html.php @@ -15,7 +15,7 @@ $(document).ready(function() { } var seen_before = {}; - var editable = $(".gInPlaceEdit"); + var editable = $("span.gInPlaceEdit"); for (i = 0; i < editable.length; i++) { var matches = editable[i].className.match(/gEditField-(\d+)-(\S+)/); if (matches && matches.length == 3) { @@ -35,4 +35,4 @@ $(document).ready(function() { } } }); - \ No newline at end of file + -- cgit v1.2.3