diff --git a/js/functions.js b/js/functions.js
index 8d0beff594..5be6d1c130 100644
--- a/js/functions.js
+++ b/js/functions.js
@@ -2931,6 +2931,10 @@ AJAX.registerOnload('functions.js', function () {
var db = PMA_commonParams.get('db');
var table = PMA_commonParams.get('table');
var maxRows = $(this).data('maxrows');
+ var pick = $(this).data('pick');
+ if(pick !== false) {
+ pick = true;
+ }
var params = {
'ajax_request' : true,
'token' : PMA_commonParams.get('token'),
@@ -2962,7 +2966,11 @@ AJAX.registerOnload('functions.js', function () {
fields += '('+escapeHtml(central_column_list[db+'_'+table][i].col_length)+') ';
}
fields += escapeHtml(central_column_list[db+'_'+table][i].col_extra)+''+
- '
" .
+ "
"
+ . "
";
+ return $html;
+}
+
+/**
+ * build the html contents of various html elements in step 1.2
+ *
+ * @param string $db current database
+ * @param string $table current table
+ *
+ * @return HTML contents for step 1.2
+ */
+function PMA_getHtmlContentsFor1NFStep2($db, $table)
+{
+ $step = 2;
+ $stepTxt = __('Have unique columns');
+ $hasPrimaryKey = PMA_checkUniqueColumn($db, $table);
+ $legendText = __('Step 1.') . $step . " " . $stepTxt;
+ $extra = '';
+ if ($hasPrimaryKey) {
+ $headText = __("Unique column(s) already exist");
+ $subText = __("Taking you to next step ...");
+ } else {
+ $headText = __(
+ "There are no unique columns. Add an unique column "
+ . "(or combination of columns) that uniquely identify all rows. "
+ );
+ $subText = '