Sha256: b339b1a8ee8dbb865426549c00f6296b56ec7d9927a7e762404e34874048db46

Contents?: true

Size: 622 Bytes

Versions: 6

Compression:

Stored size: 622 Bytes

Contents

var repoBranches = new Vue({
  el: "#buildFrom-custom",
  data: {
    branches: [],
    repo: ""
  },
  methods: {
    findBranches: function(e) {
      e.preventDefault();
      var that = this;
      $.ajax({
        url: "/statixite/sites/repo_branches",
        data: {
          format: 'json',
          repo: that.repo
        },
        success: function(data) {
          that.branches = data.data;
          $.notify(data.message, data.status);
        },
        error: function(response, data) {
          $.notify(response.responseJSON.message,response.responseJSON.status);
        }
      });
    }
  }
});

Version data entries

6 entries across 3 versions & 1 rubygems

Version Path
statixite-1.0.2 app/assets/javascripts/controllers/statixite/sites_create.js
statixite-1.0.2 app/assets/javascripts/controllers/statixite/sites_new.js
statixite-1.0.1 app/assets/javascripts/controllers/statixite/sites_create.js
statixite-1.0.1 app/assets/javascripts/controllers/statixite/sites_new.js
statixite-1.0.0 app/assets/javascripts/controllers/statixite/sites_create.js
statixite-1.0.0 app/assets/javascripts/controllers/statixite/sites_new.js