equal
deleted
inserted
replaced
577 style: { |
577 style: { |
578 fontWeight: 'bold' |
578 fontWeight: 'bold' |
579 }, |
579 }, |
580 onclick: function(e) |
580 onclick: function(e) |
581 { |
581 { |
582 miniPromptDestroy(this); |
582 var box = miniPromptGetParent(this); |
583 setAjaxLoading(); |
583 var whitey = whiteOutMiniPrompt(box); |
584 ajaxGet(stdAjaxPrefix+'&_mode=resetdelvotes', function(ajax) { |
584 ajaxGet(stdAjaxPrefix+'&_mode=resetdelvotes', function(ajax) { |
585 if ( ajax.readyState == 4 && ajax.status == 200 ) { |
585 if ( ajax.readyState == 4 && ajax.status == 200 ) { |
586 unsetAjaxLoading(); |
586 whiteOutReportSuccess(whitey); |
587 alert(ajax.responseText); |
587 setTimeout(function() |
|
588 { |
|
589 miniPromptDestroy(box); |
|
590 }, 1250); |
|
591 |
588 item = document.getElementById('mdgDeleteVoteNoticeBox'); |
592 item = document.getElementById('mdgDeleteVoteNoticeBox'); |
589 if(item) |
593 if(item) |
590 { |
594 { |
591 opacity('mdgDeleteVoteNoticeBox', 100, 0, 1000); |
595 opacity('mdgDeleteVoteNoticeBox', 100, 0, 1000); |
592 setTimeout("document.getElementById('mdgDeleteVoteNoticeBox').style.display = 'none';", 1000); |
596 setTimeout("document.getElementById('mdgDeleteVoteNoticeBox').style.display = 'none';", 1000); |
1453 return false; |
1457 return false; |
1454 } |
1458 } |
1455 if ( releases.length > 0 ) |
1459 if ( releases.length > 0 ) |
1456 { |
1460 { |
1457 thediv.className = 'tblholder'; |
1461 thediv.className = 'tblholder'; |
|
1462 // FIXME: l10n |
1458 if ( update_available ) |
1463 if ( update_available ) |
1459 { |
1464 { |
1460 var infobox = document.createElement('div'); |
1465 var infobox = document.createElement('div'); |
1461 infobox.className = 'info-box-mini'; |
1466 infobox.className = 'info-box-mini'; |
1462 infobox.appendChild(document.createTextNode('An update for Enano is available. The newest release is highlighted below.')); |
1467 infobox.appendChild(document.createTextNode('An update for Enano is available. The newest release is highlighted below.')); |
1483 var td1 = document.createElement('th'); |
1488 var td1 = document.createElement('th'); |
1484 var td2 = document.createElement('th'); |
1489 var td2 = document.createElement('th'); |
1485 var td3 = document.createElement('th'); |
1490 var td3 = document.createElement('th'); |
1486 var td4 = document.createElement('th'); |
1491 var td4 = document.createElement('th'); |
1487 |
1492 |
|
1493 // FIXME: l10n |
1488 td1.appendChild( document.createTextNode('Release type') ); |
1494 td1.appendChild( document.createTextNode('Release type') ); |
1489 td2.appendChild( document.createTextNode('Version') ); |
1495 td2.appendChild( document.createTextNode('Version') ); |
1490 td3.appendChild( document.createTextNode('Code name') ); |
1496 td3.appendChild( document.createTextNode('Code name') ); |
1491 td4.appendChild( document.createTextNode('Release notes') ); |
1497 td4.appendChild( document.createTextNode('Release notes') ); |
1492 |
1498 |