Skip to content

Commit

Permalink
Fixed resetting of image when pressing insert without value
Browse files Browse the repository at this point in the history
  • Loading branch information
TNDecoder authored and TNDecoder committed May 29, 2017
1 parent 5d9a534 commit 598fbed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/libraries/redcore/form/fields/rmedia.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ protected function getInput()
$script = array();
$script[] = ' function jInsertFieldValue(value, id) {';
$script[] = ' var old_value = document.id(id).value;';
$script[] = ' if (old_value != value) {';
$script[] = ' if (old_value != value && !value == false) {';
$script[] = ' var elem = document.id(id);';
$script[] = ' elem.value = value;';
$script[] = ' elem.fireEvent("change");';
Expand Down

0 comments on commit 598fbed

Please sign in to comment.