Commit a501f441 authored by campaign's avatar campaign

by zhanyi

parent 165f62ee
......@@ -15,7 +15,8 @@ KM.registerToolbarUI( 'node', function ( name ) {
items: me.getOptions( name ) || [],
itemStyles: [],
value: [],
autowidthitem: []
autowidthitem: [],
enabledRecord:false
},
$combox = null;
......@@ -28,7 +29,7 @@ KM.registerToolbarUI( 'node', function ( name ) {
comboboxWidget = $combox.kmui();
comboboxWidget.on( 'comboboxselect', function ( evt, res ) {
me.execCommand( res.value );
me.execCommand( res.value,new MinderNode( me.getLang().topic ) );
}).on( "beforeshow", function () {
if ( $combox.parent().length === 0 ) {
$combox.appendTo( me.$container.find( '.kmui-dialog-container' ) );
......
......@@ -51,7 +51,8 @@
//自动记录
autoRecord: true,
//最多记录条数
recordCount: 5
recordCount: 5,
enabledRecord:true
},
init: function( options ){
......@@ -133,6 +134,9 @@
*/
select: function( index ){
if(!this.data('options').enabledRecord){
return this;
}
var options = this.data( 'options' ),
itemCount = options.itemCount,
items = options.autowidthitem;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment