parent
ce6ae0df08
commit
25cb3a0d15
|
@ -60,6 +60,8 @@
|
|||
<tr id="pi_dependencies_row"><td>Dependencies</td><td><span id="pi_dependencies"></span></td></tr>
|
||||
<tr id="pi_conflicts_row"><td>Conflicts</td><td><span id="pi_conflicts"></span></td></tr>
|
||||
<tr><td>Modules</td><td><span id="pi_modules"></span></td></tr>
|
||||
<tr id="pi_delete_row"><td colspan="2"><button id="pi_delete_button">Delete
|
||||
Package</button><br />(there is no undo!)</td></tr>
|
||||
</table>
|
||||
|
||||
<div id="pi_install" class="install">Install this package with:<br><br><tt>raco pkg install <span id="pi_name_inst"></span></tt><br><br>or, with the 'File|Install Package...' menu option in DrRacket.</div>
|
||||
|
|
|
@ -59,14 +59,16 @@ $( document ).ready(function() {
|
|||
it.val(initv).focus(); } ) ); } }
|
||||
|
||||
$( "#pi_name" ).text( pkgi['name'] );
|
||||
make_editbutton ( "pi_name", pkgi['name'], submit_mod_name );
|
||||
make_editbutton ( "pi_name", pkgi['name'], submit_mod_name );
|
||||
if ( mypkg_p ) {
|
||||
$( "#pi_name" ).append( $('<button>')
|
||||
.button({ icons: { primary: "ui-icon-trash" } })
|
||||
.click( function (e) {
|
||||
dynamic_pkgsend( "/jsonp/package/del", { } );
|
||||
$(pkgi['dom_obj']).remove();
|
||||
$("#package_info").dialog("close"); } ) ); }
|
||||
$( "#pi_delete_button" ).click( function (e) {
|
||||
dynamic_pkgsend( "/jsonp/package/del", { } );
|
||||
$(pkgi['dom_obj']).remove();
|
||||
$("#package_info").dialog("close"); } );
|
||||
$( "#pi_delete_row" ).show(); }
|
||||
else {
|
||||
$( "#pi_delete_row" ).hide(); }
|
||||
|
||||
|
||||
$( "#pi_name_inst" ).text( pkgi['name'] );
|
||||
$( "#pi_ring" ).text( pkgi['ring'] );
|
||||
|
|
|
@ -150,3 +150,7 @@ a.possible {
|
|||
text-align: center;
|
||||
color: red;
|
||||
}
|
||||
|
||||
tr#pi_delete_row td {
|
||||
text-align: center;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user