Sha256: 2589e4a604f5832796f06f1f31f0db799f92b267d1717f01713949e05924f822

Contents?: true

Size: 1.29 KB

Versions: 36

Compression:

Stored size: 1.29 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').strip.html_safe %>');
morphdom($orderSelectedProjects[0], '<%= j(render partial: 'decidim/budgets/projects/order_selected_projects').strip.html_safe %>');
morphdom($orderProgress[0], '<%= j(render partial: 'decidim/budgets/projects/order_progress').strip.html_safe %>');
morphdom($budgetConfirm[0], '<%= j(render partial: 'decidim/budgets/projects/budget_confirm').strip.html_safe %>')

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

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

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

window.DecidimBudgets.checkProgressPosition();

Version data entries

36 entries across 36 versions & 2 rubygems

Version Path
decidim-budgets-0.13.1 app/views/decidim/budgets/line_items/update_budget.js.erb
decidim-budgets-0.12.2 app/views/decidim/budgets/line_items/update_budget.js.erb
decidim-budgets-0.13.0 app/views/decidim/budgets/line_items/update_budget.js.erb
decidim-budgets-0.12.1 app/views/decidim/budgets/line_items/update_budget.js.erb
decidim-budgets-0.13.0.pre1 app/views/decidim/budgets/line_items/update_budget.js.erb
decidim-budgets-0.12.0 app/views/decidim/budgets/line_items/update_budget.js.erb
decidim-budgets-0.11.2 app/views/decidim/budgets/line_items/update_budget.js.erb
decidim-budgets-0.12.0.pre app/views/decidim/budgets/line_items/update_budget.js.erb
decidim-budgets-0.11.1 app/views/decidim/budgets/line_items/update_budget.js.erb
decidim-budgets-0.11.0.pre1 app/views/decidim/budgets/line_items/update_budget.js.erb
decidim-budgets-0.10.1 app/views/decidim/budgets/line_items/update_budget.js.erb
decidim-budgets-0.10.0 app/views/decidim/budgets/line_items/update_budget.js.erb
decidim-budgets-0.9.3 app/views/decidim/budgets/line_items/update_budget.js.erb
decidim-budgets-0.9.2 app/views/decidim/budgets/line_items/update_budget.js.erb
decidim-budgets-0.9.1 app/views/decidim/budgets/line_items/update_budget.js.erb
decidim-budgets-0.9.0 app/views/decidim/budgets/line_items/update_budget.js.erb
decidim-budgets-0.8.4 app/views/decidim/budgets/line_items/update_budget.js.erb
decidim-budgets-0.8.3 app/views/decidim/budgets/line_items/update_budget.js.erb
decidim-budgets-0.8.2 app/views/decidim/budgets/line_items/update_budget.js.erb
decidim-budgets-0.8.1 app/views/decidim/budgets/line_items/update_budget.js.erb