forked from 0x2620/pandora
store on-load script on server (ui.onload), fixes #1850
This commit is contained in:
parent
19a887ebec
commit
614e7f0d09
7 changed files with 20 additions and 13 deletions
|
|
@ -1906,6 +1906,16 @@ pandora.isVideoView = function(view, item) {
|
|||
).indexOf(view) > -1;
|
||||
};
|
||||
|
||||
pandora.loadUserScript = function() {
|
||||
if (pandora.user.ui.onload) {
|
||||
try {
|
||||
eval(pandora.user.ui.onload);
|
||||
} catch(e) {
|
||||
Ox.print('user onload script error', e);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
pandora.logEvent = function(data, event, element) {
|
||||
var element = this,
|
||||
handlers = self.eventHandlers ? self.eventHandlers[event] : [];
|
||||
|
|
@ -1959,6 +1969,7 @@ pandora.signin = function(data) {
|
|||
pandora.URL.update();
|
||||
Ox.Theme(pandora.user.ui.theme);
|
||||
pandora.$ui.appPanel.reload();
|
||||
pandora.loadUserScript();
|
||||
};
|
||||
|
||||
pandora.signout = function(data) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue