| @@ -70,9 +70,20 @@ | ||
| 70 | 70 | jQuery.each( response.errorfields, function (index, field) { |
| 71 | 71 | jQuery( '#'+value+' .field-label[for="' + field + '"]' ).addClass('error'); |
| 72 | 72 | }); |
| 73 | 73 | |
| 74 | - alert( response.error ); | |
| 74 | + // Extend with a custom tooltip instead of alert | |
| 75 | + jQuery('<div>' + response.error + '</div>').dialog({ | |
| 76 | + modal: true, | |
| 77 | + title: 'Error', | |
| 78 | + width: 400, | |
| 79 | + minHeight: 200, | |
| 80 | + buttons: { | |
| 81 | + Ok: function() { | |
| 82 | + jQuery(this).dialog('close'); | |
| 83 | + } | |
| 84 | + } | |
| 85 | + }); | |
| 75 | 86 | } |
| 76 | 87 | else{ |
| 77 | 88 | /* refresh the list */ |
| 78 | 89 | jQuery('#container_'+value).replaceWith(response.entry_list); |