Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed up the tag widget, added a total node count to search

  • Loading branch information...
commit b875689d6040c4b6d9784ff2d2ecf101b54acedc 1 parent 7ff57bc
@adamhjk authored
View
2  app/views/search/_bulk_tag.rhtml
@@ -1,6 +1,6 @@
<div id="bulk_tag">
<% if nodes.length > 0 -%>
-<h1><%= heading %></h1>
+<h1><%= heading %></h1>
<p id="bulk_tags_notice" style="color: green"><%= flash[:bulk_tags_notice] %></p>
<% form_tag(url_for(:controller => "dashboard", :action => "bulk_tag"),
:id => "bulk_tag_list", :class => "remote_form_rjs", :update => "bulk_tag") do -%>
View
2  app/views/search/_listing.rhtml
@@ -1,5 +1,5 @@
<div id="node_listing" class="fieldset">
- <h2>Nodes</h2>
+ <h2>Nodes (<%= nodes.length %> <%= nodes.length == 1 ? "node" : "nodes" %>)</h2>
<%= link_to "Select All Nodes", "javascript: void(0);", { :class => "select_all", :to_select => "tag_node" } %>
<%= link_to "Unselect All Nodes", "javascript: void(0);", { :class => "unselect_all", :to_select => "tag_node" } %>
<%= render :partial => "nodes/listing", :locals => { :checkbox => true, :nodes => nodes, :table_id => "search_list" }%>
View
18 public/javascripts/iclassify.js
@@ -149,7 +149,7 @@ $(function() {
}
);
- $("input#tag_list").livequery("change",
+ $("input#tag_list").livequery("keyup",
function() {
current_tags = $(this).val();
$(".tag_cloud_entry").each(
@@ -173,6 +173,22 @@ $(function() {
}
);
+
+ /*
+ $("input#tag_list").livequery(
+ function () {
+ var mytags = [];
+ $(".tag_cloud_entry").each(
+ function() {
+ mytags.push($(this).attr("tag"));
+ }
+ );
+ $(this).tagSuggest({
+ tags: mytags
+ });
+ }
+ );
+ */
/*
function add_present_tag(link, tag, tag_cloud_id) {
link.addClassName("tag_present")
View
12 public/stylesheets/iclassify.css
@@ -364,4 +364,16 @@ h2.inline {
form.inline {
display: inline;
+}
+
+SPAN.tagMatches {
+ margin-left: 10px;
+}
+
+SPAN.tagMatches SPAN {
+ padding: 2px;
+ margin-right: 4px;
+ background-color: #0000AB;
+ color: #fff;
+ cursor: pointer;
}
Please sign in to comment.
Something went wrong with that request. Please try again.