@@ -26,11 +26,11 @@ dojo.declare("TreeView.widget.Colhead", null, {
2626
2727 //sort caption?
2828 if ( this . data . colheadcaption )
29- dojo . place ( mendix . dom . span ( { 'class' : 'gv_sort_caption' } , this . data . colheadcaption ) , this . domNode ) ;
29+ dojo . place ( mxui . dom . create ( "span" , { 'class' : 'gv_sort_caption' } , this . data . colheadcaption ) , this . domNode ) ;
3030
3131 //show sort arrow?
3232 if ( this . getSortAttr ( ) )
33- dojo . place ( mendix . dom . span ( { 'class' : 'gv_sort_arrow' } ) , this . domNode ) ;
33+ dojo . place ( mxui . dom . create ( "span" , { 'class' : 'gv_sort_arrow' } ) , this . domNode ) ;
3434
3535
3636 dojo . place ( this . domNode , this . grid . headerRow ) ;
@@ -132,29 +132,29 @@ dojo.declare("TreeView.widget.Record", null, {
132132 } ,
133133
134134 setup : function ( tablenode ) {
135- this . domNode = mendix . dom [ this . grid . showasdiv ? "div" : "tr" ] ( { 'class' : 'gv_row gv_row_' + tablenode . childElementCount } ) ;
135+ this . domNode = mxui . dom [ this . grid . showasdiv ? "div" : "tr" ] ( { 'class' : 'gv_row gv_row_' + tablenode . childElementCount } ) ;
136136
137137 if ( this . grid . showasdiv && this . grid . colheads . length > 0 && this . grid . colheads [ 0 ] . getWidth ( ) )
138138 dojo . style ( this . domNode , 'width' , this . grid . colheads [ 0 ] . getWidth ( ) ) ;
139139
140140 mxui . dom . data ( this . domNode , "data" , this ) ;
141141
142- this . checkbox = mendix . dom . input ( {
142+ this . checkbox = mxui . dom . create ( "input" , {
143143 'type' : 'checkbox' ,
144144 'class' : 'gv_multiselect_checkbox' ,
145145 'style' : this . grid . allowmultiselect === true ? '' : 'display:none'
146146 } ) ;
147147
148- dojo . place ( mendix . dom [ this . grid . showasdiv ? "div" : "td" ] ( {
148+ dojo . place ( mxui . dom [ this . grid . showasdiv ? "div" : "td" ] ( {
149149 'class' : 'gv_cell gv_cell_0 gv_cell_multiselect'
150150 } , this . checkbox ) , this . domNode ) ;
151151
152152 //create td's
153153 for ( var i = 0 ; i < this . grid . colheads . length ; i ++ ) {
154- var cell = mendix . dom [ this . grid . showasdiv ? "div" : "td" ] ( {
154+ var cell = mxui . dom [ this . grid . showasdiv ? "div" : "td" ] ( {
155155 'class' : 'gv_cell gv_cell_' + this . grid . colheads [ i ] . data . colheadname + ' gv_cell_' + i
156156 } ) ;
157- var colwrapper = mendix . dom . div ( { 'class' : 'gv_cell_wrapper' } ) ;
157+ var colwrapper = mxui . dom . create ( "div" , { 'class' : 'gv_cell_wrapper' } ) ;
158158
159159 dojo . place ( colwrapper , cell ) ;
160160 dojo . place ( cell , this . domNode ) ;
@@ -165,11 +165,11 @@ dojo.declare("TreeView.widget.Record", null, {
165165 if ( 1 * col . columnindex >= this . grid . colheads . length )
166166 this . configError ( "Column index out of bounds: " + col . columnindex ) ;
167167
168- var span = mxui . dom . span ( { 'class' : 'gv_column gv_column_' + i } ) ;
168+ var span = mxui . dom . create ( "span" , { 'class' : 'gv_column gv_column_' + i } ) ;
169169 this . _colNodes . push ( span ) ;
170170
171171 //wrapper node
172- var cw = mxui . dom . span ( { 'class' : 'gv_column_wrapper' } , span ) ;
172+ var cw = mxui . dom . create ( "span" , { 'class' : 'gv_column_wrapper' } , span ) ;
173173 dojo . place ( cw , this . domNode . childNodes [ 1 + 1 * col . columnindex ] . children [ 0 ] ) ;
174174
175175 col . setupNode ( span ) ;
@@ -646,36 +646,36 @@ mxui.widget.declare("TreeView.widget.GridView", {
646646 if ( this . count > this . pagesize || this . curpage > 0 ) {
647647 //show prev btn?
648648 if ( this . curpage > 0 )
649- dojo . place ( mendix . dom . a ( { 'class' : 'gv_btn_prev' } , "<" ) , this . pagingNode ) ;
649+ dojo . place ( mxui . dom . create ( "a" , { 'class' : 'gv_btn_prev' } , "<" ) , this . pagingNode ) ;
650650
651651 //page 1
652- dojo . place ( mendix . dom . a ( { 'class' : 'gv_btn_page ' + ( 0 === this . curpage ? 'gv_btn_page_active' : '' ) } , "1" ) , this . pagingNode ) ;
652+ dojo . place ( mxui . dom . create ( "a" , { 'class' : 'gv_btn_page ' + ( 0 === this . curpage ? 'gv_btn_page_active' : '' ) } , "1" ) , this . pagingNode ) ;
653653
654654 //paging skipper?
655655 if ( this . curpage > PAGERSIZE )
656- dojo . place ( mendix . dom . a ( { 'class' : 'gv_btn_paging_spacer' } , ".." ) , this . pagingNode ) ;
656+ dojo . place ( mxui . dom . create ( "a" , { 'class' : 'gv_btn_paging_spacer' } , ".." ) , this . pagingNode ) ;
657657
658658 for ( var i = Math . max ( this . curpage - PAGERSIZE + 1 , 1 ) ; i < Math . min ( this . curpage + PAGERSIZE , lastpage ) ; i ++ )
659- dojo . place ( mendix . dom . a ( { 'class' : 'gv_btn_page ' + ( i === this . curpage ? 'gv_btn_page_active' : '' ) } , "" + ( i + 1 ) ) , this . pagingNode ) ;
659+ dojo . place ( mxui . dom . create ( "a" , { 'class' : 'gv_btn_page ' + ( i === this . curpage ? 'gv_btn_page_active' : '' ) } , "" + ( i + 1 ) ) , this . pagingNode ) ;
660660
661661 //paging skipper?
662662 if ( this . curpage < lastpage - PAGERSIZE )
663- dojo . place ( mendix . dom . a ( { 'class' : 'gv_btn_paging_spacer' } , ".." ) , this . pagingNode ) ;
663+ dojo . place ( mxui . dom . create ( "a" , { 'class' : 'gv_btn_paging_spacer' } , ".." ) , this . pagingNode ) ;
664664
665665 //last page
666- dojo . place ( mendix . dom . a ( { 'class' : 'gv_btn_page ' + ( lastpage === this . curpage ? 'gv_btn_page_active' : '' ) } , "" + ( lastpage + 1 ) ) , this . pagingNode ) ;
666+ dojo . place ( mxui . dom . create ( "a" , { 'class' : 'gv_btn_page ' + ( lastpage === this . curpage ? 'gv_btn_page_active' : '' ) } , "" + ( lastpage + 1 ) ) , this . pagingNode ) ;
667667
668668 //show next btn?
669669 if ( this . curpage < lastpage )
670- dojo . place ( mendix . dom . a ( { 'class' : 'gv_btn_next' } , ">" ) , this . pagingNode ) ;
670+ dojo . place ( mxui . dom . create ( "a" , { 'class' : 'gv_btn_next' } , ">" ) , this . pagingNode ) ;
671671
672672 }
673673
674674 if ( this . count === 0 ) {
675- dojo . place ( mendix . dom . span ( { 'class' : 'gv_empty_message' } , this . emptymessage ) , this . pagingNode ) ;
675+ dojo . place ( mxui . dom . create ( "span" , { 'class' : 'gv_empty_message' } , this . emptymessage ) , this . pagingNode ) ;
676676 }
677677 else if ( this . showtotals )
678- dojo . place ( mendix . dom . span ( { 'class' : 'gv_paging_totals' } ,
678+ dojo . place ( mxui . dom . create ( "span" , { 'class' : 'gv_paging_totals' } ,
679679 ( this . itemcountmessage || ( this . _multiSelection . length > 1 ? "{1} of {0} item(s) selected." : "{0} item(s) in total" ) ) . replace ( "{0}" , this . count ) . replace ( "{1}" , this . _multiSelection . length )
680680 ) , this . pagingNode ) ;
681681 } ,
@@ -897,7 +897,7 @@ mxui.widget.declare("TreeView.widget.GridView", {
897897 node = node . parentNode ;
898898
899899 //assuming dataset: { owner: record, guid : guid, dataset: this.columneditdataset, colindex: this.colindex }
900- var data = mendix . dom . data ( node , "data" ) ;
900+ var data = mxui . dom . data ( node , "data" ) ;
901901 var record = data . owner ;
902902 var guid = data . guid ;
903903 var dataset = this . dataset [ data . dataset ] ;
@@ -1170,23 +1170,23 @@ mxui.widget.declare("TreeView.widget.GridView", {
11701170 if ( this . showasdiv )
11711171 dojo . addClass ( this . domNode , 'gv_floating_grid' ) ;
11721172
1173- this . headerNode = mendix . dom . div ( { 'class' : 'gv_header' } ) ;
1173+ this . headerNode = mxui . dom . create ( "div" , { 'class' : 'gv_header' } ) ;
11741174
1175- this . gridNode = mendix . dom [ this . showasdiv ? "div" : "table" ] ( { 'class' : 'gv_table' } ) ;
1175+ this . gridNode = mxui . dom [ this . showasdiv ? "div" : "table" ] ( { 'class' : 'gv_table' } ) ;
11761176
1177- this . headerRow = mendix . dom [ this . showasdiv ? "div" : "tr" ] ( { 'class' :'gv_headrow' } , mendix . dom [ this . showasdiv ? "div" : "th" ] ( { 'class' : 'gv_multiselect_column_head gv_th gv_th_0' } ) ) ;
1178- var header = mendix . dom [ this . showasdiv ? "div" : "thead" ] ( { 'class' :'gv_gridhead' } , this . headerRow ) ;
1177+ this . headerRow = mxui . dom [ this . showasdiv ? "div" : "tr" ] ( { 'class' :'gv_headrow' } , mxui . dom [ this . showasdiv ? "div" : "th" ] ( { 'class' : 'gv_multiselect_column_head gv_th gv_th_0' } ) ) ;
1178+ var header = mxui . dom [ this . showasdiv ? "div" : "thead" ] ( { 'class' :'gv_gridhead' } , this . headerRow ) ;
11791179
11801180 dojo . addClass ( this . domNode , this . colheaderenabled ? 'gv_columnheaders' : 'gv_nocolumnheaders' ) ;
11811181 dojo . addClass ( this . domNode , this . allowmultiselect ? 'gv_multiselect_enabled' : 'gv_multiselect_disabled' ) ;
11821182
11831183 dojo . place ( header , this . gridNode , 'first' ) ;
11841184
1185- this . footerNode = mendix . dom . div ( { 'class' : 'gv_footer' } ) ;
1186- this . pagingNode = mendix . dom . div ( { 'class' : 'gv_paging' } ) ;
1185+ this . footerNode = mxui . dom . create ( "div" , { 'class' : 'gv_footer' } ) ;
1186+ this . pagingNode = mxui . dom . create ( "div" , { 'class' : 'gv_paging' } ) ;
11871187 dojo . place ( this . pagingNode , this . footerNode ) ;
11881188
1189- this . searchbarNode = mendix . dom . div ( { 'class' : 'gv_searchnode' } ) ;
1189+ this . searchbarNode = mxui . dom . create ( "div" , { 'class' : 'gv_searchnode' } ) ;
11901190 dojo . place ( this . searchbarNode , this . headerNode ) ;
11911191
11921192 dojo . place ( this . headerNode , this . domNode ) ;
0 commit comments