564
edits
Line 102: | Line 102: | ||
} | } | ||
} | } | ||
// lets alert the user - tell them how many bookmarks we have with 'foo': | // lets alert the user - tell them how many bookmarks we have with 'foo': | ||
function callback(results) { | function callback(results) { | ||
alert("You have " + results.count + " bookmarks where the title contains 'foo'! Very Nice!"); | alert("You have " + results.count + " bookmarks where the title contains 'foo'! Very Nice!"); | ||
} | } | ||
jetpack.places.fetch({where: 'bookmarks', phrase: 'foo', tags: ['foo']}, callback); | jetpack.places.fetch({where: 'bookmarks', phrase: 'foo', tags: ['foo']}, callback); | ||
} | } | ||
edits