added method to access data: egw().dataGetUiddata(_uid)

This commit is contained in:
Ralf Becker 2013-02-27 12:41:19 +00:00
parent 3fcc703375
commit 139c12821a

View File

@ -394,6 +394,16 @@ egw.extend("data_storage", egw.MODULE_GLOBAL, function (_app, _wnd) {
return typeof localStorage[_uid] !== "undefined";
},
/**
* Returns data of a given uid.
*
* @param uid is the uid for which should be checked whether it has some
* data.
*/
dataGetUIDdata: function (_uid) {
return typeof localStorage[_uid];
},
/**
* Returns all uids that have the given prefix
* TODO: Improve this
@ -488,7 +498,7 @@ egw.extend("data_storage", egw.MODULE_GLOBAL, function (_app, _wnd) {
var nextmatchId = registeredCallbacks[_uid][0].widgetId;
var uid = _uid.split("::");
var context = {
"prefix":uid[0],
"prefix":uid[0]
};
uid = uid[uid.length - 1];
@ -501,5 +511,3 @@ egw.extend("data_storage", egw.MODULE_GLOBAL, function (_app, _wnd) {
};
});