summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-11-08 09:35:46 +0000
committerBharat Mediratta <bharat@menalto.com>2008-11-08 09:35:46 +0000
commit0238925a635cd412e9c05131402fa68cc8e6b725 (patch)
tree6b80e66ed63ca969c17dc93e805103558d83c45a
parent950c58e6d37f68f69815d4d73df5577b9789679a (diff)
Restrict our dom traversal to look only for span.gInPlaceEdit for speed.
-rw-r--r--core/views/in_place_edit.html.php4
1 files changed, 2 insertions, 2 deletions
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() {
}
}
});
-</script> \ No newline at end of file
+</script>