Skip to content

Commit 04e2fd7

Browse files
committed
Add copy-to-clipboard function to config.php setup step
1 parent c1f9b26 commit 04e2fd7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

textpattern/setup/index.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ function setup_config_contents()
628628
strong(gTxt('before_you_proceed')) . ' ' .
629629
gTxt('create_config', array('{configpath}' => $config_path . DS))
630630
) .
631-
graf('<a class="txp-button txp-config-download">' . gTxt('download') . '</a>') .
631+
graf('<button class="action-copy-clip" data-source="[name=\'config\']"><span class="ui-icon ui-icon-clipboard"></span> ' . gTxt('copy_to_clipboard') . '</button> <a class="txp-button txp-config-download"><span class="ui-icon ui-icon-arrowstop-1-s"></span> ' . gTxt('download') . '</a>') .
632632
n . '<textarea class="code" name="config" cols="' . INPUT_LARGE . '" rows="' . TEXTAREA_HEIGHT_REGULAR . '" dir="ltr" readonly>' .
633633
setup_makeConfig($cfg, true) .
634634
n . '</textarea>' .
@@ -638,7 +638,6 @@ function setup_config_contents()
638638
n . '</form>';
639639
}
640640

641-
642641
/**
643642
* Render a 'back' button that goes to the correct step.
644643
*

0 commit comments

Comments
 (0)