|
Check-in Number:
|
422 | |
| Date: |
2009-Sep-23 08:44:37 (local)
2009-Sep-23 15:44:37 (UTC) |
| User: | majid |
| Branch: | |
| Comment: |
more fixes for tag autofiltering |
| Tickets: |
|
| Inspections: |
|
| Files: |
|
temboz/pages/view.tmpl 1.65 -> 1.66
--- /tmp/T0CjaWMZ Mon Sep 6 18:02:35 2010
+++ /tmp/T1DjaWMZ Mon Sep 6 18:02:35 2010
@@ -153,13 +153,9 @@
\$('.ui-dialog-content select[name="match"]').val('phrase_lc');
}
if(context) {
- if(context == "tag") {
- \$('.ui-dialog-content select[name="match"]').val(context);
- \$('.ui-dialog-content select[name="target"]').hide();
- \$('.ui-dialog-content :checkbox').val(["feed_only"]);
- } else if(context == "title") {
- \$('.ui-dialog-content select[name="target"]').val(context);
- }
+ \$('.ui-dialog-content select[name="match"]').val(context);
+ \$('.ui-dialog-content select[name="target"]').hide();
+ \$('.ui-dialog-content :checkbox').val(["feed_only"]);
}
}
## hide tag layer until it is ready
@@ -175,11 +171,7 @@
} else {
var kw = \$.trim(get_selection());
if(kw!="" && elt.innerHTML.indexOf(kw)!=-1) {
- if (\$(elt).find("a.headline").html().indexOf(kw)!=-1) {
- kw_dialog(id, kw, "title");
- } else {
- kw_dialog(id, kw);
- }
+ kw_dialog(id, kw);
} else {
var tags = \$(elt).find("span.item_tag.highlighted").html();
if(tags) {