A couple PDA tweaks

This commit is contained in:
Tastyfish
2016-02-24 01:40:13 -05:00
parent 0266fe9109
commit d48d975bee
3 changed files with 4 additions and 8 deletions
+2 -1
View File
@@ -435,7 +435,8 @@ var/global/list/obj/item/device/pda/PDAs = list()
qdel(A)
programs.Cut()
if(cartridge)
cartridge.forceMove(T)
qdel(cartridge)
cartridge = null
return ..()
// Pass along the pulse to atoms in contents, largely added so pAIs are vulnerable to EMP
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -6
View File
@@ -31,12 +31,7 @@ NanoStatePDAClass.prototype.onUpdate = function(data) {
$("#uiApp").html(NanoTemplate.parse('app', data));
state.current_template = template;
if(data['config']['status'] == 2) {
$('#uiApp .linkActive').addClass('linkPending');
$('#uiApp .linkActive').oneTime(400, 'linkPending', function () {
$('#uiApp .linkActive').removeClass('linkPending inactive');
});
}
state.onAfterUpdate(data);
} catch(error) {
reportError('ERROR: An error occurred while loading the PDA App UI: ' + error.message);
return;