docs: function(opts) {
  		var self     = this,
  			complete = false,
  			options = {
  				cssClass  : 'elfinder-dialog-confirm',
  				modal     : true,
  				resizable : false,
  				title     : this.i18n(opts.title || 'confirmReq'),
  				buttons   : {},
  				close     : function() { 
  					!complete && opts.cancel.callback();
  					$(this).elfinderdialog('destroy');
  				}
  			},
  			apply = this.i18n('apllyAll'),
  			label, checkbox, btnNum;
  
  		if (opts.cssClass) {
  			options.cssClass += ' ' + opts.cssClass;
  		}
  		options.buttons[this.i18n(opts.accept.label)] = function() {
  			opts.accept.callback(!!(checkbox && checkbox.prop('checked')));
  			complete = true;
  			$(this).elfinderdialog('close');
  		};
  		options.buttons[this.i18n(opts.accept.label)]._cssClass = 'elfinder-confirm-accept';
  		
  		if (opts.reject) {
  			options.buttons[this.i18n(opts.reject.label)] = function() {
  				opts.reject.callback(!!(checkbox && checkbox.prop('checked')));
  				complete = true;
  				$(this).elfinderdialog('close');
  			};
  			options.buttons[this.i18n(opts.reject.label)]._cssClass = 'elfinder-confirm-reject';
  		}
  		
  		if (opts.buttons && opts.buttons.length > 0) {
  			btnNum = 1;
  			$.each(opts.buttons, function(i, v){
  				options.buttons[self.i18n(v.label)] = function() {
  					v.callback(!!(checkbox && checkbox.prop('checked')));
  					complete = true;
  					$(this).elfinderdialog('close');
  				};
  				options.buttons[self.i18n(v.label)]._cssClass = 'elfinder-confirm-extbtn' + (btnNum++);
  				if (v.cssClass) {
  					options.buttons[self.i18n(v.label)]._cssClass += ' ' + v.cssClass;
  				}
  			});
  		}
  		
  		options.buttons[this.i18n(opts.cancel.label)] = function() {
  			$(this).elfinderdialog('close');
  		};
  		options.buttons[this.i18n(opts.cancel.label)]._cssClass = 'elfinder-confirm-cancel';
  		
  		if (opts.all) {
  			options.create = function() {
  				var base = $('<div class="elfinder-dialog-confirm-applyall"/>');
  				checkbox = $('<input type="checkbox" />');
  				$(this).next().find('.ui-dialog-buttonset')
  					.prepend(base.append($('<label>'+apply+'</label>').prepend(checkbox)));
  			};
  		}
  		
  		if (opts.optionsCallback && $.isFunction(opts.optionsCallback)) {
  			opts.optionsCallback(options);
  		}
  		
  		return this.dialog('<span class="elfinder-dialog-icon elfinder-dialog-icon-confirm"/>' + this.i18n(opts.text), options);
  	}