Klipfolio Inc.
Copyright © 2002-2009 Klipfolio Inc.
info@klipfolio.com
http://www.klipfolio.com
Scratch Pad
scratch_pad_898171
1.1
2008.12.17
Write a quick note with this Klip. Enter text in the text field and press enter to store it, right-click to delete it.
scratch pad note
http://www.klipfolio.com
http://www.serence.com/serence_klips/pics/scratchpad_icon.png
http://www.serence.com/serence_klips/pics/scratchpad_banner.png
http://www.serence.com/serence_klips/scratch_pad.klip
extended
never
utf-8
--
true
false
note
5899
Enter text to create a note.
" + note + "";
Klip.requestRefresh();
Klip.searchtext = "";
}
function onRefresh()
{
Items.actions = ["Edit this item", editThisItem];
Engines.KlipFood.process(gFood);
savePrefs();
return true;
}
function editThisItem(item)
{
Klip.searchtext = item.getData("note");
Items.remove(item);
Items.Deleted.clear();
}
function myCreate(item)
{
item.canvisit = false;
item.canpurge = false;
return true;
}
function myUpdate(item, properties)
{
return(myCreate(properties));
}
function savePrefs()
{
var food = "";
var i = 0;
for(i = 0; i < Items.length; i++)
{
food += "- " + Items[i].getData("note") + "
";
}
Prefs.setPref("food", food);
}
]]>