Project

General

Profile

Bug #25171 ยป 17758.patch

Administrator Admin, 2011-02-24 22:22

View differences:

typo3/sysext/em/res/js/em_repositorylist.js (revision )
repositoryUpdate: function() {
var m = Ext.MessageBox.wait(TYPO3.lang.msg_longwait, TYPO3.lang.repository_update);
TYPO3.EM.ExtDirect.repositoryUpdate(1, function(response) {
var index = TYPO3.EM.RepositoryCombo.getValue();
if (!index) {
return;
}
var record = this.repositoryStore.getAt(index - 1);
TYPO3.EM.ExtDirect.repositoryUpdate(index, function(response) {
if (!response.success) {
if (response.rep == 0) {
TYPO3.Flashmessage.display(TYPO3.Severity.error, TYPO3.lang.msg_error, response.errormsg, 15);
......
}
} else {
TYPO3.Flashmessage.display(TYPO3.Severity.information, TYPO3.lang.repository_updated, String.format(TYPO3.lang.repository_extensions_count, response.data.count), 10);
this.repositoryListStore.load();
record.set('count', response.data.count);
record.set('updated', response.data.updated);
Ext.getCmp('repListInfo').update(TYPO3.EM.Layouts.repositoryInfo().applyTemplate(record.data));
}
m.hide();
}, this);
},
showExtInfoInWindow: function(index) {
typo3/sysext/em/classes/connection/class.tx_em_connection_extdirectserver.php (revision )
/** @var $objRepositoryUtility tx_em_Repository_Utility */
$objRepositoryUtility = t3lib_div::makeInstance('tx_em_Repository_Utility', $objRepository);
$count = $objRepositoryUtility->updateExtList();
$time = $GLOBALS['EXEC_TIME'];
if ($count) {
$objRepository->setExtensionCount($count);
$objRepository->setLastUpdate(time());
$objRepository->setLastUpdate($time);
tx_em_Database::updateRepository($objRepository);
return array(
'success' => TRUE,
'data' => array(
'count' => $count
'count' => $count,
'updated' => date('d/m/Y H:i', $time)
),
'rep' => intval($repositoryId)
);
    (1-1/1)