Sha256: 38a0e46a167159854f6599cf00f28038fbd9aaf68f33e28d5da6b79ac9eae25e

Contents?: true

Size: 1.2 KB

Versions: 38

Compression:

Stored size: 1.2 KB

Contents

var $orderTotalBudget = $('#order-total-budget');
var $orderSelectedProjects = $('#order-selected-projects');
var $orderProgress = $('#order-progress');
var $projectItem = $('#project-<%= project.id %>-item');
var $projectBudgetButton = $('#project-<%= project.id %>-budget-button');
var $budgetConfirm = $('#budget-confirm');

morphdom($orderTotalBudget[0], '<%= j(render partial: 'decidim/budgets/projects/order_total_budget') %>');
morphdom($orderSelectedProjects[0], '<%= j(render partial: 'decidim/budgets/projects/order_selected_projects') %>');
morphdom($orderProgress[0], '<%= j(render partial: 'decidim/budgets/projects/order_progress') %>');
morphdom($budgetConfirm[0], '<%= j(render partial: 'decidim/budgets/projects/budget_confirm') %>')

$("#order-progress").foundation();
$(".budget-summary__selected").foundation();

if ($projectItem.length > 0) {
  morphdom($projectItem[0], '<%= j(render partial: 'decidim/budgets/projects/project', locals: { project: project }) %>');
}

if ($projectBudgetButton.length > 0) {
  morphdom($projectBudgetButton[0], '<%= j(render partial: 'decidim/budgets/projects/project_budget_button', locals: { project: project }) %>');
}

window.DecidimBudgets.checkProgressPosition();

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
decidim-budgets-0.6.3 app/views/decidim/budgets/line_items/update_budget.js.erb
decidim-0.6.3 decidim-budgets/app/views/decidim/budgets/line_items/update_budget.js.erb
decidim-budgets-0.6.2 app/views/decidim/budgets/line_items/update_budget.js.erb
decidim-0.6.2 decidim-budgets/app/views/decidim/budgets/line_items/update_budget.js.erb
decidim-budgets-0.6.1 app/views/decidim/budgets/line_items/update_budget.js.erb
decidim-0.6.1 decidim-budgets/app/views/decidim/budgets/line_items/update_budget.js.erb
decidim-budgets-0.6.0 app/views/decidim/budgets/line_items/update_budget.js.erb
decidim-0.6.0 decidim-budgets/app/views/decidim/budgets/line_items/update_budget.js.erb
decidim-budgets-0.5.1 app/views/decidim/budgets/line_items/update_budget.js.erb
decidim-0.5.1 decidim-budgets/app/views/decidim/budgets/line_items/update_budget.js.erb
decidim-budgets-0.5.0 app/views/decidim/budgets/line_items/update_budget.js.erb
decidim-0.5.0 decidim-budgets/app/views/decidim/budgets/line_items/update_budget.js.erb
decidim-budgets-0.4.4 app/views/decidim/budgets/line_items/update_budget.js.erb
decidim-0.4.4 decidim-budgets/app/views/decidim/budgets/line_items/update_budget.js.erb
decidim-budgets-0.4.3 app/views/decidim/budgets/line_items/update_budget.js.erb
decidim-budgets-0.4.2 app/views/decidim/budgets/line_items/update_budget.js.erb
decidim-budgets-0.4.1 app/views/decidim/budgets/line_items/update_budget.js.erb
decidim-0.4.3 decidim-budgets/app/views/decidim/budgets/line_items/update_budget.js.erb
decidim-0.4.2 decidim-budgets/app/views/decidim/budgets/line_items/update_budget.js.erb
decidim-0.4.1 decidim-budgets/app/views/decidim/budgets/line_items/update_budget.js.erb