Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js/pmd
diff options
context:
space:
mode:
authorMadhura Jayaratne <madhura.cj@gmail.com>2015-06-17 14:23:17 +0300
committerMadhura Jayaratne <madhura.cj@gmail.com>2015-06-17 14:23:17 +0300
commiteff203659b1283a529037c17d001d0606cdc2bfa (patch)
tree2917c01341cdae814db4c865f1c61864067f5e62 /js/pmd
parent5cff9dd06a87aa7727087cfb3a17bacf3e1327ae (diff)
Organize HTML generation code
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Diffstat (limited to 'js/pmd')
-rw-r--r--js/pmd/history.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/js/pmd/history.js b/js/pmd/history.js
index 7b8d21349b..b60f93f88d 100644
--- a/js/pmd/history.js
+++ b/js/pmd/history.js
@@ -95,10 +95,16 @@ function display(init, finit)
str += '<td style="padding-left: 5px;" class="right">' + PMA_getImage('b_sbrowse.png', 'column name') + '</td>' +
'<td width="175" style="padding-left: 5px">' + history_array[i].get_column_name() + '<td>';
if (history_array[i].get_type() == "GroupBy" || history_array[i].get_type() == "OrderBy") {
- str += '<td class="center">' + PMA_getImage('s_info.png', detail(i)) + '<td title="' + detail(i) + '">' + history_array[i].get_type() + '</td></td><td onmouseover="this.className=\'history_table\';" onmouseout="this.className=\'history_table2\'" onclick=history_delete(' + i + ')>' + PMA_getImage('b_drop.png', 'Delete') + '</td></tr></thead>';
+ str += '<td class="center">' + PMA_getImage('s_info.png', detail(i)) + '</td>' +
+ '<td title="' + detail(i) + '">' + history_array[i].get_type() + '</td>' +
+ '<td onmouseover="this.className=\'history_table\';" onmouseout="this.className=\'history_table2\'" onclick=history_delete(' + i + ')>' + PMA_getImage('b_drop.png', 'Delete') + '</td>';
} else {
- str += '<td class="center">' + PMA_getImage('s_info.png', detail(i)) + '</td><td title="' + detail(i) + '">' + history_array[i].get_type() + '</td><td <td onmouseover="this.className=\'history_table\';" onmouseout="this.className=\'history_table2\'" onclick=history_edit(' + i + ')>' + PMA_getImage('b_edit.png', PMA_messages.strEdit) + '</td><td onmouseover="this.className=\'history_table\';" onmouseout="this.className=\'history_table2\'" onclick=history_delete(' + i + ')>' + PMA_getImage('b_drop.png', 'Delete') + '</td></tr></thead>';
+ str += '<td class="center">' + PMA_getImage('s_info.png', detail(i)) + '</td>' +
+ '<td title="' + detail(i) + '">' + history_array[i].get_type() + '</td>' +
+ '<td onmouseover="this.className=\'history_table\';" onmouseout="this.className=\'history_table2\'" onclick=history_edit(' + i + ')>' + PMA_getImage('b_edit.png', PMA_messages.strEdit) + '</td>' +
+ '<td onmouseover="this.className=\'history_table\';" onmouseout="this.className=\'history_table2\'" onclick=history_delete(' + i + ')>' + PMA_getImage('b_drop.png', 'Delete') + '</td>';
}
+ str += '</tr></thead>';
i++;
if (i >= history_array.length) {
break;