Merge pull request #2464 from Gared/plugin_page_improvements
Plugin page improvementspull/2466/head
commit
df47bb9b04
|
@ -132,6 +132,11 @@ $(document).ready(function () {
|
||||||
search($("#search-query").val());
|
search($("#search-query").val());
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Prevent form submit
|
||||||
|
$('#search-query').parent().bind('submit', function() {
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
|
||||||
// update & install
|
// update & install
|
||||||
$(".do-install, .do-update").unbind('click').click(function (e) {
|
$(".do-install, .do-update").unbind('click').click(function (e) {
|
||||||
var $row = $(e.target).closest("tr")
|
var $row = $(e.target).closest("tr")
|
||||||
|
@ -176,6 +181,7 @@ $(document).ready(function () {
|
||||||
|
|
||||||
socket.on('results:search', function (data) {
|
socket.on('results:search', function (data) {
|
||||||
if(!data.results.length) search.end = true;
|
if(!data.results.length) search.end = true;
|
||||||
|
if(data.query.offset == 0) search.results = [];
|
||||||
search.messages.hide('nothing-found')
|
search.messages.hide('nothing-found')
|
||||||
search.messages.hide('fetching')
|
search.messages.hide('fetching')
|
||||||
$("#search-query").removeAttr('disabled')
|
$("#search-query").removeAttr('disabled')
|
||||||
|
|
Loading…
Reference in New Issue