webbuild-cgi: add icon button to refresh spec list
This commit is contained in:
parent
73f032afda
commit
1c8a7cbbdf
BIN
webbuild/html/images/refresh.png
Normal file
BIN
webbuild/html/images/refresh.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 335 B |
@ -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 " <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
|
||||||
|
Loading…
Reference in New Issue
Block a user