code: function pongOnTheFlySave( id, modalName, resourceURL ) {
    log( "PoNG-OnTheFly", "Save " + id + " " + modalName + " " + resourceURL );
    var viewCfg = getViewConfig( id );
    var postURL = resourceURL + '/' + viewCfg.type + '/';
    //TODO: check for pageID and structID etc
    //var cfg = moduleConfig[id];
    //
    log( "PoNG-OnTheFly", "POST to " + resourceURL + '/' + viewCfg.type );
    $.ajax({
      type: "POST",
      url: postURL,
      data: $( '#'+id+modalName+'DialogConfig' ).val(),
      dataType: 'json',
      contentType: 'application/json',
      success: function( data ){ location.reload() } 
    }).fail( function(data) { alert(  $.i18n( "Can't save config back") );  } );
  }
docs: On close: save config and reload page