Sha256: 6a92f7ffd8d1afd51127f7967ec06bdeb4909a552b82e6691e14d667955ea752

Contents?: true

Size: 1.45 KB

Versions: 21

Compression:

Stored size: 1.45 KB

Contents

document.addEventListener('graph:changed', function (e) {
  $("button[name=save]").prop("disabled",false);
}, false);

$(document).ready(function() {
  $('#tabmodel').click(function(event){
    $('#model ui-behind button:nth-child(1)').addClass('hidden');
  });
  $('#tabdataelements').click(function(event){
    $('#model ui-behind button:nth-child(1)').removeClass('hidden');
  });

  $('#model ui-behind button:nth-child(1)').click(function(event){
    var but = $(document).find('#model ui-content ui-area:not(.inactive) button');
        but.click();
    var are = $(document).find('#model ui-content ui-area:not(.inactive)');
    var tab = $(document).find('#model ui-content ui-area:not(.inactive) .relaxngui_table');
        are.animate({ scrollTop: tab.height() }, "slow");
  });

  $("button[name=save]").click(function(){
    var def = new $.Deferred();
    def.done(function(name,testset) {
      $.ajax({
        url: $('body').attr('current-save') + name + '.xml',
        type: 'PUT',
        contentType: 'application/xml',
        data: testset.serializePrettyXML(),
        headers: { 'Content-ID': 'content' },
        success: function() {
          $("button[name=save]").prop("disabled",true);
          $("#lastsavedline").removeClass('hidden');
          var dt = new Date();
          var time = dt.getHours() + ":" + dt.getMinutes() + ":" + dt.getSeconds();
          $("#lastsaved").text(time);
        }
      });
    });
    get_testset(def);
  });
});

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
cpee-2.0.15 cockpit/js/model.js
cpee-2.0.14 cockpit/js/model.js
cpee-2.0.13 cockpit/js/model.js
cpee-2.0.11 cockpit/js/model.js
cpee-2.0.9 cockpit/js/model.js
cpee-2.0.8 cockpit/js/model.js
cpee-2.0.7 cockpit/js/model.js
cpee-2.0.6 cockpit/js/model.js
cpee-2.0.5 cockpit/js/model.js
cpee-2.0.3 cockpit/js/model.js
cpee-2.0.2 cockpit/js/model.js
cpee-2.0.1 cockpit/js/model.js
cpee-1.5.27 cockpit/js/model.js
cpee-1.5.26 cockpit/js/model.js
cpee-1.5.25 cockpit/js/model.js
cpee-2.0 cockpit/js/model.js
cpee-1.5.24 cockpit/js/model.js
cpee-1.5.23 cockpit/js/model.js
cpee-1.5.22 cockpit/js/model.js
cpee-1.5.21 cockpit/js/model.js