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