Commit 112c77d7 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

button shows update rather than insert when an image is selected

parent 7249cb9a
......@@ -124,28 +124,29 @@ $getstring = quotestrings(array(
'myfiles',
),
'artefact.blog' => array(
'baseline',
'top',
'middle',
'bottom',
'texttop',
'absolutemiddle',
'absolutebottom',
'left',
'right',
'alignment',
'attach',
'baseline',
'blogpost',
'border',
'bottom',
'browsemyfiles',
'cancel',
'dimensions',
'horizontalspace',
'insert',
'insertimage',
'left',
'middle',
'name',
'nofilesattachedtothispost',
'remove',
'right',
'texttop',
'top',
'update',
'verticalspace',
'noimageshavebeenattachedtothispost',
)));
......@@ -550,7 +551,8 @@ function blogpostExecCommandHandler(editor_id, elm, command, user_interface, val
INPUT({'type':'hidden', 'name':'imgid', 'value':a.alt}),
TABLE(null,tbody));
appendChildNodes(tbody, TR(null,TD({'colSpan':2},
INPUT({'type':'button', 'class':'button', 'value':{$getstring['insert']},
INPUT({'type':'button', 'class':'button',
'value':(a.src == '' ? {$getstring['insert']} : {$getstring['update']}),
'onclick':function () { insertImage(); }}),
INPUT({'type':'button', 'class':'button', 'value':{$getstring['cancel']},
'onclick':function () { replaceChildNodes('insertimage', null); }}))));
......
......@@ -93,6 +93,7 @@ $string['settings'] = 'Settings';
$string['thisisdraft'] = 'This post is a draft';
$string['thisisdraftdesc'] = 'When your post is a draft, no one except you can see it.';
$string['title'] = 'Title';
$string['update'] = 'Update';
$string['verticalspace'] = 'Vertical space';
$string['viewblog'] = 'View Blog';
$string['youarenottheownerofthisblogpost'] = 'You are not the owner of this blog post';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment