|
|
@@ -1396,13 +1396,24 @@
|
|
|
uifnPopupClose('popupMainContents');
|
|
|
}
|
|
|
|
|
|
+ var fnResetDispOrd = function (){
|
|
|
+ $('.mcTable').each(function (idx){
|
|
|
+ $(this).find('input[name=dispOrd]').val(idx+1);
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
$(document).ready(function() {
|
|
|
$("#popTitle").text("["+contentsLoc+"] "+gagaAgGrid.lookupValue(contentsLocArr, contentsLoc));
|
|
|
|
|
|
$("#popSortable").disableSelection();
|
|
|
fnGetContentsPreviewList();
|
|
|
|
|
|
-
|
|
|
+ $("#popSortable").sortable({
|
|
|
+ stop: function(event, ui) {
|
|
|
+ //fnResetTabIdx();
|
|
|
+ fnResetDispOrd();
|
|
|
+ }
|
|
|
+ });
|
|
|
});
|
|
|
/*]]>*/
|
|
|
</script>
|