Revision e2a57bfe
Added by Tomer Brisker almost 8 years ago
app/assets/javascripts/compute_resource.js | ||
---|---|---|
var template = $(item).val();
|
||
if (template) {
|
||
var url = $(item).attr('data-url');
|
||
foreman.tools.showSpinner();
|
||
tfm.tools.showSpinner();
|
||
$.ajax({
|
||
type:'post',
|
||
url: url,
|
||
... | ... | |
function ovirt_clusterSelected(item){
|
||
var cluster = $(item).val();
|
||
var url = $(item).attr('data-url');
|
||
foreman.tools.showSpinner();
|
||
tfm.tools.showSpinner();
|
||
$.ajax({
|
||
type:'post',
|
||
url: url,
|
||
... | ... | |
var template = $(item).val();
|
||
if (template) {
|
||
var url = $(item).attr('data-url');
|
||
foreman.tools.showSpinner();
|
||
tfm.tools.showSpinner();
|
||
$.ajax({
|
||
type:'post',
|
||
url: url,
|
||
... | ... | |
function vsphereGetResourcePools(item) {
|
||
var data = {cluster_id: $(item).val()};
|
||
var url = $(item).data('url');
|
||
foreman.tools.showSpinner();
|
||
tfm.tools.showSpinner();
|
||
selectbox = $('*[id*=resource_pool]');
|
||
selectbox.select2('destroy').empty();
|
||
$.ajax({
|
||
type: 'get',
|
||
url: url,
|
||
data: data,
|
||
complete: function() { foreman.tools.hideSpinner();},
|
||
complete: function() { tfm.tools.hideSpinner();},
|
||
success: function(request) {
|
||
for (var i = 0; i < request.length; i++) {
|
||
var option = request[i].name;
|
Also available in: Unified diff
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
<ohadlevy@gmail.com>