diff --git a/include/js/colResizable-1.5.min.js b/include/js/colResizable-1.5.min.js new file mode 100644 index 000000000..7348b2f34 --- /dev/null +++ b/include/js/colResizable-1.5.min.js @@ -0,0 +1,2 @@ +// colResizable 1.5 - a jQuery plugin by Alvaro Prieto Lauroba http://www.bacubacu.com/colresizable/ +(function($){var d=$(document),h=$("head"),drag=null,tables=[],count=0,ID="id",PX="px",SIGNATURE="JColResizer",FLEX="JCLRFlex",I=parseInt,M=Math,ie=navigator.userAgent.indexOf('Trident/4.0')>0,S;try{S=sessionStorage}catch(e){};h.append("");var init=function(tb,options){var t=$(tb);t.opt=options;if(t.opt.disable)return destroy(t);var id=t.id=t.attr(ID)||SIGNATURE+ count++;t.p=t.opt.postbackSafe;if(!t.is("table")||tables[id]&&!t.opt.partialRefresh)return;t.addClass(SIGNATURE).attr(ID,id).before('
');t.g=[];t.c=[];t.w=t.width();t.gc=t.prev();t.f=t.opt.fixed;if(options.marginLeft)t.gc.css("marginLeft",options.marginLeft);if(options.marginRight)t.gc.css("marginRight",options.marginRight);t.cs=I(ie?tb.cellSpacing||tb.currentStyle.borderSpacing:t.css('border-spacing'))||2;t.b=I(ie?tb.border||tb.currentStyle.borderLeftWidth:t.css('border-left-width'))||1;tables[id]=t;createGrips(t)},destroy=function(t){var id=t.attr(ID),t=tables[id];if(!t||!t.is("table"))return;t.removeClass(SIGNATURE+" "+FLEX).gc.remove();delete tables[id]},createGrips=function(t){var th=t.find(">thead>tr>th,>thead>tr>td");if(!th.length)th=t.find(">tbody>tr:first>th,>tr:first>th,>tbody>tr:first>td, >tr:first>td");th=th.filter(":visible");t.cg=t.find("col");t.ln=th.length;if(t.p&&S&&S[t.id])memento(t,th);th.each(function(i){var c=$(this),g=$(t.gc.append('
')[0].lastChild);g.append(t.opt.gripInnerHtml).append('
');if(i==t.ln-1){g.addClass("JCLRLastGrip");if(t.f)g.html("")};g.bind('touchstart mousedown',onGripMouseDown);g.t=t;g.i=i;g.c=c;c.w=c.width();t.g.push(g);t.c.push(c);c.width(c.w).removeAttr("width");g.data(SIGNATURE,{i:i,t:t.attr(ID),last:i==t.ln-1})});t.cg.removeAttr("width");syncGrips(t);t.find('td, th').not(th).not('table th, table td').each(function(){$(this).removeAttr('width')});if(!t.f)t.removeAttr('width').addClass(FLEX)},memento=function(t,th){var w,m=0,i=0,aux=[],tw;if(th){t.cg.removeAttr("width");if(t.opt.flush){S[t.id]="";return};w=S[t.id].split(";");tw=w[t.ln+1];if(!t.f&&tw)t.width(tw);for(;i*{cursor:"+t.opt.dragCursor+"!important}");g.addClass(t.opt.draggingClass);drag=g;if(t.c[o.i].l)for(var i=0,c;i a").each($.proxy(function(i, elm) { renderAWidth($(elm), this); }, this)); - }, this)); if (this.data.grid.isThemeroller) { this.get_container() @@ -230,7 +230,7 @@ isAlreadyGrid = a.hasClass(c); if (a.length === 1) { - a.prev().css("float", "left"); + // a.prev().css("float", "left"); a.addClass(c); renderAWidth(a, _this); renderATitle(a, t, _this); diff --git a/vilesci/lehre/studienordnung.js b/vilesci/lehre/studienordnung.js index 96ad8756c..d8f24ce73 100644 --- a/vilesci/lehre/studienordnung.js +++ b/vilesci/lehre/studienordnung.js @@ -35,6 +35,7 @@ var isLVFilterLoaded=false; /** * Error-Behandlung bei Ajax Requests */ + function loadError(xhr, textStatus, errorThrown) { if(xhr.status==200) @@ -133,7 +134,7 @@ function drawStudienordnungen(data) { if(data[i].studienordnung_id !== null) { - obj=obj+'
  • '+data[i].bezeichnung+'' + obj=obj+'
  • '+data[i].bezeichnung+'' +' ' +'    ' +' ' @@ -309,9 +310,10 @@ function loadLehrveranstaltungSTPL(studienplan_id, bezeichnung, max_semester) treeData.push(obj); } + // DIV fuer den Tree neu anlegen damit der alte Tree vollstaendig entfernt wird $("#data").html("
    "); - + function searchChildren(element, matchingId, original) { var found = false; @@ -482,9 +484,11 @@ function loadLehrveranstaltungSTPL(studienplan_id, bezeichnung, max_semester) // Studienplan_lehrveranstaltung_id ermitteln var studienplan_lehrveranstaltung_id=''; - if(data.rslt.o[0].attributes.studienplan_lehrveranstaltung_id) + if(data.rslt.o[0].attributes.studienplan_lehrveranstaltung_id){ studienplan_lehrveranstaltung_id=data.rslt.o[0].attributes.studienplan_lehrveranstaltung_id.value; - + $("#treeData").jstree.refresh(); + } + // Aenderung speichern saveJsondataFromTree(data.rslt.o[0].id, studienplan_id, studienplan_lehrveranstaltung_id); @@ -626,6 +630,8 @@ function loadLehrveranstaltungSTPL(studienplan_id, bezeichnung, max_semester) } }); $( "#tabs" ).show(); + + } /** @@ -877,6 +883,7 @@ function showLVTree(data) "select_limit": 1, "select_multiple_modifier": "ctrl" }, + json_data: { data: TreeData, progressive_render : true @@ -922,6 +929,8 @@ function showLVTree(data) { $("#loadingGif").remove(); $("h3:contains('Daten werden geladen...')").remove(); + $("#filteredLVs").height("auto"); + $("#menueRechts").height("auto"); //hideAllTreeColumns(); }).bind("select_node.jstree", function(event, data) { @@ -938,6 +947,21 @@ function showLVTree(data) if(lvid!==undefined) loadLVKompatibilitaet(lvid); + }).bind("move_node.jstree", function(event, data) + { + var studienplan_lehrveranstaltung_id=''; + if(data.rslt.o[0].attributes.studienplan_lehrveranstaltung_id){ + studienplan_lehrveranstaltung_id=data.rslt.o[0].attributes.studienplan_lehrveranstaltung_id.value; + $("#treeData").jstree.refresh(); + } + + // Aenderung speichern + saveJsondataFromTree(data.rslt.o[0].id, studienplan_id, studienplan_lehrveranstaltung_id); + + // ECTS Summen neu berechnen + + hideAllTreeColumns(); + writeOverallSum(nodes); }); } else @@ -950,6 +974,9 @@ function showLVTree(data) $("h3:contains('')").remove(); $("#filteredLVs").append("
    Keine Einträge gefunden!
    "); } + /*$("#filteredLVs").css( + max-width, $("#divLVuebersicht").width() + );*/ } /* @@ -1538,4 +1565,4 @@ function copyStudienordnung(studienordnung_id) loadStudienordnung(); }); } -} +} \ No newline at end of file diff --git a/vilesci/lehre/studienordnung.php b/vilesci/lehre/studienordnung.php index 6dfd3df30..07882c8c8 100644 --- a/vilesci/lehre/studienordnung.php +++ b/vilesci/lehre/studienordnung.php @@ -56,6 +56,8 @@ echo ' + + "; @@ -137,7 +153,7 @@ $studiengang = new studiengang(); $studiengang->loadArray($stg_arr,'typ,kurzbz'); echo ' - +
    - -
    + -
    -
    +
    +
     
    @@ -194,6 +210,7 @@ echo ' jqUi( "#tabs" ).tabs(); $( "#tabs" ).hide(); }); +
      @@ -217,18 +234,34 @@ echo '
    - + +