}
- if (options.suppress_checkin_popups
+ if (options.suppress_popups
&& evt.filter(function(e){return service.checkin_suppress_overrides.indexOf(e.textcode) == -1;}).length == 0) {
// Events are suppressed. Re-run the checkin w/ override.
options.override = true;
var copy = evt && evt.payload ? evt.payload.copy : null;
- if (copy && !options.suppress_checkin_popups
+ if (copy && !options.suppress_popups
&& copy.location().checkin_alert() == 't') {
return egAlertDialog.open(
case 11: /* CATALOGING */
egCore.audio.play('info.checkin.cataloging');
evt[0].route_to = egCore.strings.ROUTE_TO_CATALOGING;
- if (options.no_precat_alert)
+ if (options.no_precat_alert || options.suppress_popups)
return $q.when(final_resp);
return egAlertDialog.open(
egCore.strings.PRECAT_CHECKIN_MSG, params)
case 'ASSET_COPY_NOT_FOUND':
egCore.audio.play('error.checkin.not_found');
+ if (options.suppress_popups) return $q.when(final_resp);
return egAlertDialog.open(
egCore.strings.UNCAT_ALERT_DIALOG, params)
.result.then(function() {return final_resp});
case 'ITEM_NOT_CATALOGED':
egCore.audio.play('error.checkin.not_cataloged');
evt[0].route_to = egCore.strings.ROUTE_TO_CATALOGING;
- if (options.no_precat_alert)
+ if (options.no_precat_alert || options.suppress_popups)
return $q.when(final_resp);
return egAlertDialog.open(
egCore.strings.PRECAT_CHECKIN_MSG, params)
}
service.route_dialog = function(tmpl, evt, params, options) {
+ if (options.suppress_popups) return;
if (angular.isArray(evt)) evt = evt[0];
return service.collect_route_data(tmpl, evt, params, options)