diff --git a/pkgs/plt-services/meta/pkg-index/official/static/index.html b/pkgs/plt-services/meta/pkg-index/official/static/index.html
index 6f5302546c..e54604c132 100644
--- a/pkgs/plt-services/meta/pkg-index/official/static/index.html
+++ b/pkgs/plt-services/meta/pkg-index/official/static/index.html
@@ -29,7 +29,7 @@
Last Edit: | |
Description: | |
Tags: | |
- XXX | Add a tag |
+ | |
Versions Exceptions | |
diff --git a/pkgs/plt-services/meta/pkg-index/official/static/index.js b/pkgs/plt-services/meta/pkg-index/official/static/index.js
index a827dddf8c..5e3b347fa0 100644
--- a/pkgs/plt-services/meta/pkg-index/official/static/index.js
+++ b/pkgs/plt-services/meta/pkg-index/official/static/index.js
@@ -1,9 +1,10 @@
// xxx display curation if allowed -- http://localhost:8001/#(!:conflicts:)(ring:2)
// xxx logout
// xxx what user am i
-// xxx upload
+// xxx upload package
+// xxx bulk upload api
// xxx update
-// xxx show info about a package
+// xxx add a tag api
$( document ).ready(function() {
$("#package_info").dialog({
@@ -42,12 +43,23 @@ $( document ).ready(function() {
return [tag, " "]; } ) )
$( "#pi_versions" ).html("").append( $.map( pkgi['versions'], function ( vo, v ) {
return [ $('').append( $('').html(v),
- $(' | ').html(vo['source']) ),
+ $(' | ').html(vo['source']) ),
$(' |
').append( $('').html(""),
- $(' | ').html(vo['checksum']) ),
+ $(' | ').html(vo['checksum']) ),
" "]; } ) )
active_info = pkgi; };
+ function submit_add_tag () {
+ var it = $( "#pi_add_tag_text" );
+ //
+ active_info['tags'].push( it.val() );
+ update_info( active_info );
+ //
+ it.val("");}
+ $( "#pi_add_tag_text" ).keypress( function (e) {
+ if (e.which == 13) { submit_add_tag (); } } );
+ $( "#pi_add_tag_button" ).click( function (e) { submit_add_tag (); } );
+
var search_terms = { };
function parse_hash ( h ) {
diff --git a/pkgs/plt-services/meta/pkg-index/official/static/style.css b/pkgs/plt-services/meta/pkg-index/official/static/style.css
index 58dcfaf5be..9132f76d85 100644
--- a/pkgs/plt-services/meta/pkg-index/official/static/style.css
+++ b/pkgs/plt-services/meta/pkg-index/official/static/style.css
@@ -96,12 +96,13 @@ table.packages tbody tr.even {
}
.package table td:nth-child(2) {
text-align: left;
+ width: 60%;
}
.package table td.submit {
text-align: center;
}
.package input {
- width: 100%;
+ width: 50%;
}
.package textarea {
width: 100%;
|