This commit is contained in:
Jay McCarthy 2014-09-23 21:49:15 -04:00
parent 9c51088b12
commit a8c8af93fb
3 changed files with 12 additions and 0 deletions

View File

@ -66,6 +66,8 @@
</div> </div>
<div id="package_info" class="package"> <div id="package_info" class="package">
<p id="pi_edit_help">Unfocusing an edit field or pressing enter
submits a change update asynchronously.</p>
<table> <table>
<tr><td>Package Name:</td><td><span id="pi_name"></span></td></tr> <tr><td>Package Name:</td><td><span id="pi_name"></span></td></tr>
<tr><td>Ring:</td><td><span id="pi_ring"></span></td></tr> <tr><td>Ring:</td><td><span id="pi_ring"></span></td></tr>

View File

@ -49,6 +49,11 @@ $( document ).ready(function() {
var mypkg_p = ($.inArray(me(), pkgi['authors'] ) != -1); var mypkg_p = ($.inArray(me(), pkgi['authors'] ) != -1);
if ( mypkg_p || true ) {
$("#pi_edit_help").show(); }
else {
$("#pi_edit_help").hide(); }
function make_editbutton ( spot, initv, fun ) { function make_editbutton ( spot, initv, fun ) {
if ( mypkg_p ) { if ( mypkg_p ) {
$( "#" + spot ).append( $('<button>') $( "#" + spot ).append( $('<button>')

View File

@ -167,6 +167,11 @@ a.possible {
color: red; color: red;
} }
#pi_edit_help {
text-align: center;
font-size: small;
}
tr#pi_delete_row td { tr#pi_delete_row td {
text-align: center; text-align: center;
} }