<%= @channel.name %>
- + <% if !@channel.description.blank? %>
<% end %> - + <%= form_tag "#{@post_url}" do %>
<%= text_area_tag :status %> | <% end %> - +|
@@ -118,38 +118,38 @@ |
- +
<% end %> - +
diff --git a/app/assets/javascripts/channels.js b/app/assets/javascripts/channels.js index 1a63fd6..1167a95 100644 --- a/app/assets/javascripts/channels.js +++ b/app/assets/javascripts/channels.js @@ -1,11 +1,7 @@ -$(function () { - $("div.progressbar").each ( - function () { - var element = this; - $(element).progressbar( - { - value: parseInt($(element).attr("rel")) - }); - }); +$(document).on('page:load ready', function() { + $("div.progressbar").each(function() { + var element = this; + $(element).progressbar({ value: parseInt($(element).attr("rel")) }); + }); }); diff --git a/app/views/apps/index.html.erb b/app/views/apps/index.html.erb index f3a287a..27d0bdb 100644 --- a/app/views/apps/index.html.erb +++ b/app/views/apps/index.html.erb @@ -111,8 +111,8 @@ diff --git a/app/views/channels/_edit.html.erb b/app/views/channels/_edit.html.erb index 6c7a509..a79f946 100644 --- a/app/views/channels/_edit.html.erb +++ b/app/views/channels/_edit.html.erb @@ -141,7 +141,7 @@ // remember default field label var default_label = '<%= t(:channel_default_field) %>'; // when document is ready - $(function() { + $(document).on('page:load ready', function() { // iterate through each field textbox $('.field').each(function() { // if a value is present, show the 'remove' checkbox diff --git a/app/views/channels/_private_show.html.erb b/app/views/channels/_private_show.html.erb index 148b4f6..e4cc172 100644 --- a/app/views/channels/_private_show.html.erb +++ b/app/views/channels/_private_show.html.erb @@ -12,15 +12,15 @@