Permalink
Browse files

fcbkComplete fixes

  • Loading branch information...
1 parent 9e60e60 commit dbcdf25a3d4a06fd4326d38a43785ccb0be5b385 @adiezbal adiezbal committed Jun 22, 2011
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -1,5 +1,5 @@
/* TextboxList sample CSS */
-ul.holder { margin: 0; border: 1px solid #999; overflow: hidden; height: auto !important; height: 1%; padding: 4px 5px 0; }
+ul.holder { margin: 0; border: 1px solid #BDC7D8; overflow: hidden; height: auto !important; height: 1%; padding: 4px 5px 0; }
*:first-child+html ul.holder { padding-bottom: 2px; } * html ul.holder { padding-bottom: 2px; } /* ie7 and below */
ul.holder li { float: left; list-style-type: none; /*margin: 0 5px 4px 0;*/ white-space:nowrap;}
ul.holder li.bit-box, ul.holder li.bit-input input { font: 11px "Lucida Grande", "Verdana"; }
@@ -9,7 +9,7 @@ ul.holder li.bit-input input { width: auto; overflow:visible; margin: 0; border:
ul.holder li.bit-input input.smallinput { width: 20px; }
/* Facebook demo CSS */
-ul.holder { width: 500px; }
+ul.holder { width: 90%; }
/*ul.holder { margin: 0 !important }*/
ul.holder li.bit-box, #apple-list ul.holder li.bit-box { padding-right: 15px; position: relative; z-index:1000;}
#apple-list ul.holder li.bit-input { margin: 0; }
@@ -22,7 +22,7 @@ ul.holder li.bit-box-focus a.closebutton, ul.holder li.bit-box-focus a.closebutt
/* Autocompleter */
-.facebook-auto { display: none; position: absolute; /*width: 512px;*/ background: #eee; z-index:1001;}
+.facebook-auto { display: none; position: absolute; min-width: 120px !important; background: #eee; z-index:1001;}
.facebook-auto .default { padding: 5px 7px; border: 1px solid #ccc; border-width: 0 1px 1px;font-family:"Lucida Grande","Verdana"; font-size:11px; }
.facebook-auto ul { display: none; margin: 0; /*padding: 0;*/ overflow: auto; position:absolute; z-index:9999}
.facebook-auto ul li { padding: 5px 12px; z-index: 1000; cursor: pointer; margin: 0; list-style-type: none; border: 1px solid #BDC7D8; border-width: 0 0px 1px; font: 11px "Lucida Grande", "Verdana"; background-color: #E1EEF5; width: 90% }
@@ -27,19 +27,19 @@
</div>
<div class="action">
<% if notification.is_unread?(current_subject) %>
- <%= link_to(image_tag('btn/btn_notification_delete.png', :alt => t('notification.read'),
+ <%= link_to(image_tag('btn/btn_notification_read.png', :alt => t('notification.read'),
:title => t('notification.read')), notification_path(notification, :page => params[:page], :read => "Read"),
:method => :put, :remote => true) %>
<% else%>
- <%= link_to(image_tag('btn/btn_notification_delete.png', :alt => t('notification.unread'),
+ <%= link_to(image_tag('btn/btn_notification_unread.png', :alt => t('notification.unread'),
:title => t('notification.unread')), notification_path(notification, :page => params[:page], :read => "Unread"),
:method => :put, :remote => true) %>
<% end%>
</div>
<div class="action">
<%= link_to(image_tag('btn/btn_notification_delete.png', :alt => "Delete", :title => "Delete"),
notification_path(notification, :page => params[:page]),
- :confirm => 'Do you want to delete "' + notification.subject,
+ :confirm => t('notification.destroy_sure'),
:method => :delete, :remote => true) %>
</div>
<div class="clearfloat">
@@ -46,41 +46,37 @@ end %>
<div class="block" id="profile_form">
<% if !params[:section].present? or params[:section].eql?("tags") %>
- <% content_for :headers do %>
- <%= stylesheet_link_tag "fcbkComplete.css", :media => "screen, projection" %>
- <%= javascript_include_tag 'jquery.fcbkcomplete.min', 'jquery.validate' %>
- <% end %>
-
- <% content_for :javascript do %>
- $(function() {
- $(".new_group").validate();
- });
- $("#profile_actor_attributes_tag_list").fcbkcomplete({
- json_url: "<%= tags_path(:format => :json) %>",
- cache: false,
- filter_case: true,
- filter_hide: true,
- newel: false,
- height: 6
- });
- <% @profile.subject.tag_list.each do |tag| %> $("#profile_actor_attributes_tag_list").trigger("addItem",{"title":"<%= tag %>","value":"<%= tag %>"});
- <% end %>
- <% end %>
-
+ <% content_for :headers do %>
+ <%= stylesheet_link_tag "fcbkComplete.css", :media => "screen, projection" %>
+ <%= javascript_include_tag 'jquery.fcbkcomplete.min', 'jquery.validate' %>
+ <% end %>
+
+ <% content_for :javascript do %>
+ $(function() {
+ $(".new_group").validate();
+ });
+ $("#profile_actor_attributes_tag_list").fcbkcomplete({
+ json_url: "<%= tags_path(:format => :json) %>",
+ cache: false,
+ filter_case: true,
+ filter_hide: true,
+ newel: false,
+ height: 6
+ });
+ <% @profile.subject.tag_list.each do |tag| %> $("#profile_actor_attributes_tag_list").trigger("addItem",{"title":"<%= tag %>","value":"<%= tag %>"});
+ <% end %>
+ <% end %>
+
<div class="row">
- <div class="form_row">
- <%= f.fields_for :actor do |actor_form| %>
- <div class="form_row">
- <div class="form_label">
- <%= f.label t(current_subject.class.to_s.downcase + '.tags') %>
- </div>
- <div class="form_field">
- <%= actor_form.select :tag_list, [], :class => "form_tag" %>
- </div>
- </div>
- <%end%>
- </div>
- </div>
+ <div class="form_row">
+ <h2><%=t('profile.tags.other')%></h2>
+ </div>
+ <%= f.fields_for :actor do |actor_form| %>
+ <div class="form_row">
+ <%= actor_form.select :tag_list, [], :class => "form_tag" %>
+ </div>
+ <%end%>
+ </div>
<% end %>
<% if !params[:section].present? or params[:section].eql?("about_me") %>
@@ -182,6 +182,7 @@ en:
trash: "Trash"
send: "Send a message"
notification:
+ destroy_sure: "Do you want to delete this notification?"
one: "Notification"
other: "Notifications"
read: "Mark as read"

0 comments on commit dbcdf25

Please sign in to comment.