Skip to content

Commit

Permalink
[api,webui] fix add repository from default list
Browse files Browse the repository at this point in the history
  • Loading branch information
coolo committed Jul 2, 2012
1 parent 72e1de9 commit 58a174f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 17 deletions.
25 changes: 12 additions & 13 deletions docs/api/api/distributions.rng
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<grammar ns="http://buildservice.org/api" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">

<include href="obs.rng" />

<grammar xmlns="http://relaxng.org/ns/structure/1.0" ns="http://buildservice.org/api" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<include href="obs.rng"/>
<start>
<ref name="distributions-element"/>
</start>

<define ns="" name="distributions-element">
<element name="distributions">
<zeroOrMore>
<ref name="distribution-element"/>
</zeroOrMore>
</element>
</define>

<define ns="" name="distribution-element">
<element name="distribution">
<attribute name="id">
Expand Down Expand Up @@ -48,15 +44,18 @@
</interleave>
</element>
</define>

<define ns="" name="icon-element">
<element name="icon">
<attribute name="width">
<data type="int"/>
</attribute>
<attribute name="height">
<data type="int"/>
</attribute>
<optional>
<attribute name="width">
<data type="int"/>
</attribute>
</optional>
<optional>
<attribute name="height">
<data type="int"/>
</attribute>
</optional>
<attribute name="url">
<data type="string"/>
</attribute>
Expand Down
6 changes: 3 additions & 3 deletions docs/api/api/distributions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<project>openSUSE:11.0</project>
<repository>standard</repository>
<reponame>openSUSE_11.0</reponame>
<icon width="8" height="8" url="http://opensuse.org/static/os11logo8.png"/>
<icon width="8" url="http://opensuse.org/static/os11logo8.png"/>
<icon width="16" height="16" url="http://opensuse.org/static/os11logo16.png"/>
<link>http://www.opensuse.org</link>
</distribution>
Expand All @@ -13,7 +13,7 @@
<project>openSUSE:10.3</project>
<reponame>openSUSE_10.3</reponame>
<repository>standard</repository>
<icon width="8" height="8" url="http://opensuse.org/static/os10logo8.png"/>
<icon url="http://opensuse.org/static/os10logo8.png"/>
<icon width="16" height="16" url="http://opensuse.org/static/os10logo16.png"/>
<link>http://www.opensuse.org</link>
</distribution>
Expand All @@ -22,7 +22,7 @@
<project>Fedora:9</project>
<reponame>Fedora_9</reponame>
<repository>standard</repository>
<icon width="8" height="8" url="http://opensuse.org/static/fed9logo8.png"/>
<icon height="8" url="http://opensuse.org/static/fed9logo8.png"/>
<icon width="16" height="16" url="http://opensuse.org/static/fed9logo16.png"/>
<link>http://www.fedoraproject.org</link>
</distribution>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@
<% end %>
<%= content_for :ready_function do %>
$('.repocheckbox').click(function() { $('#submitrepos').enable(); } );
$('.repocheckbox').click(function() { $('#submitrepos').removeAttr('disabled'); } );
<% end %>

0 comments on commit 58a174f

Please sign in to comment.