picinfo[f] = {};
}
});
-localStorage.picsorter_picinfo = JSON.stringify(picinfo);
+function save_picinfo() {
+ localStorage.picsorter_picinfo = JSON.stringify(picinfo);
+}
+save_picinfo();
var exposure = 20;
var zoom = "sm/";
exposure = picinfo[files[input_index]].exposure;
} else {
picinfo[files[input_index]].exposure = exposure;
- localStorage.picsorter_picinfo = JSON.stringify(picinfo);
+ save_picinfo();
}
$("#pic").attr("src", zoom + exposure + "/" + files[input_index]);
}
function mark_deleted() {
picinfo[files[input_index]].deleted = 1;
- localStorage.picsorter_picinfo = JSON.stringify(picinfo);
+ save_picinfo();
say("Deleted");
}
function mark_not_deleted() {
delete picinfo[files[input_index]].deleted;
- localStorage.picsorter_picinfo = JSON.stringify(picinfo);
+ save_picinfo();
say("Undeleted");
}
function change_exposure(amount) {
exposure += amount;
picinfo[files[input_index]].exposure = exposure;
+ save_picinfo();
setpic();
var display_exposure = (exposure / 4) - 3.5;
say((display_exposure >= 0 ? "+" : "") + display_exposure);