1
0

add message to item properties done

This commit is contained in:
Ian
2015-10-12 14:15:31 +02:00
parent b3dc10cc7c
commit 8fb7d51106
2 changed files with 9 additions and 4 deletions

View File

@@ -194,8 +194,10 @@ switch ($serendipity['GET']['adminAction']) {
if ($serendipity['POST']['adminSubAction'] == 'properties') {
$properties = serendipity_parsePropertyForm();
$image_id = $properties['image_id'];
$created_thumbnail = true;
$data['showML'] = showMediaLibrary(true);
$created_thumbnail = true; //??
$data['showML'] = showMediaLibrary(true); // in this case we do not need the location.href (removed)
$propdone = sprintf(MEDIA_PROPERTIES_DONE, $image_id);
$data['messages'] = '<span class="msg_success"><span class="icon-ok-circled"></span> '.DONE.'! ' . $propdone . "</span>\n";
break;
}
@@ -726,8 +728,10 @@ if (! isset($data['showML'])) {
if (isset($_REQUEST['go_properties'])) {
$data['showMLbutton'] = true;
} else {
// always having the ML available is useful when switching the filter after adding an image, thus being in the add-case
$data['showML'] = showMediaLibrary();
// always having the ML available is useful when switching the filter after adding an image, thus being in the add-case (hotlink/upload)
if (isset($serendipity['POST']['imageurl'])) {
$data['showML'] = showMediaLibrary();
}
}
}

View File

@@ -3,3 +3,4 @@
@define('BULKMOVE_HELP_DESC', 'You can select multiple files to bulk-move them to a new location. <strong>Note:</strong> This action cannot be undone, just like bulk-deletion of multiple files. All checked files will be physically moved, and referring blog entries be rewritten to point to the new location.');
@define('FIRST_PAGE', 'First Page');
@define('LAST_PAGE', 'Last Page');
@define('MEDIA_PROPERTIES_DONE', 'Properties of #%d changed.');