@@ -169,12 +169,12 @@ function demo() {
169
169
if ( order == 1 ) {
170
170
names . push ( "Sparse" ) ;
171
171
} else if ( order == 2 ) {
172
- names . push ( "DCSR" ) ;
173
- names . push ( "CSR" ) ;
174
172
names . push ( "COO" ) ;
173
+ names . push ( "CSR" ) ;
174
+ names . push ( "DCSR" ) ;
175
175
} else if ( order >= 3 ) {
176
- names . push ( "CSF" ) ;
177
176
names . push ( "COO" ) ;
177
+ names . push ( "CSF" ) ;
178
178
}
179
179
return names ;
180
180
} ,
@@ -233,9 +233,9 @@ function demo() {
233
233
listTensorsBody += "style=\"padding: 0px\">" ;
234
234
listTensorsBody += "<div class=\"dropdown mdl-textfield mdl-js-textfield " ;
235
235
listTensorsBody += "mdl-textfield--floating-label getmdl-select\" " ;
236
- listTensorsBody += "style=\"width: 140px ; cursor: move\">" ;
237
- listTensorsBody += "<input class=\"mdl-textfield__input " ;
238
- listTensorsBody += "format-input\" data-toggle=\"dropdown\" id=\"" ;
236
+ listTensorsBody += "style=\"width: 100px ; cursor: move\">" ;
237
+ listTensorsBody += "<input class=\"mdl-textfield__input\" " ;
238
+ listTensorsBody += "data-toggle=\"dropdown\" id=\"" ;
239
239
listTensorsBody += formatNameId ;
240
240
listTensorsBody += "\" type=\"text\" readonly " ;
241
241
listTensorsBody += "value=\"" ;
@@ -276,8 +276,8 @@ function demo() {
276
276
listTensorsBody += "<div class=\"dropdown mdl-textfield mdl-js-textfield " ;
277
277
listTensorsBody += "mdl-textfield--floating-label getmdl-select\" " ;
278
278
listTensorsBody += "style=\"cursor: move\">" ;
279
- listTensorsBody += "<input class=\"mdl-textfield__input " ;
280
- listTensorsBody += "format-input\" data-toggle=\"dropdown\" id=\"" ;
279
+ listTensorsBody += "<input class=\"mdl-textfield__input\" " ;
280
+ listTensorsBody += "data-toggle=\"dropdown\" id=\"" ;
281
281
listTensorsBody += selectId ;
282
282
listTensorsBody += "\" type=\"text\" readonly " ;
283
283
listTensorsBody += "value=\"" ;
@@ -292,23 +292,23 @@ function demo() {
292
292
listTensorsBody += "<label class=\"mdl-textfield__label\">Dimension " ;
293
293
listTensorsBody += ( dim + 1 ) ;
294
294
listTensorsBody += "</label>" ;
295
- listTensorsBody += "<ul class=\"dropdown-menu\" for=\""
295
+ listTensorsBody += "<ul class=\"level-formats dropdown-menu\" for=\""
296
296
listTensorsBody += selectId ;
297
297
listTensorsBody += "\"><li class =\"dense\"><a data-val=\""
298
298
listTensorsBody += "d\">Dense</a></li>" ;
299
299
listTensorsBody += "<li class=\"sparse dropdown-submenu\">" ;
300
300
listTensorsBody += "<a>Sparse" ;
301
301
listTensorsBody += "<i class=\"material-icons\" style=\"float:right\">" ;
302
302
listTensorsBody += "keyboard_arrow_right</i></a>" ;
303
- listTensorsBody += "<ul class=\"dropdown-menu\">" ;
303
+ listTensorsBody += "<ul class=\"level-formats dropdown-menu\">" ;
304
304
listTensorsBody += "<li><a data-val=\"s\">Unique</a></li>" ;
305
305
listTensorsBody += "<li><a data-val=\"u\">Not Unique</a></li>" ;
306
306
listTensorsBody += "</ul></li>" ;
307
307
listTensorsBody += "<li class=\"singleton dropdown-submenu\">" ;
308
308
listTensorsBody += "<a>Singleton" ;
309
309
listTensorsBody += "<i class=\"material-icons\" style=\"float:right\">" ;
310
310
listTensorsBody += "keyboard_arrow_right</i></a>" ;
311
- listTensorsBody += "<ul class=\"dropdown-menu\">" ;
311
+ listTensorsBody += "<ul class=\"level-formats dropdown-menu\">" ;
312
312
listTensorsBody += "<li><a data-val=\"q\">Unique</a></li>" ;
313
313
listTensorsBody += "<li><a data-val=\"c\">Not Unique</a></li>" ;
314
314
listTensorsBody += "</ul></li>" ;
@@ -333,6 +333,9 @@ function demo() {
333
333
var name = tblFormatsView . getFormatName ( entry , model . input . tensorOrders [ tensor ] ) ;
334
334
$ ( "#format" + tensor ) . val ( name ) ;
335
335
tblFormatsView . insertNamesCacheEntry ( tensor , name ) ;
336
+
337
+ model . cancelReq ( ) ;
338
+ model . setOutput ( "" , "" , "" , "" ) ;
336
339
}
337
340
} ) ;
338
341
@@ -403,7 +406,10 @@ function demo() {
403
406
tblFormatsView . insertLevelsCacheEntry ( tensor ,
404
407
tblFormatsView . createEntryFromName ( name , model . input . tensorOrders [ tensor ] ) ) ;
405
408
tblFormatsView . insertNamesCacheEntry ( tensor , name ) ;
409
+
406
410
model . updateInputViews ( ) ;
411
+ model . cancelReq ( ) ;
412
+ model . setOutput ( "" , "" , "" , "" ) ;
407
413
} ) ;
408
414
} ) ;
409
415
0 commit comments