1
0
mirror of https://github.com/silverstripe/silverstripe-reports synced 2024-10-22 11:05:53 +02:00

MINOR: add icon to ajax button in AssetAdmin

This commit is contained in:
Will Rossiter 2012-03-24 14:29:37 +13:00
parent 66123a2b67
commit a39231f952

View File

@ -178,7 +178,7 @@ JS
$syncButton = new LiteralField(
'SyncButton',
sprintf(
'<a class="ss-ui-button ss-ui-action cms-link-ajax" title="%s" href="%s">%s</a>',
'<a class="ss-ui-button ss-ui-action ui-button-text-icon-primary ss-ui-button-ajax" title="%s" href="%s">%s</a>',
_t('AssetAdmin.FILESYSTEMSYNCTITLE', 'Update the CMS database entries of files on the filesystem. Useful when new files have been uploaded outside of the CMS, e.g. through FTP.'),
$this->Link('doSync'),
_t('FILESYSTEMSYNC','Sync files')
@ -446,6 +446,7 @@ JS
public function doSync() {
$message = Filesystem::sync();
$this->response->addHeader('X-Status', $message);
return;
}