12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- "use strict";
- define( [ "module", "vwf/view", "vwf/utility", "jquery" ], function( module, view, utility, jQuery ) {
- return view.load( module, {
-
- initialize: function() {
- window.vwf_view = this;
- },
-
- createdNode: function( nodeID, childID, childExtendsID, childImplementsIDs,
- childSource, childType, childURI, childName, callback /* ( ready ) */ ) {
- var self = this;
-
- if ( childID == this.kernel.application() &&
- ( window.location.protocol == "http:" || window.location.protocol == "https:" ) ) {
-
- callback( false );
-
- var container = jQuery( "body" ).append( "<div />" ).children( ":last" );
- container.load( "admin/chrome", function( responseText, textStatus ) {
-
-
- if ( self.createdNode !== Object.getPrototypeOf( self ).createdNode ) {
- self.createdNode( nodeID, childID, childExtendsID, childImplementsIDs,
- childSource, childType, childURI, childName );
- }
-
-
-
- if ( ! ( textStatus == "success" || textStatus == "notmodified" ) || responseText == "" ) {
- container.remove();
- }
-
- callback( true );
- } );
- }
- },
- }, function( viewFunctionName ) {
-
- } );
- } );
|