From 42780fca40744d395871bbbd404e6a3c6f93bc41 Mon Sep 17 00:00:00 2001 From: Milo Casagrande Date: Mon, 16 Feb 2015 17:17:21 +0100 Subject: Bump JS library version number. Change-Id: Ida9276ee20d801612af86936ebdf6f829b80d8f3 --- .../static/js/linaro-builds-job-kernel-1.0.8.js | 590 --------------------- .../static/js/linaro-builds-job-kernel-1.0.9.js | 590 +++++++++++++++++++++ app/dashboard/templates/builds-job-kernel.html | 2 +- 3 files changed, 591 insertions(+), 591 deletions(-) delete mode 100644 app/dashboard/static/js/linaro-builds-job-kernel-1.0.8.js create mode 100644 app/dashboard/static/js/linaro-builds-job-kernel-1.0.9.js diff --git a/app/dashboard/static/js/linaro-builds-job-kernel-1.0.8.js b/app/dashboard/static/js/linaro-builds-job-kernel-1.0.8.js deleted file mode 100644 index 84b89fa..0000000 --- a/app/dashboard/static/js/linaro-builds-job-kernel-1.0.8.js +++ /dev/null @@ -1,590 +0,0 @@ -var jobName = $('#job-name').val(); -var kernelName = $('#kernel-name').val(); - -function showHideDefconfs(element) { - 'use strict'; - - switch (element.id) { - case 'success-cell': - if ($('#success-btn').attr('disabled') !== 'disabled') { - $('.df-failed').hide(); - $('.df-success').show(); - $('.df-unknown').hide(); - $('#success-btn').addClass('active').siblings() - .removeClass('active'); - } - break; - case 'success-btn': - $('.df-failed').hide(); - $('.df-success').show(); - $('.df-unknown').hide(); - break; - case 'fail-cell': - if ($('#fail-btn').attr('disabled') !== 'disabled') { - $('.df-failed').show(); - $('.df-success').hide(); - $('.df-unknown').hide(); - $('#fail-btn').addClass('active').siblings() - .removeClass('active'); - } - break; - case 'fail-btn': - $('.df-failed').show(); - $('.df-success').hide(); - $('.df-unknown').hide(); - break; - case 'unknown-cell': - if ($('#unknown-btn').attr('disabled') !== 'disabled') { - $('.df-failed').hide(); - $('.df-success').hide(); - $('.df-unknown').show(); - $('#unknown-btn').addClass('active').siblings() - .removeClass('active'); - } - break; - case 'unknown-btn': - $('.df-failed').hide(); - $('.df-success').hide(); - $('.df-unknown').show(); - break; - default: - $('.df-failed').show(); - $('.df-success').show(); - $('.df-unknown').show(); - break; - } -} - -function createPieChart(data) { - 'use strict'; - var result = data.result, - len = result.length, - success = 0, - fail = 0, - unknown = 0, - i = 0, - width = 200, - height = 200, - radius = Math.min(width, height) / 2, - dataset = null, - svg = null, - // success, fail and unknown status colors. - color = ['#5cb85c', '#d9534f', '#f0ad4e'], - pie = d3.layout.pie().sort(null), - arc = d3.svg.arc().innerRadius(radius - 30).outerRadius(radius - 50); - - if (len > 0) { - for (i; i < len; i = i + 1) { - switch (result[i].status) { - case 'FAIL': - fail = fail + 1; - break; - case 'PASS': - success = success + 1; - break; - default: - unknown = unknown + 1; - break; - } - } - - dataset = [success, fail, unknown]; - svg = d3.select('#builds-chart').append('svg') - .attr('width', width) - .attr('height', height) - .append('g') - .attr('transform', 'translate(' + width / 2 + ',' + - height / 2 + ')' - ); - - svg.selectAll('path') - .data(pie(dataset)) - .enter().append('path') - .attr('fill', function(d, i) { - return color[i]; - }) - .attr('d', arc); - - svg.append('text') - .attr('dy', '0em') - .style('text-anchor', 'middle') - .attr('class', 'pie-chart-inside') - .text(function(d) { - return len; - }); - - svg.append('text') - .attr('dy', '1.5em') - .style('text-anchor', 'middle') - .attr('class', 'pie-chart-data') - .text(function(d) { - return 'total builds'; - }); - } - - $('#success-cell') - .empty() - .append( - '' + success + '' - ).css('border-bottom-color', color[0]); - $('#fail-cell') - .empty() - .append( - '' + fail + '' - ).css('border-bottom-color', color[1]); - $('#unknown-cell') - .empty() - .append( - '' + unknown + '' - ).css('border-bottom-color', color[2]); -} - -function createBuildsPage(data) { - 'use strict'; - var result = data.result, - len = result.length, - fileServer = $('#file-server').val(), - fileServerUrl = null, - fileServerResource = null, - pathUrl = '', - fileServerUri = null, - uriPath = '', - panel = '', - cls, - job, - kernel, - defconfigFull, - localData, - label, - arch, - i = 0, - hasFailed = false, - hasSuccess = false, - hasUnknown = false, - failLabel = '' + - '
  • ', - successLabel = '' + - '
  • ', - unknownLabel = '' + - '
  • ', - archLabel = ''; - - for (i; i < len; i = i + 1) { - localData = result[i]; - - defconfigFull = localData.defconfig_full; - job = localData.job; - kernel = localData.kernel; - arch = localData.arch; - fileServerUrl = localData.file_server_url; - fileServerResource = localData.file_server_resource; - - if (fileServerUrl !== null && fileServerUrl !== undefined) { - fileServer = fileServerUrl; - } - - if (fileServerResource !== null && fileServerResource !== undefined) { - pathUrl = fileServerResource; - } else { - pathUrl = job + '/' + kernel + '/' + arch + '-' + - defconfigFull + '/'; - } - - fileServerUri = new URI(fileServer); - uriPath = fileServerUri.path() + '/' + pathUrl; - - switch (result[i].status) { - case 'FAIL': - hasFailed = true; - label = failLabel; - cls = 'df-failed'; - break; - case 'PASS': - hasSuccess = true; - label = successLabel; - cls = 'df-success'; - break; - default: - hasUnknown = true; - label = unknownLabel; - cls = 'df-unknown'; - break; - } - - if (localData.arch !== null) { - archLabel = '' + - '' + - localData.arch + ''; - } - - panel += '
    ' + - '
    ' + - '

    ' + - '' + defconfigFull + - '' + label + archLabel + '

    ' + - '
    '; - - panel += '
    '; - panel += '
    '; - panel += '
    '; - - if (localData.dtb_dir !== null) { - panel += '
    Dtb directory
    ' + - '
    ' + - localData.dtb_dir + - ' ' + - '
    '; - } - - if (localData.modules !== null) { - panel += '
    Modules
    ' + - '
    ' + - localData.modules + - ' ' + - '
    '; - } - - if (localData.text_offset !== null) { - panel += '
    Text offset
    ' + - '
    ' + localData.text_offset + '
    '; - } - - if (localData.kernel_image !== null) { - panel += '
    Kernel image
    ' + - '
    ' + - localData.kernel_image + - ' ' + - '
    '; - } - - if (localData.kernel_config !== null) { - panel += '
    Kernel config
    ' + - '
    ' + - localData.kernel_config + - ' ' + - '
    '; - } - - if (localData.build_log !== null) { - panel += '
    Build log
    ' + - '
    ' + - localData.build_log + - ' ' + - '
    '; - } - - panel += '
    '; - - panel += '
    '; - panel += '
    '; - - panel += '
    Build errors
    '; - panel += '
    ' + localData.errors + '
    '; - - panel += '
    Build warnings
    '; - panel += '
    ' + localData.warnings + '
    '; - - if (localData.build_time !== null) { - panel += '
    Build time
    '; - panel += '
    ' + localData.build_time + ' sec.
    '; - } - - panel += '
    '; - - panel += '
    '; - panel += '
    ' + - '' + - 'More info ' + - ''; - panel += '
    '; - - panel += '
    '; - panel += '
    \n'; - } - - $('#accordion').empty().append(panel); - - if (hasFailed) { - $('#fail-btn').removeAttr('disabled'); - } - - if (hasSuccess) { - $('#success-btn').removeAttr('disabled'); - } - - if (hasUnknown) { - $('#unknown-btn').removeAttr('disabled'); - } - - $('#all-btn').removeAttr('disabled'); - if (!WebStorage.load('build' + jobName + kernelName)) { - if (hasFailed) { - // If there is no saved session, show only the failed ones. - $('.df-failed').show(); - $('.df-success').hide(); - $('.df-unknown').hide(); - $('#fail-btn').addClass('active').siblings().removeClass('active'); - } else { - $('#all-btn').addClass('active'); - } - } -} - -function ajaxDefconfigGetFailed() { - 'use strict'; - JSBase.replaceContentByID( - '#accordion-container', - '
    ' + - '

    Error loading data.

    ' + - '
    ' - ); -} - -function ajaxJobGetFailed() { - 'use strict'; - JSBase.replaceContentByClass( - '.loading-content', - '' + - '' - ); -} - -function populateJobData(data) { - 'use strict'; - - var localData = data.result, - localResult = null, - dataLen = localData.length, - gitCommit = null, - gitUrl = null, - gitUrls = null, - nonAvail = '' + - ''; - - if (dataLen > 0) { - localResult = localData[0]; - gitCommit = localResult.git_commit; - gitUrl = localResult.git_url; - - gitUrls = JSBase.translateCommitURL(gitUrl, gitCommit); - - $('#tree').empty().append( - '' + - '' + jobName + '' + - ' — ' + - '' + - '' + - '' + - '' - ); - - $('#git-branch').empty().append(localResult.git_branch); - - $('#git-describe').empty().append( - '' + - '' + - kernelName + - '' + - ' — ' + - '' + - '' + - '' - ); - - if (gitUrls[0] !== null) { - $('#git-url').empty().append( - '' + gitUrl + - ' ' - ); - } else { - if (gitUrl !== null) { - $('#git-url').empty().append(gitUrl); - } else { - $('#git-url').empty().append(nonAvail); - } - } - - if (gitUrls[1] !== null) { - $('#git-commit').empty().append( - '' + gitCommit + - ' ' - ); - } else { - if (gitCommit !== null) { - $('#git-commit').empty().append(gitCommit); - } else { - $('#git-commit').empty().append(nonAvail); - } - } - } else { - ajaxJobGetFailed(); - } -} - -function getDefconfigData(data) { - 'use strict'; - var localData = data.result, - localResult = null, - dataLen = localData.length, - ajaxData, - ajaxDeferredCall, - errorReason = 'Build data call failed'; - - if (dataLen > 0) { - localResult = localData[0]; - - ajaxData = { - 'job_id': localResult._id.$oid, - 'job': jobName, - 'kernel': kernelName, - 'sort': ['status', 'defconfig_full', 'arch'], - 'sort_order': 1 - }; - ajaxDeferredCall = JSBase.createDeferredCall( - '/_ajax/defconf', - 'GET', - ajaxData, - null, - ajaxDefconfigGetFailed, - errorReason - ); - - $.when(ajaxDeferredCall) - .done(createBuildsPage) - .done(createPieChart); - } else { - ajaxDefconfigGetFailed(); - } -} - -$(document).ready(function() { - 'use strict'; - $('#li-build').addClass('active'); - - var ajaxDeferredCall = null, - ajaxData = null, - errorReason = 'Job data call failed'; - - ajaxData = { - 'job': jobName, - 'kernel': kernelName - }; - ajaxDeferredCall = JSBase.createDeferredCall( - '/_ajax/job', - 'GET', - ajaxData, - null, - ajaxJobGetFailed, - errorReason - ); - - $.when(ajaxDeferredCall) - .done(populateJobData) - .done(getDefconfigData); -}); - -$(document).ready(function() { - // No use strict here or onbeforeunload is not recognized. - var sessionState = new WebStorage.SessionState( - 'build' + jobName + kernelName); - onbeforeunload = function() { - - var panelState = {}, - pageState; - - $('[id^="panel-defconf"]').each(function(id) { - panelState['#panel-defconf' + id] = { - 'type': 'class', - 'name': 'class', - 'value': $('#panel-defconf' + id).attr('class') - }; - }); - - $('[id^="collapse-defconf"]').each(function(id) { - panelState['#collapse-defconf' + id] = { - 'type': 'class', - 'name': 'class', - 'value': $('#collapse-defconf' + id).attr('class') - }; - }); - - pageState = { - '.df-success': { - 'type': 'attr', - 'name': 'style', - 'value': $('.df-success').attr('style') - }, - '.df-failed': { - 'type': 'attr', - 'name': 'style', - 'value': $('.df-failed').attr('style') - }, - '.df-unknown': { - 'type': 'attr', - 'name': 'style', - 'value': $('.df-unknown').attr('style') - }, - '#all-btn': { - 'type': 'class', - 'name': 'class', - 'value': $('#all-btn').attr('class') - }, - '#success-btn': { - 'type': 'class', - 'name': 'class', - 'value': $('#success-btn').attr('class') - }, - '#fail-btn': { - 'type': 'class', - 'name': 'class', - 'value': $('#fail-btn').attr('class') - }, - '#unknown-btn': { - 'type': 'class', - 'name': 'class', - 'value': $('#unknown-btn').attr('class') - } - }; - - sessionState.objects = JSBase.collectObjects(panelState, pageState); - WebStorage.save(sessionState); - }; -}); diff --git a/app/dashboard/static/js/linaro-builds-job-kernel-1.0.9.js b/app/dashboard/static/js/linaro-builds-job-kernel-1.0.9.js new file mode 100644 index 0000000..84b89fa --- /dev/null +++ b/app/dashboard/static/js/linaro-builds-job-kernel-1.0.9.js @@ -0,0 +1,590 @@ +var jobName = $('#job-name').val(); +var kernelName = $('#kernel-name').val(); + +function showHideDefconfs(element) { + 'use strict'; + + switch (element.id) { + case 'success-cell': + if ($('#success-btn').attr('disabled') !== 'disabled') { + $('.df-failed').hide(); + $('.df-success').show(); + $('.df-unknown').hide(); + $('#success-btn').addClass('active').siblings() + .removeClass('active'); + } + break; + case 'success-btn': + $('.df-failed').hide(); + $('.df-success').show(); + $('.df-unknown').hide(); + break; + case 'fail-cell': + if ($('#fail-btn').attr('disabled') !== 'disabled') { + $('.df-failed').show(); + $('.df-success').hide(); + $('.df-unknown').hide(); + $('#fail-btn').addClass('active').siblings() + .removeClass('active'); + } + break; + case 'fail-btn': + $('.df-failed').show(); + $('.df-success').hide(); + $('.df-unknown').hide(); + break; + case 'unknown-cell': + if ($('#unknown-btn').attr('disabled') !== 'disabled') { + $('.df-failed').hide(); + $('.df-success').hide(); + $('.df-unknown').show(); + $('#unknown-btn').addClass('active').siblings() + .removeClass('active'); + } + break; + case 'unknown-btn': + $('.df-failed').hide(); + $('.df-success').hide(); + $('.df-unknown').show(); + break; + default: + $('.df-failed').show(); + $('.df-success').show(); + $('.df-unknown').show(); + break; + } +} + +function createPieChart(data) { + 'use strict'; + var result = data.result, + len = result.length, + success = 0, + fail = 0, + unknown = 0, + i = 0, + width = 200, + height = 200, + radius = Math.min(width, height) / 2, + dataset = null, + svg = null, + // success, fail and unknown status colors. + color = ['#5cb85c', '#d9534f', '#f0ad4e'], + pie = d3.layout.pie().sort(null), + arc = d3.svg.arc().innerRadius(radius - 30).outerRadius(radius - 50); + + if (len > 0) { + for (i; i < len; i = i + 1) { + switch (result[i].status) { + case 'FAIL': + fail = fail + 1; + break; + case 'PASS': + success = success + 1; + break; + default: + unknown = unknown + 1; + break; + } + } + + dataset = [success, fail, unknown]; + svg = d3.select('#builds-chart').append('svg') + .attr('width', width) + .attr('height', height) + .append('g') + .attr('transform', 'translate(' + width / 2 + ',' + + height / 2 + ')' + ); + + svg.selectAll('path') + .data(pie(dataset)) + .enter().append('path') + .attr('fill', function(d, i) { + return color[i]; + }) + .attr('d', arc); + + svg.append('text') + .attr('dy', '0em') + .style('text-anchor', 'middle') + .attr('class', 'pie-chart-inside') + .text(function(d) { + return len; + }); + + svg.append('text') + .attr('dy', '1.5em') + .style('text-anchor', 'middle') + .attr('class', 'pie-chart-data') + .text(function(d) { + return 'total builds'; + }); + } + + $('#success-cell') + .empty() + .append( + '' + success + '' + ).css('border-bottom-color', color[0]); + $('#fail-cell') + .empty() + .append( + '' + fail + '' + ).css('border-bottom-color', color[1]); + $('#unknown-cell') + .empty() + .append( + '' + unknown + '' + ).css('border-bottom-color', color[2]); +} + +function createBuildsPage(data) { + 'use strict'; + var result = data.result, + len = result.length, + fileServer = $('#file-server').val(), + fileServerUrl = null, + fileServerResource = null, + pathUrl = '', + fileServerUri = null, + uriPath = '', + panel = '', + cls, + job, + kernel, + defconfigFull, + localData, + label, + arch, + i = 0, + hasFailed = false, + hasSuccess = false, + hasUnknown = false, + failLabel = '' + + '
  • ', + successLabel = '' + + '
  • ', + unknownLabel = '' + + '
  • ', + archLabel = ''; + + for (i; i < len; i = i + 1) { + localData = result[i]; + + defconfigFull = localData.defconfig_full; + job = localData.job; + kernel = localData.kernel; + arch = localData.arch; + fileServerUrl = localData.file_server_url; + fileServerResource = localData.file_server_resource; + + if (fileServerUrl !== null && fileServerUrl !== undefined) { + fileServer = fileServerUrl; + } + + if (fileServerResource !== null && fileServerResource !== undefined) { + pathUrl = fileServerResource; + } else { + pathUrl = job + '/' + kernel + '/' + arch + '-' + + defconfigFull + '/'; + } + + fileServerUri = new URI(fileServer); + uriPath = fileServerUri.path() + '/' + pathUrl; + + switch (result[i].status) { + case 'FAIL': + hasFailed = true; + label = failLabel; + cls = 'df-failed'; + break; + case 'PASS': + hasSuccess = true; + label = successLabel; + cls = 'df-success'; + break; + default: + hasUnknown = true; + label = unknownLabel; + cls = 'df-unknown'; + break; + } + + if (localData.arch !== null) { + archLabel = '' + + '' + + localData.arch + ''; + } + + panel += '
    ' + + '
    ' + + '

    ' + + '' + defconfigFull + + '' + label + archLabel + '

    ' + + '
    '; + + panel += '
    '; + panel += '
    '; + panel += '
    '; + + if (localData.dtb_dir !== null) { + panel += '
    Dtb directory
    ' + + '
    ' + + localData.dtb_dir + + ' ' + + '
    '; + } + + if (localData.modules !== null) { + panel += '
    Modules
    ' + + '
    ' + + localData.modules + + ' ' + + '
    '; + } + + if (localData.text_offset !== null) { + panel += '
    Text offset
    ' + + '
    ' + localData.text_offset + '
    '; + } + + if (localData.kernel_image !== null) { + panel += '
    Kernel image
    ' + + '
    ' + + localData.kernel_image + + ' ' + + '
    '; + } + + if (localData.kernel_config !== null) { + panel += '
    Kernel config
    ' + + '
    ' + + localData.kernel_config + + ' ' + + '
    '; + } + + if (localData.build_log !== null) { + panel += '
    Build log
    ' + + '
    ' + + localData.build_log + + ' ' + + '
    '; + } + + panel += '
    '; + + panel += '
    '; + panel += '
    '; + + panel += '
    Build errors
    '; + panel += '
    ' + localData.errors + '
    '; + + panel += '
    Build warnings
    '; + panel += '
    ' + localData.warnings + '
    '; + + if (localData.build_time !== null) { + panel += '
    Build time
    '; + panel += '
    ' + localData.build_time + ' sec.
    '; + } + + panel += '
    '; + + panel += '
    '; + panel += '
    ' + + '' + + 'More info ' + + ''; + panel += '
    '; + + panel += '
    '; + panel += '
    \n'; + } + + $('#accordion').empty().append(panel); + + if (hasFailed) { + $('#fail-btn').removeAttr('disabled'); + } + + if (hasSuccess) { + $('#success-btn').removeAttr('disabled'); + } + + if (hasUnknown) { + $('#unknown-btn').removeAttr('disabled'); + } + + $('#all-btn').removeAttr('disabled'); + if (!WebStorage.load('build' + jobName + kernelName)) { + if (hasFailed) { + // If there is no saved session, show only the failed ones. + $('.df-failed').show(); + $('.df-success').hide(); + $('.df-unknown').hide(); + $('#fail-btn').addClass('active').siblings().removeClass('active'); + } else { + $('#all-btn').addClass('active'); + } + } +} + +function ajaxDefconfigGetFailed() { + 'use strict'; + JSBase.replaceContentByID( + '#accordion-container', + '
    ' + + '

    Error loading data.

    ' + + '
    ' + ); +} + +function ajaxJobGetFailed() { + 'use strict'; + JSBase.replaceContentByClass( + '.loading-content', + '' + + '' + ); +} + +function populateJobData(data) { + 'use strict'; + + var localData = data.result, + localResult = null, + dataLen = localData.length, + gitCommit = null, + gitUrl = null, + gitUrls = null, + nonAvail = '' + + ''; + + if (dataLen > 0) { + localResult = localData[0]; + gitCommit = localResult.git_commit; + gitUrl = localResult.git_url; + + gitUrls = JSBase.translateCommitURL(gitUrl, gitCommit); + + $('#tree').empty().append( + '' + + '' + jobName + '' + + ' — ' + + '' + + '' + + '' + + '' + ); + + $('#git-branch').empty().append(localResult.git_branch); + + $('#git-describe').empty().append( + '' + + '' + + kernelName + + '' + + ' — ' + + '' + + '' + + '' + ); + + if (gitUrls[0] !== null) { + $('#git-url').empty().append( + '' + gitUrl + + ' ' + ); + } else { + if (gitUrl !== null) { + $('#git-url').empty().append(gitUrl); + } else { + $('#git-url').empty().append(nonAvail); + } + } + + if (gitUrls[1] !== null) { + $('#git-commit').empty().append( + '' + gitCommit + + ' ' + ); + } else { + if (gitCommit !== null) { + $('#git-commit').empty().append(gitCommit); + } else { + $('#git-commit').empty().append(nonAvail); + } + } + } else { + ajaxJobGetFailed(); + } +} + +function getDefconfigData(data) { + 'use strict'; + var localData = data.result, + localResult = null, + dataLen = localData.length, + ajaxData, + ajaxDeferredCall, + errorReason = 'Build data call failed'; + + if (dataLen > 0) { + localResult = localData[0]; + + ajaxData = { + 'job_id': localResult._id.$oid, + 'job': jobName, + 'kernel': kernelName, + 'sort': ['status', 'defconfig_full', 'arch'], + 'sort_order': 1 + }; + ajaxDeferredCall = JSBase.createDeferredCall( + '/_ajax/defconf', + 'GET', + ajaxData, + null, + ajaxDefconfigGetFailed, + errorReason + ); + + $.when(ajaxDeferredCall) + .done(createBuildsPage) + .done(createPieChart); + } else { + ajaxDefconfigGetFailed(); + } +} + +$(document).ready(function() { + 'use strict'; + $('#li-build').addClass('active'); + + var ajaxDeferredCall = null, + ajaxData = null, + errorReason = 'Job data call failed'; + + ajaxData = { + 'job': jobName, + 'kernel': kernelName + }; + ajaxDeferredCall = JSBase.createDeferredCall( + '/_ajax/job', + 'GET', + ajaxData, + null, + ajaxJobGetFailed, + errorReason + ); + + $.when(ajaxDeferredCall) + .done(populateJobData) + .done(getDefconfigData); +}); + +$(document).ready(function() { + // No use strict here or onbeforeunload is not recognized. + var sessionState = new WebStorage.SessionState( + 'build' + jobName + kernelName); + onbeforeunload = function() { + + var panelState = {}, + pageState; + + $('[id^="panel-defconf"]').each(function(id) { + panelState['#panel-defconf' + id] = { + 'type': 'class', + 'name': 'class', + 'value': $('#panel-defconf' + id).attr('class') + }; + }); + + $('[id^="collapse-defconf"]').each(function(id) { + panelState['#collapse-defconf' + id] = { + 'type': 'class', + 'name': 'class', + 'value': $('#collapse-defconf' + id).attr('class') + }; + }); + + pageState = { + '.df-success': { + 'type': 'attr', + 'name': 'style', + 'value': $('.df-success').attr('style') + }, + '.df-failed': { + 'type': 'attr', + 'name': 'style', + 'value': $('.df-failed').attr('style') + }, + '.df-unknown': { + 'type': 'attr', + 'name': 'style', + 'value': $('.df-unknown').attr('style') + }, + '#all-btn': { + 'type': 'class', + 'name': 'class', + 'value': $('#all-btn').attr('class') + }, + '#success-btn': { + 'type': 'class', + 'name': 'class', + 'value': $('#success-btn').attr('class') + }, + '#fail-btn': { + 'type': 'class', + 'name': 'class', + 'value': $('#fail-btn').attr('class') + }, + '#unknown-btn': { + 'type': 'class', + 'name': 'class', + 'value': $('#unknown-btn').attr('class') + } + }; + + sessionState.objects = JSBase.collectObjects(panelState, pageState); + WebStorage.save(sessionState); + }; +}); diff --git a/app/dashboard/templates/builds-job-kernel.html b/app/dashboard/templates/builds-job-kernel.html index 56946f0..5a567d8 100644 --- a/app/dashboard/templates/builds-job-kernel.html +++ b/app/dashboard/templates/builds-job-kernel.html @@ -78,5 +78,5 @@ {{ super() }} - + {%- endblock %} -- cgit v1.2.3