Skip to content

Commit

Permalink
MINOR: add icon to ajax button in AssetAdmin
Browse files Browse the repository at this point in the history
  • Loading branch information
wilr committed Mar 24, 2012
1 parent 66123a2 commit a39231f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/controllers/AssetAdmin.php
Expand Up @@ -178,7 +178,7 @@ public function getEditForm($id = null, $fields = null) {
$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')
Expand Down Expand Up @@ -446,6 +446,7 @@ public function SiteTreeAsUL() {
public function doSync() {
$message = Filesystem::sync();
$this->response->addHeader('X-Status', $message);

return;
}

Expand Down

0 comments on commit a39231f

Please sign in to comment.