Project

General

Profile

« Previous | Next » 

Revision e2a57bfe

Added by Tomer Brisker almost 8 years ago

Fixes #12364 - Use NPM+Webpack to handle external assets

This commit introduces NPM and Webpack to handle external assets.
It also provides ES6 support and a live reload dev server that can be
used by running `foreman start` instead of `rails start`.
Do not forget to run `npm install` before starting the server.
This commit also contains some code that was created by Ohad Levy
<>

View differences:

app/assets/javascripts/taxonomy_edit.js
var url = $(element).data('url');
var data = {parent_id: parent_id}
foreman.tools.showSpinner();
tfm.tools.showSpinner();
$.ajax({
type: 'post',
url: url,
data: data,
complete: function(){ foreman.tools.hideSpinner(); },
complete: function(){ tfm.tools.hideSpinner(); },
success: function(response) {
$('form').replaceWith(response);
$(document.body).trigger('ContentLoad');

Also available in: Unified diff