Commit 8558e5c1 authored by Lingnan Wu's avatar Lingnan Wu

Debug : make the list won't change when you load more than once

parent 793e25a7
......@@ -5,7 +5,7 @@ NewList = function (listnumber,listname,listcontent){
var mainList = document.getElementById("textlist");
//set the new element
newElement = document.createElement("li");
newElement.setAttribute("class","ui-btn ui-btn-icon-right ui-li-has-arrow ui-li ui-btn-up-c");
newElement.setAttribute("class","ui-btn ui-btn-icon-right ui-li-has-arrow ui-li ui-li-static ui-body-c ui-btn-up-c");
newElement.setAttribute("data-theme","c");
newElement.setAttribute("data-iconpos","right");
newElement.setAttribute("data-icon","arrow-r");
......@@ -16,7 +16,7 @@ NewList = function (listnumber,listname,listcontent){
mainList.appendChild(newElement);
//set firstdiv
newFirstdiv = document.createElement("div");
newFirstdiv.setAttribute("class","ui-btn-inner ui-li");
newFirstdiv.setAttribute("class","ui-btn-inner ui-li ui-li-static ui-body-c");
newElement.appendChild(newFirstdiv);
//set seconddiv
newSeconddiv = document.createElement("div");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment