Commit 286ab965 authored by Łukasz Nowak's avatar Łukasz Nowak

Allow to select software release.

parent 2d7c610a
...@@ -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>ts21366313.13</string> </value> <value> <string>ts21368104.84</string> </value>
</item> </item>
<item> <item>
<key> <string>__name__</string> </key> <key> <string>__name__</string> </key>
...@@ -47,7 +47,9 @@ function drawSoftwareReleaseList(data) {\n ...@@ -47,7 +47,9 @@ function drawSoftwareReleaseList(data) {\n
$.each(data, function(i,item){\n $.each(data, function(i,item){\n
li = $(\'<li>\').appendTo(ul);\n li = $(\'<li>\').appendTo(ul);\n
var a = $(\'<a>\');\n var a = $(\'<a>\');\n
a.attr({\'href\': \'#!software_release/\' + item.uid})\n a.attr({\n
\'href\': \'#!software_release/\' + item.uid });\n
a.html(item.title + \' (\' + item.version + \')\');\n
a.appendTo(li);\n a.appendTo(li);\n
});\n });\n
$("#software_release_container").append(ul);\n $("#software_release_container").append(ul);\n
...@@ -81,16 +83,16 @@ function softwareReleaseController() {\n ...@@ -81,16 +83,16 @@ function softwareReleaseController() {\n
js_container.empty();\n js_container.empty();\n
var input = $(\'<input type="text">\');\n var input = $(\'<input type="text">\');\n
input.attr(\'id\', "software_release_query");\n input.attr(\'id\', "software_release_query");\n
js_container.appendTo(input);\n js_container.append(input);\n
\n \n
var newElem = $(\'<input type="button">\');\n var refresh = $(\'<input type="button">\');\n
newElem.attr(\'value\', \'Refresh...\');\n refresh.attr(\'value\', \'Refresh...\');\n
newElem.addClass(\'bt-med dialog_submit_button\');\n refresh.addClass(\'bt-med dialog_submit_button\');\n
input.after(newElem);\n input.after(refresh);\n
software_release_container = $(\'<div>\');\n software_release_container = $(\'<div>\');\n
software_release_container.attr(\'id\', \'software_release_container\');\n software_release_container.attr(\'id\', \'software_release_container\');\n
newElem.after(software_release_container);\n refresh.after(software_release_container);\n
newElem.click(updateSoftwareReleaseList);\n refresh.click(updateSoftwareReleaseList);\n
}\n }\n
\n \n
function softwareProductController () {\n function softwareProductController () {\n
...@@ -101,14 +103,14 @@ function softwareProductController () {\n ...@@ -101,14 +103,14 @@ function softwareProductController () {\n
input.attr(\'id\', "software_product_query");\n input.attr(\'id\', "software_product_query");\n
js_container.append(input);\n js_container.append(input);\n
\n \n
var newElem = $(\'<input type="button">\');\n var refresh = $(\'<input type="button">\');\n
newElem.attr(\'value\', \'Refresh...\');\n refresh.attr(\'value\', \'Refresh...\');\n
newElem.addClass(\'bt-med dialog_submit_button\');\n refresh.addClass(\'bt-med dialog_submit_button\');\n
input.after(newElem);\n input.after(refresh);\n
software_product_container = $(\'<div>\');\n software_product_container = $(\'<div>\');\n
software_product_container.attr(\'id\', \'software_product_container\');\n software_product_container.attr(\'id\', \'software_product_container\');\n
newElem.after(software_product_container);\n refresh.after(software_product_container);\n
newElem.click(updateSoftwareProductList);\n refresh.click(updateSoftwareProductList);\n
\n \n
}\n }\n
\n \n
...@@ -160,7 +162,7 @@ function mainController() {\n ...@@ -160,7 +162,7 @@ function mainController() {\n
</item> </item>
<item> <item>
<key> <string>size</string> </key> <key> <string>size</string> </key>
<value> <int>3529</int> </value> <value> <int>3592</int> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
324 325
\ No newline at end of file \ No newline at end of file
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