@cp build/chrome/content/main/bindings.xml build/server/main/bindings.xml
@cp build/chrome/content/OpenILS/data.js build/server/OpenILS/data.js
@cp build/chrome/content/OpenILS/global_util.js build/server/OpenILS/global_util.js
+ @cp build/chrome/content/OpenILS/event_util.js build/server/OpenILS/event_util.js
@if [ -d branding ]; then cp -fR branding/* build/; fi
@external/prune_dirs.sh build/
--- /dev/null
+function EventListenerList() {
+ this._listeners = [];
+ return this;
+}
+
+EventListenerList.prototype = {
+ 'add' : function(node, type, listener, useCapture) {
+ try {
+ node.addEventListener(type,listener,useCapture);
+ this._listeners.push({
+ 'node' : node,
+ 'type' : type,
+ 'listener' : listener,
+ 'useCapture' : useCapture
+ });
+ } catch(E) {
+ alert(location.href + ' Error adding event listener ' + type + ': ' + E);
+ }
+ },
+
+ 'removeAll' : function() {
+ try {
+ if (typeof this._listeners != 'undefined') {
+ for (var i = 0; i < this._listeners.length; i++) {
+ this._listeners[i].node.removeEventListener(
+ this._listeners[i].type,
+ this._listeners[i].listener,
+ this._listeners[i].useCapture
+ );
+ }
+ }
+ } catch(E) {
+ alert(location.href + ' Error in unloadEventListeners(): ' + E);
+ }
+ }
+}
+
xulG = window.arguments[0];
}
- function EventListenerList() {
- this._listeners = [];
- return this;
- }
-
- EventListenerList.prototype = {
- 'add' : function(node, type, listener, useCapture) {
- try {
- node.addEventListener(type,listener,useCapture);
- this._listeners.push({
- 'node' : node,
- 'type' : type,
- 'listener' : listener,
- 'useCapture' : useCapture
- });
- } catch(E) {
- alert(location.href + ' Error adding event listener ' + type + ': ' + E);
- }
- },
-
- 'removeAll' : function() {
- try {
- if (typeof this._listeners != 'undefined') {
- for (var i = 0; i < this._listeners.length; i++) {
- this._listeners[i].node.removeEventListener(
- this._listeners[i].type,
- this._listeners[i].listener,
- this._listeners[i].useCapture
- );
- }
- }
- } catch(E) {
- alert(location.href + ' Error in unloadEventListeners(): ' + E);
- }
- }
- }
-
function $(id) { return document.getElementById(id); }
function oils_unsaved_data_V() {
<script type='text/javascript' src='util/en-US/OrgTree.js' />
<script type="text/javascript" src="util/org_utils.js" />
<script type="text/javascript" src="global_util.js" />
+ <script type="text/javascript" src="event_util.js" />
<messagecatalog id="offlineStrings" src='chrome://open_ils_staff_client/locale/offline.properties'/>
<messagecatalog id="authStrings" src='chrome://open_ils_staff_client/locale/auth.properties'/>
<hbox id="debug_box" hidden="true" flex="1" style="border: red thin dashed">
<script type="text/javascript" src="util/md5.js" />
<script type="text/javascript" src="util/JSON_v1.js" />
<script type="text/javascript" src="global_util.js" />
+ <script type="text/javascript" src="event_util.js" />
<hbox id="debug_box" hidden="true" flex="1" style="border: red thin dashed">
<label value="Debug:" />
<textbox id="debug_tb" flex="1"/>
<script type="text/javascript" src="../OpenILS/util/OrgTree.js" />
-->
<script type="text/javascript" src="../OpenILS/util/org_utils.js" />
+ <script type="text/javascript" src="../OpenILS/event_util.js" />
</scripts>
<script>dump('Loaded main/main.xul\n');</script>
<script type="text/javascript" src="/xul/server/main/JSAN.js" />
<script type="text/javascript" src="/xul/server/main/constants.js" />
<script type="text/javascript" src="/xul/server/OpenILS/global_util.js" />
+<script type="text/javascript" src="/xul/server/OpenILS/event_util.js" />
<script type="text/javascript" src="/xul/server/OpenILS/data.js" />
<script type="text/javascript" src="/xul/server/util/network.js" />
<script type="text/javascript" src="/xul/server/util/error.js" />
<script type='text/javascript' src='/opac/common/js/<!--#echo var="locale"-->/OrgTree.js' />
<script type="text/javascript" src="/opac/common/js/org_utils.js" />
<script type="text/javascript" src="global_util.js" />
+ <script type="text/javascript" src="event_util.js" />
<menupopup id="clipboard">
<menuitem label="&common.textbox.cut;" oncommand="util.clipboard.cut()" />
<menuitem label="&common.textbox.copy;" oncommand="util.clipboard.copy()" />
<script type="text/javascript" src="/opac/common/js/org_utils.js"></script>
<script type="text/javascript" src="/xul/server/OpenILS/global_util.js"></script>
+ <script type="text/javascript" src="/xul/server/OpenILS/event_util.js"></script>
<script type="text/javascript" src="/xul/server/main/constants.js"></script>
<script type="text/javascript" src="/xul/server/main/JSAN.js"></script>
<script type="text/javascript" src="printer_settings.js"></script>
<script type="text/javascript" src="/xul/server/main/JSAN.js"></script>
<script type="text/javascript" src="/xul/server/main/constants.js" />
<script type="text/javascript" src="/xul/server/OpenILS/global_util.js" />
+ <script type="text/javascript" src="/xul/server/OpenILS/event_util.js" />
<script type="text/javascript" src="/opac/common/js/utils.js" />
<script type="text/javascript" src="/opac/common/js/CGI.js" />
</script>
<script type="text/javascript" src="OpenILS/global_util.js">
</script>
+ <script type="text/javascript" src="OpenILS/event_util.js">
+</script>
<script type="text/javascript" src="main/JSAN.js">
</script>
<script type="text/javascript">