|
@@ -146,22 +146,16 @@ function delete_blog {
|
146
|
146
|
return
|
147
|
147
|
fi
|
148
|
148
|
|
149
|
|
- dialog --title $"Delete the previous blog entry" \
|
150
|
|
- --backtitle $"Freedombone Mesh" \
|
151
|
|
- --defaultno \
|
152
|
|
- --yesno $"\nAre you sure that you wish to delete the previous blog entry?" 8 60
|
153
|
|
- sel=$?
|
154
|
|
- case $sel in
|
155
|
|
- 0) rm $LAST_BLOG_ENTRY
|
156
|
|
- if [ $CURRENT_INDEX -gt 0 ]; then
|
157
|
|
- CURRENT_INDEX=$PREVIOUS_INDEX
|
158
|
|
- echo "$CURRENT_INDEX" > $CURRENT_BLOG_INDEX
|
159
|
|
- else
|
160
|
|
- rm -f $CURRENT_BLOG_INDEX
|
161
|
|
- fi
|
162
|
|
- regenerate_blog
|
163
|
|
- ;;
|
164
|
|
- esac
|
|
149
|
+ if ! zenity --question --title=$'Delete the previous blog entry' --text=$"\nAre you sure that you wish to delete the previous blog entry?" --ok-label=No --cancel-label=Yes --width=300; then
|
|
150
|
+ rm $LAST_BLOG_ENTRY
|
|
151
|
+ if [ $CURRENT_INDEX -gt 0 ]; then
|
|
152
|
+ CURRENT_INDEX=$PREVIOUS_INDEX
|
|
153
|
+ echo "$CURRENT_INDEX" > $CURRENT_BLOG_INDEX
|
|
154
|
+ else
|
|
155
|
+ rm -f $CURRENT_BLOG_INDEX
|
|
156
|
+ fi
|
|
157
|
+ regenerate_blog
|
|
158
|
+ fi
|
165
|
159
|
}
|
166
|
160
|
|
167
|
161
|
function change_theme {
|