From d770d0b2dab5a5bbbf2a89db1587ed7340e80e12 Mon Sep 17 00:00:00 2001 From: Lukas Mueller Date: Tue, 10 Dec 2013 17:35:40 -0500 Subject: [PATCH] add ids to certain html tags to facilitate testing using Selenium::Remote::Driver --- js/CXGN/List.js | 36 +++++++++++++++++++++++++----------- 1 file changed, 25 insertions(+), 11 deletions(-) diff --git a/js/CXGN/List.js b/js/CXGN/List.js index feb4f7c25..2797f2312 100644 --- a/js/CXGN/List.js +++ b/js/CXGN/List.js @@ -302,9 +302,15 @@ CXGN.List.prototype = { html += ''; html += '\n'; for (var i = 0; i < lists.length; i++) { - html = html + '\n'; + html += ''; + html += ''; + html += ''; + html += ''; + html += ''; + html += '\n'; } html = html + '
list name#typeactions
'+lists[i][1]+''+lists[i][3]+''+lists[i][5]+'view|delete|download
'+lists[i][1]+''+lists[i][3]+''+lists[i][5]+'view|delete|download
'; + jQuery('#'+div).html(html); jQuery('#add_list_button').click(function() { @@ -333,17 +339,18 @@ CXGN.List.prototype = { var html = ''; html += ''; + html += ''; + html += ''; + html += ''; html += '
List name '; - html += 'List ID
'+list_id+'
List ID
'+list_id+'
Type'+this.typesHtmlSelect(list_id, 'type_select', list_type)+'
'; - html += 'Add new elements:

'; - html += 'List items ('+items.length+')
'; for(var n=0; n
'; } + jQuery('#'+div).html(html); for (var n=0; n