// $Id$ // Wrapper for the widget. FW_widgets['sortable'] = { createFn:FW_sortableCreate, }; FW_widgets['sortable-strict'] = { createFn:FW_sortableCreate, }; FW_widgets['sortable-given'] = { createFn:FW_sortableCreate, }; function FW_sortableCreate(elName, devName, vArr, currVal, set, params, cmd) { if((vArr.length < 2 && (vArr[0] == "sortable-strict" || vArr[0] == "sortable-given")) || (vArr[0]!="sortable" && vArr[0]!="sortable-strict" && vArr[0]!="sortable-given") || (params && params.length)) return undefined; var newEl = $('').get(0); if(currVal) $(newEl).val(currVal); if(elName) $(newEl).attr("name", elName); newEl.setValueFn = function(arg){ $(newEl).val(arg) }; // replace # with space for(var i1=1; i1