Skip to content

Commit

Permalink
add 2 new icons: calendar and thermometer
Browse files Browse the repository at this point in the history
  • Loading branch information
jp112sdl committed Mar 26, 2019
1 parent e111338 commit 2fb6244
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 2 deletions.
8 changes: 8 additions & 0 deletions src/addon/install_hb-dis-ep-xxx
Original file line number Diff line number Diff line change
Expand Up @@ -183,4 +183,12 @@ fi
translate_deInsert="\n \"iconHbBell\":\"Glocke\","
if [ -z "`cat $translate_deFile | grep \"iconHbBell\"`" ]; then
sed -i "s/\($translate_deSearch\)/\1$translate_deInsert/g" $translate_deFile
fi
translate_deInsert="\n \"iconHbCalendar\":\"Kalender\","
if [ -z "`cat $translate_deFile | grep \"iconHbCalendar\"`" ]; then
sed -i "s/\($translate_deSearch\)/\1$translate_deInsert/g" $translate_deFile
fi
translate_deInsert="\n \"iconHbThermometer\":\"Thermometer\","
if [ -z "`cat $translate_deFile | grep \"iconHbThermometer\"`" ]; then
sed -i "s/\($translate_deSearch\)/\1$translate_deInsert/g" $translate_deFile
fi
6 changes: 4 additions & 2 deletions src/addon/js/jp_webui_inc.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,13 @@ HbStatusDisplayDialogEPaper = Class.create(StatusDisplayDialog, {
translateKey("iconHbSnowflake"),
translateKey("iconHbWarning"),
translateKey("iconHbError"),
translateKey("iconHbBell")
translateKey("iconHbBell"),
translateKey("iconHbCalendar"),
translateKey("iconHbThermometer")
];

options += "<option name='option_NotUsed' value='-1'>" + translateKey("stringTableNotUsed") + "</option>";
for (var loop = 0; loop < 19; loop++) {
for (var loop = 0; loop < 21; loop++) {
options += "<option name='option_"+loop+"' value='"+loop+"'>" + arOptionText[loop] + "</option>";
}
return options;
Expand Down
4 changes: 4 additions & 0 deletions src/addon/uninstall_hb-dis-ep-xxx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ translate_deSearch="iconHbError"
sed -i "/\(${translate_deSearch}\)/d" $translate_deFile
translate_deSearch="iconHbBell"
sed -i "/\(${translate_deSearch}\)/d" $translate_deFile
translate_deSearch="iconHbCalendar"
sed -i "/\(${translate_deSearch}\)/d" $translate_deFile
translate_deSearch="iconHbThermometer"
sed -i "/\(${translate_deSearch}\)/d" $translate_deFile

rm -f $FIRMWARE_FILE
rm -f /www/config/img/devices/250/$DEVICE_IMG
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2fb6244

Please sign in to comment.