diff options
author | Rouslan Placella <rouslan@placella.com> | 2012-06-19 01:43:32 +0400 |
---|---|---|
committer | Rouslan Placella <rouslan@placella.com> | 2012-10-31 00:04:52 +0400 |
commit | 72eea9161d1f880ba96edb21ba7d97adc6bd163b (patch) | |
tree | 1006b8380c1363fd91560c53458c069736004556 /js/gis_data_editor.js | |
parent | 0657b8f7a7a64b6117ca103a7f6fa74a204db4c0 (diff) |
Added an href attribute to links in the gis data editor
Diffstat (limited to 'js/gis_data_editor.js')
-rw-r--r-- | js/gis_data_editor.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/js/gis_data_editor.js b/js/gis_data_editor.js index c3146ad738..1d66a4a069 100644 --- a/js/gis_data_editor.js +++ b/js/gis_data_editor.js @@ -29,8 +29,8 @@ function prepareJSVersion() { .before('<br><br>'); // Add close and cancel links - $('#gis_data_editor').prepend('<a class="close_gis_editor">' + PMA_messages['strClose'] + '</a>'); - $('<a class="cancel_gis_editor"> ' + PMA_messages['strCancel'] + '</a>') + $('#gis_data_editor').prepend('<a class="close_gis_editor" href="#">' + PMA_messages['strClose'] + '</a>'); + $('<a class="cancel_gis_editor" href="#"> ' + PMA_messages['strCancel'] + '</a>') .insertAfter($("input[name='gis_data[save]']")); // Remove the unnecessary text @@ -43,7 +43,7 @@ function prepareJSVersion() { var classes = $button.attr('class'); $button.replaceWith( '<a class="' + classes + '" name="' + $button.attr('name') - + '">+ ' + $button.val() + '</a>' + + '" href="#">+ ' + $button.val() + '</a>' ); }); } @@ -310,7 +310,7 @@ $(function() { for (i = 0; i < noOfPoints; i++) { html += addDataPoint(i, (prefix + '[' + noOfLines + ']')); } - html += '<a class="addPoint addJs" name="' + prefix + '[' + noOfLines + '][add_point]">+ ' + html += '<a class="addPoint addJs" name="' + prefix + '[' + noOfLines + '][add_point]" href="#">+ ' + PMA_messages['strAddPoint'] + '</a><br>'; $a.before(html); @@ -337,9 +337,9 @@ $(function() { for (i = 0; i < 4; i++) { html += addDataPoint(i, (prefix + '[' + noOfPolygons + '][0]')); } - html += '<a class="addPoint addJs" name="' + prefix + '[' + noOfPolygons + '][0][add_point]">+ ' + html += '<a class="addPoint addJs" name="' + prefix + '[' + noOfPolygons + '][0][add_point]" href="#">+ ' + PMA_messages['strAddPoint'] + '</a><br>' - + '<a class="addLine addJs" name="' + prefix + '[' + noOfPolygons + '][add_line]">+ ' + + '<a class="addLine addJs" name="' + prefix + '[' + noOfPolygons + '][add_line]" href="#">+ ' + PMA_messages['strAddInnerRing'] + '</a><br><br>'; $a.before(html); |