File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 178178 return this ;
179179 } ,
180180 open : function ( collection , line , file , displayLine ) {
181- var title = this . buildDialogTitle ( line , file , displayLine ) ;
181+ this . path = ( '' === CodeComments . path ) ? file : CodeComments . path ;
182182 this . line = line ;
183183 this . collection = collection ;
184+ var title = this . buildDialogTitle ( line , file , displayLine ) ;
184185 this . $el . dialog ( 'open' ) . dialog ( { title : title } ) ;
185186 } ,
186187 buildDialogTitle : function ( line , file , displayLine ) {
187188 displayLine = displayLine || line ;
188- this . path = ( '' === CodeComments . path ) ? file : CodeComments . path ;
189-
190189 var title = 'Add comment for ' ;
191190 if ( '' === CodeComments . path || typeof CodeComments . path === 'undefined' ) {
192191 title += ( displayLine ? 'line ' + displayLine + ' of ' + file + ' in ' : '' )
You can’t perform that action at this time.
0 commit comments