User:Technical 13/SandBox/Gadget-BugStatusUpdate.js/sandbox.js: Difference between revisions

Content deleted Content added
Technical 13 (talk | contribs)
Let's put the creation of the function up top, and then call it at the bottom.
Technical 13 (talk | contribs)
wth...
 
(3 intermediate revisions by the same user not shown)
Line 64:
}
}
error: function ( foo, data, error ) {
}/* End of success:
error: function(){
/* Using this string with 49741 being a ticket I can't see:
https://bugzilla.wikimedia.org/jsonrpc.cgi?method=Bug.get&id=158&params=[{%20%22ids%22:%20[35810,35909,300,48745,49741,54598],%22include_fields%22:[%22last_change_time%22,%22status%22,%20%22id%22,%20%22summary%22]}]
returns:
{"error":{"message":"You are not authorized to access bug #49741. To see this bug, you must first log in to an account with the appropriate permissions.","code":102},"id":"158","result":null}
*//*
console.error( 'Foo: %o\nRaw data: %o\nError: %o', foo, data, error );
console.error( 'id array: %o', ids );
}*/
}
});
}