- self.updateDB(function() {
- if (!self.db)
- self.db = window.openDatabase("wolnelektury", "1.0", "WL Catalogue", 1000000);
- if (self.db) {
- /*var regexp = {
- onFunctionCall: function(val) {
- var re = new RegExp(val.getString(0));
- if (val.getString(1).match(re))
- return 1;
- else
- return 0;
- }
- };
- self.db.createFunction("REGEXP", 2, regexp);*/
-
- success && success();
- } else {
- error && error('Nie mogę otworzyć bazy danych: ' + err);
- }
-
- }, function(err) {