Commit 71ef9507 authored by Łukasz Nowak's avatar Łukasz Nowak

Support empty result of search query.

parent 500f9c23
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_EtagSupport__etag</string> </key> <key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts21958862.41</string> </value> <value> <string>ts21959401.3</string> </value>
</item> </item>
<item> <item>
<key> <string>__name__</string> </key> <key> <string>__name__</string> </key>
...@@ -78,18 +78,29 @@ function drawSoftwareReleaseList(data) {\n ...@@ -78,18 +78,29 @@ function drawSoftwareReleaseList(data) {\n
$(\'#software_release_container\').empty()\n $(\'#software_release_container\').empty()\n
var ul = $(\'<ul>\');\n var ul = $(\'<ul>\');\n
ul.attr(\'id\', \'software_release_list\');\n ul.attr(\'id\', \'software_release_list\');\n
$.each(data[\'software_release_list\'], function(i,item){\n if (data[\'software_release_list\'].length > 0) {\n
getSoftwareReleaseEntry(item).appendTo(ul)\n $.each(data[\'software_release_list\'], function(i,item){\n
});\n getSoftwareReleaseEntry(item).appendTo(ul)\n
var li = $(\'<li>\').appendTo(ul);\n });\n
li.addClass(\'software_release_more\');\n var li = $(\'<li>\').appendTo(ul);\n
li.attr(\'id\', \'more_end\');\n li.addClass(\'software_release_more\');\n
var more_div = $(\'<div>\');\n li.attr(\'id\', \'more_end\');\n
more_div.attr(\'id\', \'more_div\');\n var more_div = $(\'<div>\');\n
more_div.addClass(\'software_release_more\');\n more_div.attr(\'id\', \'more_div\');\n
more_div.html(\'More...\');\n more_div.addClass(\'software_release_more\');\n
li.append(more_div);\n more_div.html(\'More...\');\n
li.click(extendSoftwareReleaseList);\n li.append(more_div);\n
li.click(extendSoftwareReleaseList);\n
}\n
else\n
{\n
var li = $(\'<li>\').appendTo(ul);\n
li.addClass(\'software_release_more\');\n
var more_div = $(\'<div>\');\n
more_div.addClass(\'software_release_more\');\n
more_div.html(\'Sorry, no results.\');\n
li.append(more_div);\n
}\n
$("#software_release_container").append(ul);\n $("#software_release_container").append(ul);\n
}\n }\n
\n \n
...@@ -263,7 +274,7 @@ function hashController ()\n ...@@ -263,7 +274,7 @@ function hashController ()\n
</item> </item>
<item> <item>
<key> <string>size</string> </key> <key> <string>size</string> </key>
<value> <int>6873</int> </value> <value> <int>7190</int> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment