Remove all white spaces
This commit is contained in:
@@ -2,6 +2,5 @@ App.EmbedVideo =
|
||||
|
||||
initialize: ->
|
||||
$('#js-embedded-video').each ->
|
||||
code = $(this).data("video-code")
|
||||
code = $(this).data("video-code")
|
||||
$('#js-embedded-video').html(code)
|
||||
|
||||
@@ -48,7 +48,7 @@ class Admin::BudgetInvestmentMilestonesController < Admin::BaseController
|
||||
end
|
||||
|
||||
def load_budget_investment_milestone
|
||||
@milestone = Budget::Investment::Milestone.find params[:id]
|
||||
@milestone = Budget::Investment::Milestone.find params[:id]
|
||||
end
|
||||
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ class Management::SessionsController < ActionController::Base
|
||||
|
||||
def destroy_session
|
||||
session[:manager] = nil
|
||||
session[:document_type] = nil
|
||||
session[:document_type] = nil
|
||||
session[:document_number] = nil
|
||||
end
|
||||
|
||||
|
||||
@@ -7,8 +7,8 @@ module Communitable
|
||||
end
|
||||
|
||||
def associate_community
|
||||
community = Community.create
|
||||
self.community_id = community.id
|
||||
community = Community.create
|
||||
self.community_id = community.id
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
<% if page.status == "published" %>
|
||||
<%= link_to t("admin.site_customization.pages.index.see_page"), page.url, target: "_blank" %>
|
||||
<% else %>
|
||||
<%= t("admin.site_customization.pages.index.see_page") %>
|
||||
<%= t("admin.site_customization.pages.index.see_page") %>
|
||||
<% end %>
|
||||
</td>
|
||||
<td class="small delete">
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
<% if poll.expired? %>
|
||||
<%= t("polls.index.participate_button_expired") %>
|
||||
<% elsif poll.incoming? %>
|
||||
<%= t("polls.index.participate_button_incoming") %>
|
||||
<%= t("polls.index.participate_button_incoming") %>
|
||||
<% else %>
|
||||
<%= t("polls.index.participate_button") %>
|
||||
<% end %>
|
||||
|
||||
@@ -39,10 +39,10 @@ Setting["months_to_archive_proposals"] = 12
|
||||
Setting["email_domain_for_officials"] = ''
|
||||
|
||||
# Code to be included at the top (inside <head>) of every page (useful for tracking)
|
||||
Setting['per_page_code_head'] = ''
|
||||
Setting['per_page_code_head'] = ''
|
||||
|
||||
# Code to be included at the top (inside <body>) of every page
|
||||
Setting['per_page_code_body'] = ''
|
||||
Setting['per_page_code_body'] = ''
|
||||
|
||||
# Social settings
|
||||
Setting["twitter_handle"] = nil
|
||||
|
||||
@@ -5,14 +5,14 @@ namespace :communities do
|
||||
|
||||
Proposal.all.each do |proposal|
|
||||
if proposal.community.blank?
|
||||
community = Community.create
|
||||
community = Community.create
|
||||
proposal.update(community_id: community.id)
|
||||
end
|
||||
end
|
||||
|
||||
Budget::Investment.all.each do |investment|
|
||||
if investment.community.blank?
|
||||
community = Community.create
|
||||
community = Community.create
|
||||
investment.update(community_id: community.id)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -15,7 +15,7 @@ feature 'Communities' do
|
||||
scenario 'Should display default content' do
|
||||
proposal = create(:proposal)
|
||||
community = proposal.community
|
||||
user = create(:user)
|
||||
user = create(:user)
|
||||
login_as(user)
|
||||
|
||||
visit community_path(community)
|
||||
@@ -103,7 +103,7 @@ feature 'Communities' do
|
||||
scenario 'Should display topic edit button when author is logged' do
|
||||
proposal = create(:proposal)
|
||||
community = proposal.community
|
||||
user = create(:user)
|
||||
user = create(:user)
|
||||
topic1 = create(:topic, community: community, author: user)
|
||||
topic2 = create(:topic, community: community)
|
||||
login_as(user)
|
||||
|
||||
@@ -16,7 +16,7 @@ feature 'Topics' do
|
||||
scenario 'Can access to new topic page with user logged', :js do
|
||||
proposal = create(:proposal)
|
||||
community = proposal.community
|
||||
user = create(:user)
|
||||
user = create(:user)
|
||||
login_as(user)
|
||||
visit community_path(community)
|
||||
|
||||
@@ -28,7 +28,7 @@ feature 'Topics' do
|
||||
scenario 'Should have content on new topic page', :js do
|
||||
proposal = create(:proposal)
|
||||
community = proposal.community
|
||||
user = create(:user)
|
||||
user = create(:user)
|
||||
login_as(user)
|
||||
visit community_path(community)
|
||||
|
||||
@@ -78,7 +78,7 @@ feature 'Topics' do
|
||||
scenario 'Can edit a topic' do
|
||||
proposal = create(:proposal)
|
||||
community = proposal.community
|
||||
user = create(:user)
|
||||
user = create(:user)
|
||||
topic = create(:topic, community: community, author: user)
|
||||
login_as(user)
|
||||
visit edit_community_topic_path(community, topic)
|
||||
@@ -95,7 +95,7 @@ feature 'Topics' do
|
||||
proposal = create(:proposal)
|
||||
community = proposal.community
|
||||
topic = create(:topic, community: community)
|
||||
user = create(:user)
|
||||
user = create(:user)
|
||||
login_as(user)
|
||||
|
||||
visit edit_community_topic_path(community, topic)
|
||||
@@ -125,7 +125,7 @@ feature 'Topics' do
|
||||
scenario 'Can destroy a topic' do
|
||||
proposal = create(:proposal)
|
||||
community = proposal.community
|
||||
user = create(:user)
|
||||
user = create(:user)
|
||||
topic = create(:topic, community: community, author: user)
|
||||
login_as(user)
|
||||
visit community_path(community)
|
||||
@@ -141,7 +141,7 @@ feature 'Topics' do
|
||||
proposal = create(:proposal)
|
||||
community = proposal.community
|
||||
topic = create(:topic, community: community)
|
||||
user = create(:user)
|
||||
user = create(:user)
|
||||
login_as(user)
|
||||
|
||||
visit community_path(community)
|
||||
|
||||
@@ -235,7 +235,7 @@ feature 'Users' do
|
||||
end
|
||||
|
||||
scenario 'Not display interests when proposal has been destroyed' do
|
||||
proposal = create(:proposal, tag_list: "Sport")
|
||||
proposal = create(:proposal, tag_list: "Sport")
|
||||
create(:follow, :followed_proposal, followable: proposal, user: @user)
|
||||
proposal.destroy
|
||||
|
||||
|
||||
@@ -668,8 +668,8 @@ describe User do
|
||||
end
|
||||
|
||||
it "should discard followed objects duplicated tags" do
|
||||
proposal1 = create(:proposal, tag_list: "Sport")
|
||||
proposal2 = create(:proposal, tag_list: "Sport")
|
||||
proposal1 = create(:proposal, tag_list: "Sport")
|
||||
proposal2 = create(:proposal, tag_list: "Sport")
|
||||
budget_investment = create(:budget_investment, tag_list: "Sport")
|
||||
|
||||
create(:follow, followable: proposal1, user: user)
|
||||
|
||||
2
vendor/assets/javascripts/annotator.js
vendored
2
vendor/assets/javascripts/annotator.js
vendored
@@ -2054,7 +2054,7 @@ setDocument = Sizzle.setDocument = function( node ) {
|
||||
// getElementById is not reliable as a find shortcut
|
||||
delete Expr.find["ID"];
|
||||
|
||||
Expr.filter["ID"] = function( id ) {
|
||||
Expr.filter["ID"] = function( id ) {
|
||||
var attrId = id.replace( runescape, funescape );
|
||||
return function( elem ) {
|
||||
var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");
|
||||
|
||||
Reference in New Issue
Block a user