showSequenceFields="true"
fmClass="sitem"
editPaneOnSubmit="update_sitem_safely"
- onPostSubmit="function(){window.xulG && xulG.reload_opac()}"
+ onPostSubmit="attempt_reload_opac"
showPaginator="true"
editOnEnter="true">
<thead>
</div>
</div>
</div>
+<script type="text/javascript" src="[% ctx.media_prefix %]/js/ui/default/serial/common.js"></script>
<script type="text/javascript" src="[% ctx.media_prefix %]/js/ui/default/serial/list_item.js"></script>
[% END %]
fieldOrder="['id','distribution','routing_label']"
suppressFields="['distribution']"
showSequenceFields="true"
- onPostSubmit="function(){window.xulG && xulG.reload_opac()}"
+ onPostSubmit="attempt_reload_opac"
fmClass="sstr"
showPaginator="true"
editOnEnter="true">
</div>
<div dojoType="openils.widget.ProgressDialog" jsId="progress_dialog"></div>
</div>
+<script type="text/javascript" src="[% ctx.media_prefix %]/js/ui/default/serial/common.js"> </script>
<script type="text/javascript" src="[% ctx.media_prefix %]/js/ui/default/serial/list_stream.js"> </script>
[% END %]
[% WRAPPER base.tt2 %]
[% ctx.page_title = "Subscriptions" %]
-<script
- type="text/javascript"
+<script type="text/javascript"
+ src="[% ctx.media_prefix %]/js/ui/default/serial/common.js">
+</script>
+<script type="text/javascript"
src="[% ctx.media_prefix %]/js/ui/default/serial/list_subscription.js">
</script>
<script type="text/javascript">
suppressFields="['record_entry']"
fmClass="ssub"
showPaginator="true"
- onPostSubmit="function(){window.xulG && xulG.reload_opac()}"
+ onPostSubmit="attempt_reload_opac"
showSequenceFields="true"
editOnEnter="true">
<thead>
var cap_editor;
var cap_importer;
</script>
+<script src="[% ctx.media_prefix %]/js/ui/default/serial/common.js">
+</script>
<script src="[% ctx.media_prefix %]/js/ui/default/serial/subscription.js">
</script>
<script src="[% ctx.media_prefix %]/js/ui/default/serial/subscription/caption_and_pattern.js">
suppressFields="['record_entry','subscription','receive_call_number','bind_call_number','bind_unit_template']"
suppressEditFields="['record_entry','receive_call_number','bind_call_number','bind_unit_template']"
requiredFields="['receive_unit_template']"
- onPostSubmit="function(){window.xulG && xulG.reload_opac()}"
+ onPostSubmit="attempt_reload_opac"
fmClass="sdist"
query="{id: '*'}"
editOnEnter="true"
suppressFields="['subscription','holding_link_id','create_date','edit_date','creator','editor']"
suppressEditFields="['id','holding_link_id','create_date','edit_date']"
defaultCellWidth="'auto'"
- onPostSubmit="function(){window.xulG && xulG.reload_opac()}"
+ onPostSubmit="attempt_reload_opac"
fmClass="siss"
query="{id: '*'}"
editOnEnter="true"
} else {
(new openils.PermaCrud())[this.mode](this.fmObject, opts);
}
-
- /* If we happen to have been spawned by something that
- * puts an reload_opac() function into our context, call it. */
- try {
- xulG.reload_opac();
- } catch(E) {
- (dump ? dump : console.log)(E);
- }
}
}
);
--- /dev/null
+function attempt_reload_opac() {
+ try {
+ xulG.reload_opac();
+ } catch (E) {
+ (dump || console.log)(E);
+ }
+}