Skip to content

Commit

Permalink
patch for bug add my tree at add new item product
Browse files Browse the repository at this point in the history
  • Loading branch information
petazeta committed Aug 17, 2021
1 parent 1a4a0ba commit 899a4aa
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

----------------------------------------------------------------------

# Your Online Shop System V 3.3.1
# Your Online Shop System V 3.3.2

## Live Demo

Expand Down
2 changes: 1 addition & 1 deletion README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* YOS Version *
***************

3.3.1 13/08/2021
3.3.2 18/08/2021


***********
Expand Down
2 changes: 1 addition & 1 deletion javascript/statistics.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class StatsRecorder extends Node{
this.props.uniqueId=this.props.startTime.toString(32).substring(3);
this.linkElement=statsImage;

var softversion="3.3.1";
var softversion="3.3.2";

var url=window.location.href;
if (url.indexOf("sourceforge.")!=-1) {
Expand Down
5 changes: 5 additions & 0 deletions themes/root/components/catalog.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@
const newNode = await this.createInstanceChild();
const itemView=function(itemNode) {
Node.dom.setActive(itemNode);
/*
itemNode.setView(document.getElementById("centralcontent"), "itempicturelarge");
*/
//bug 3.3.1 patch
const thisPageNum=Node.dom.paginationCalculatePageNum(newNode);
newNode.parentNode.partnerNode.setView(document.getElementById("centralcontent"), "pagination", {tmpt: "catalog", pageNum: thisPageNum});
}
newNode.setView(thisElement, "butaddnewnode", {onAdded: itemView});
}
Expand Down
9 changes: 9 additions & 0 deletions themes/root/components/itemlistpicture.html
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,20 @@ <h3 style="position:relative; display:inline-block;">
thisNode.appendView(thisElement.querySelector('.admnbtsgrid'), "butdelete", {onDeleted: Node.dom.paginationOnDeleted});
const newNode = await thisNode.parentNode.createInstanceChild(thisNode);
//If is the last of the page then we will add the item at in next page
/*
const itemView=function(itemNode) {
Node.dom.setActive(itemNode);
itemNode.setView(document.getElementById("centralcontent"), "itempicturelarge");
}
newNode.appendView(thisElement.parentElement.querySelector('.admnbtsgrid'), "butaddnewnode", {onAdded: itemView});
*/
//bug 3.3.1 patch

const listView=function(itemNode) {
const thisPageNum=Node.dom.paginationCalculatePageNum(itemNode);
itemNode.parentNode.partnerNode.setView(document.getElementById("centralcontent"), "pagination", {tmpt: "catalog", pageNum: thisPageNum});
}
newNode.appendView(thisElement.parentElement.querySelector('.admnbtsgrid'), "butaddnewnode", {onAdded: listView});
}
</script>
</div>

0 comments on commit 899a4aa

Please sign in to comment.