Changeset 32854 for main/trunk/greenstone3/web/interfaces/default
- Timestamp:
- 2019-03-04T22:02:40+13:00 (5 years ago)
- Location:
- main/trunk/greenstone3/web/interfaces/default/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/js/documentedit_scripts.js
r32853 r32854 380 380 // and http://jsfiddle.net/XZAWS/ 381 381 // jquery bind() is deprecated: https://stackoverflow.com/questions/33654716/is-jquery-bind-deprecated 382 console.log("**** away to set up beforeunload handler!");382 383 383 $(window).on("beforeunload", function(event) { 384 384 … … 394 394 var changes = changesToUpdate(); 395 395 396 console.log("#### CHANGES before page reload: ", changes);396 //console.log("#### CHANGES before page reload: ", changes); 397 397 398 398 if(changes.length > 0) { -
main/trunk/greenstone3/web/interfaces/default/js/documentedit_scripts_util.js
r32853 r32854 955 955 // with how many editable cells it has/how many rows it has. 956 956 editableElementsInitialisationProgress += $tr_array.length; 957 console.log("**** addFunctionalityToTable::editableElementsInitialisationProgress = " + editableElementsInitialisationProgress);958 957 959 958 $tr_array.each(function() … … 1458 1457 1459 1458 $( document ).ready(function() { 1460 console.log( "**** Dom ready!" );1461 1462 // monitor whetherckeditor instances are all ready1459 // DOM Ready. 1460 1461 // Now can add handlers to monitor when ckeditor instances are all ready 1463 1462 // See https://stackoverflow.com/questions/18461206/how-to-retrieve-the-ckeditor-status-ready 1464 1463 // (and https://stackoverflow.com/questions/3447803/how-to-determine-if-ckeditor-is-loaded ) 1465 1464 if(gs.cgiParams.docEdit == "1") { // CKEDITOR only exists in docEdit mode 1465 1466 1466 //CKEDITOR.on( 'loaded', function( evt ) { // not triggered 1467 1467 //console.log("*** CKEDITOR loaded"); 1468 1468 1469 CKEDITOR.on( 'instanceReady', function( evt ) { 1469 console.log("*** CKEDITOR instanceReady", evt);1470 //console.log("*** CKEDITOR instanceReady", evt); 1470 1471 addCKEEditableState(evt,editableInitStates); 1471 1472 // finished initialising one more editable element,
Note:
See TracChangeset
for help on using the changeset viewer.