[Dnn universal control] improves the expansion speed of the tree control in dnn3.2.x

Source: Internet
Author: User
Tags dnn
In version 3.2.x, dotnetnuke makes improvements to the tree control. One of the improvements is to make the "Expand/collapse" step-by-step execution of the tree control, which looks good, but I don't like it. If the tree menu is long, it takes a long time.
In dnn, JavaScript scripts are called through the clientapi. ProgramIt will soon be known that the "Expand/collapse" action is performed through JavaScript. Find the corresponding script modification in the dnn/JS directory. It is easy to change. You only need to change it in two places. In dnn. controls. dnntree. find dnn In the JS file. dom. expandelement (octr); and dnn. dom. collapseelement (octr);, replace with octr. style. display = ''; and octr. style. display = 'none.

I modified the dnn. Controls. dnntree. js (version 3.2.2 dnn) file. If you don't want to change it, download and overwrite it directly.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.