function tab_supports_doc(ident) {
      var nodetypes = viewer_nodetype[ident];
      var mimetypes = viewer_mimetype[ident];
      var mime_type = props['mime_type'];

      /* FALSE if node types are specified and do not match */
      if ((typeof nodetypes !== 'undefined') && nodetypes.length > 0) {
        if ($.inArray(ctype, nodetypes) < 0) return(false);
      }
      /* FALSE if mime-types are specified and do not match */
      if ((typeof mimetypes !== 'undefined') && mimetypes.length > 0) {
        if ( (typeof mime_type === 'undefined') || mime_type.length < 1 ||
             ($.inArray(mime_type, mimetypes) < 0) ) {
          return(false);
        }
      }
      return(true);
    }
/* helper routine to determine if tab at CSS ident supports new document */
helper routine to determine if tab at CSS ident supports new document
helper routine to determine if tab at CSS ident supports new document
function tab_supports_doc(ident) {
      var nodetypes = viewer_nodetype[ident];
      var mimetypes = viewer_mimetype[ident];
      var mime_type = props['mime_type'];
      if ((typeof nodetypes !== 'undefined') && nodetypes.length > 0) {
        if ($.inArray(ctype, nodetypes) < 0) return(false);
      }
      if ((typeof mimetypes !== 'undefined') && mimetypes.length > 0) {
        if ( (typeof mime_type === 'undefined') || mime_type.length < 1 ||
             ($.inArray(mime_type, mimetypes) < 0) ) {
          return(false);
        }
      }
      return(true);
    }
function tab_supports_doc ( ident ) { var nodetypes = viewer_nodetype [ ident ] ; var mimetypes = viewer_mimetype [ ident ] ; var mime_type = props [ 'mime_type' ] ; if ( ( typeof nodetypes !== 'undefined' ) && nodetypes . length > 0 ) { if ( $ . inArray ( ctype , nodetypes ) < 0 ) return ( false ) ; } if ( ( typeof mimetypes !== 'undefined' ) && mimetypes . length > 0 ) { if ( ( typeof mime_type === 'undefined' ) || mime_type . length < 1 || ( $ . inArray ( mime_type , mimetypes ) < 0 ) ) { return ( false ) ; } } return ( true ) ; }
helper routine to determine if tab at CSS ident supports new document
helper routine to determine if tab at CSS ident supports new document
/* FALSE if node types are specified and do not match */ /* FALSE if mime-types are specified and do not match */