mobileclient: camelCase
This commit is contained in:
parent
65f511a6d9
commit
a87f5632bc
4 changed files with 6 additions and 6 deletions
|
@ -39,7 +39,7 @@
|
|||
if (window.mobileclient) {
|
||||
var $body = $('body');
|
||||
if ($body.is('[data-user-data]')) {
|
||||
mobileclient.set_user_data($body.attr('data-user-data'));
|
||||
mobileclient.setUserData($body.attr('data-user-data'));
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -68,7 +68,7 @@ editor = {
|
|||
var data = JSON.parse(elem.attr('data-user-data'));
|
||||
data.changes_count_display = elem.attr('data-count-display');
|
||||
data.direct_editing = elem.is('[data-direct-editing]');
|
||||
mobileclient.set_user_data(JSON.stringify(data));
|
||||
mobileclient.setUserData(JSON.stringify(data));
|
||||
},
|
||||
_onbeforeunload: function(e) {
|
||||
if ($('#sidebar').find('[data-onbeforeunload]').length) {
|
||||
|
|
|
@ -54,7 +54,7 @@ c3nav = {
|
|||
$body.addClass('mobileclient');
|
||||
c3nav._set_user_location(null);
|
||||
if ($body.is('[data-user-data]')) {
|
||||
mobileclient.set_user_data($body.attr('data-user-data'));
|
||||
mobileclient.setUserData($body.attr('data-user-data'));
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -1277,7 +1277,7 @@ c3nav = {
|
|||
var $user = $('header #user');
|
||||
$user.find('span').text(data.title);
|
||||
$user.find('small').text(data.subtitle || '');
|
||||
if (window.mobileclient) mobileclient.set_user_data(JSON.stringify(data));
|
||||
if (window.mobileclient) mobileclient.setUserData(JSON.stringify(data));
|
||||
},
|
||||
|
||||
_last_wifi_scant: 0,
|
||||
|
|
|
@ -25,8 +25,8 @@ mobileclient = {
|
|||
createShortcut: function(url, title) {
|
||||
console.log('mobileclient: shortcut url: '+url+' title: '+title);
|
||||
},
|
||||
set_user_data: function(user_data) {
|
||||
console.log('set_user_data');
|
||||
setUserData: function(user_data) {
|
||||
console.log('setUserData');
|
||||
console.log(JSON.parse(user_data));
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue