Browse Source

Plush: added history search box, working with pagination

tags/0.6.0
pairofdimes 15 years ago
parent
commit
36f7321bfb
  1. 1
      main/interfaces/Plush/templates/main.tmpl
  2. BIN
      main/interfaces/Plush/templates/static/images/plush-default/viewmag.png
  3. 14
      main/interfaces/Plush/templates/static/javascripts/plush.js
  4. 14
      main/interfaces/Plush/templates/static/stylesheets/plush-default.css

1
main/interfaces/Plush/templates/main.tmpl

@ -251,6 +251,7 @@
<div class="box_banner_r">
<ul class="box_banner_menu">
<li class="main_sprite_container sprite_h_purge show" id="hist_purge" title="$T('purgeHist')"></li>
<li><form id="historySearchForm"><input id="historySearchBox" type="text" size="8" /></form></li>
</ul>
</div>
</div>

BIN
main/interfaces/Plush/templates/static/images/plush-default/viewmag.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

14
main/interfaces/Plush/templates/static/javascripts/plush.js

@ -514,6 +514,13 @@ jQuery(function($){
InitHistory : function() {
// Search
$('#historySearchForm').submit(function(){
$.plush.histcurpage = 0;
$.plush.RefreshHistory();
return false;
});
// Purge
$('#hist_purge').click(function(event) {
if (confirm( $.plush.TconfirmPurgeH )) {
@ -704,10 +711,15 @@ jQuery(function($){
else if (page != $.plush.histcurpage)
$.plush.histcurpage = page;
if ($('#historySearchBox').val())
var data = {start: ( page * $.plush.histPerPage ), limit: $.plush.histPerPage, search: $('#historySearchBox').val() };
else
var data = {start: ( page * $.plush.histPerPage ), limit: $.plush.histPerPage};
$.ajax({
type: "POST",
url: "history/",
data: {start: ( page * $.plush.histPerPage ), limit: $.plush.histPerPage},
data: data,
success: function(result){
$('#history').html(result); // Replace history contents with history.tmpl
$('#history-pagination span').removeClass('loading'); // Remove spinner graphic from pagination

14
main/interfaces/Plush/templates/static/stylesheets/plush-default.css

@ -355,7 +355,19 @@ select {
float:right;
height: 52px;
margin-left: 1px;
width:50px;
width:350px;
}
#historySearchBox {
color:white;
border:1px solid gray;
width:120px;
margin: 8px 8px 0 0;
padding-right:20px;
background: url('../images/plush-default/viewmag.png') no-repeat top right;
/*background-color: black;*/
/*background: url('../images/plush-default/sprite-main.png') no-repeat top right;
background-position: 0 -671px;*/
}
#hdr-queue {

Loading…
Cancel
Save