webbuild-cgi: add icon button to refresh spec list

This commit is contained in:
Silvan Calarco 2016-01-10 17:10:57 +01:00
parent 73f032afda
commit 1c8a7cbbdf
2 changed files with 7 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 335 B

View File

@ -737,7 +737,8 @@ echo -n "]]></environments>"
if [ "$MAINTAINERMODE" = "true" ]; then if [ "$MAINTAINERMODE" = "true" ]; then
echo -n "<specedit> </specedit>" echo -n "<specedit> </specedit>"
elif [ ! "$REQUEST" -o "$REQUEST" = "changeenvironment" -o "$REQUEST" = "switchmaintainermode" \ elif [ ! "$REQUEST" -o "$REQUEST" = "changeenvironment" -o "$REQUEST" = "switchmaintainermode" \
-o "$REQUEST" = "prepare" -o "$REQUEST" = "reloadspec" -o "$REQUEST" = "edit" ]; then -o "$REQUEST" = "prepare" -o "$REQUEST" = "reloadspec" -o "$REQUEST" = "edit" \
-o "$REQUEST" = "reloadspeclist" -o "$REQUEST" = "prepare" ]; then
# SPECFILES select # SPECFILES select
echo -n "<specedit><![CDATA[" echo -n "<specedit><![CDATA["
echo -n " Edit:<select id=specfile " echo -n " Edit:<select id=specfile "
@ -749,7 +750,11 @@ elif [ ! "$REQUEST" -o "$REQUEST" = "changeenvironment" -o "$REQUEST" = "switchm
[ "$PACKAGE" = "$specname" ] && SELECTED="selected=\"selected\"" || SELECTED= [ "$PACKAGE" = "$specname" ] && SELECTED="selected=\"selected\"" || SELECTED=
echo -n "<option value=\"$specname\" $SELECTED>${specname}</option>" echo -n "<option value=\"$specname\" $SELECTED>${specname}</option>"
done done
echo -n "</select>.spec]]></specedit>" echo -n "</select>.spec"
echo -n "&nbsp<img class=\"button\" src=\"/images/refresh.png\" alt=\"Refresh\" title=\"Refresh spec list\" onclick="
echo -n "ajax_getvalues(\"ENVIRONMENT=$ENVIRONMENT&REPOSITORY=$REPOSITORY&PACKAGE=$PACKAGEENCODED&"
echo -n "MAINTAINERMODE=$MAINTAINERMODE&REQUEST=reloadspeclist\");></img>"
echo -n "]]></specedit>"
fi fi
[ "$PACKAGE" -a ! "$REQUEST" ] && REQUEST=edit [ "$PACKAGE" -a ! "$REQUEST" ] && REQUEST=edit