mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:04:53 +01:00
added method to access data: egw().dataGetUiddata(_uid)
This commit is contained in:
parent
3fcc703375
commit
139c12821a
@ -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) {
|
||||
};
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user