|
|
@@ -549,7 +549,7 @@ $(document).ready(function() {
|
|
|
}
|
|
|
|
|
|
function pathModal(target) {
|
|
|
- $(target).html("Podgląd: <div style=display:none; class=pathPreview></div>Zaznacz proces nadrzędny: <div id=pathList>"
|
|
|
+ $(target).html("<div style=display:none; class=pathPreview></div>Zaznacz proces nadrzędny: <div id=pathList>"
|
|
|
+ "</div>"
|
|
|
+ "<button type='button' class='btn btn-primary p5BModalButton' id='savePath'>Zachowaj</button>"
|
|
|
+ "<button type='button' class='btn btn-default p5BModalButton' id='previousPath'>Anuluj</button>"
|
|
|
@@ -1338,7 +1338,17 @@ $(document).ready(function() {
|
|
|
$.each(data, function(i, e) {
|
|
|
if (e["ID"] != 0) {
|
|
|
var type = 0;
|
|
|
- $(target).append("<div class='dragStyle drag dragStyle hov' data-id=" + e["ID"] + " data-type=" + type + " data-desc='" + e["DESC"] + "' data-opis='" + e["OPIS"] + "'>" + e["DESC"] + " [" + e["ID"] + "]</div>");
|
|
|
+ $(target).append("<div class='dragStyle drag dragStyle hov' data-id="
|
|
|
+ + e["ID"]
|
|
|
+ + " data-type="
|
|
|
+ + type + " data-desc='"
|
|
|
+ + e["DESC"]
|
|
|
+ + "' data-opis='"
|
|
|
+ + e["OPIS"]
|
|
|
+ + "'>"
|
|
|
+ + e["DESC"]
|
|
|
+ + " ["
|
|
|
+ + e["ID"] + "]</div>");
|
|
|
for (var i = 3; i > 0; i--) {
|
|
|
if (e["p" + i + "_ID"] != null) {
|
|
|
var temp = {};
|
|
|
@@ -1977,9 +1987,9 @@ $(document).ready(function() {
|
|
|
removeImg(state[getIndexById(procesBefore)][typeNameBefore][getResById(getIndexById(procesBefore), $(ui.draggable).closest("li").data("id"), typeNameBefore)]["img"], temp["id"]);
|
|
|
}
|
|
|
|
|
|
- if (typeName == "proces")
|
|
|
+ if (typeName == "proces") {
|
|
|
state[getIndexById(id)]["vid"].push(temp);
|
|
|
- else {
|
|
|
+ } else {
|
|
|
state[getIndexById(proces)][typeName][getResById(getIndexById(proces), $(target).closest("li").data("id"), typeName)]["img"].push(temp);
|
|
|
}
|
|
|
$(ui.draggable).remove();
|