Welcome Guest ! Please   Login or Register


Check out our latest Premium Themes, Majestic , Majestic - Dark and Musk Themes for MyBB 1.8 Click to Shop Now

Now open for Custom Theme requests : Click to Order Now





 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
LightDesire: ddes.js VS latest jQuery

EmMisa Offline
Customer
****

Posts: 4
Joined: Jan 2014
Likes Received : 1

Nationality: Germany

Mood: None

Points: 204.96Points
Post: #1
LightDesire: ddes.js VS latest jQuery

In Version 1.0 LightDesire uses jQuery 1.8.2. It's a relative old Version. Actually we have 1.10.2. So i use the latest Version from jQuery on my Space. It looks ok with the LightDesire Theme besides the ddes.js makes problems after editing the jquery code in the headerinclude template.

More correctly the toggle button (X) code that expands the wrapper from 85% to 960px don't work with the latest Version. Know someone a fix? The Code what i mean is on line 135.
01-13-2014 05:49 PM
Find
0
Quote




Bala Offline
Customer
****

Posts: 41
Joined: Feb 2013
Likes Received : 5

Facebook Google Plus
Nationality:

Mood: Sick

Points: 873.20Points
Post: #2
RE: LightDesire: ddes.js VS latest jQuery

Its not a big deal using updated Jquery. Leave it to 1.8 or 1.9 as most scripts work fine with them. I myself use 1.9 instead of 1.10 for my scripts.
If possible post a content of ddes.js so I can figure out whats wrong.
01-13-2014 11:59 PM
Find
0
Quote




EmMisa Offline
Customer
****

Posts: 4
Joined: Jan 2014
Likes Received : 1

Nationality: Germany

Mood: None

Points: 204.96Points
Post: #3
RE: LightDesire: ddes.js VS latest jQuery

The is the part what i mean.

Code:
$(document).ready(function () {
    var setWidth = $.cookie("width");
    if (typeof setWidth !== "undefined" && setWidth == "85%") {
        $('#container,.wrap').width(setWidth); // 85% width set using cookie
    } else if (typeof setWidth !== "undefined" && setWidth == "960px") {
        $('#container,.wrap').width(setWidth); // 960px,1000px(for wrap) width set using cookie
    }
    $('#toggle-button').click(function () {
        var toggleWidth = $("#container").width() == 960 ? "85%" : "960px";

        $('#container, .wrap').animate({
            width: toggleWidth
        });
        $.cookie('width', toggleWidth);
    });
});
01-14-2014 06:12 AM
Find
0
Quote




envira Offline
Doctor Web
*******

Posts: 1,245
Joined: Aug 2012
Likes Received : 303

Facebook Google Plus Twitter
Nationality: India

Mood: Lazy

Points: 63,357.44Points
Post: #4
RE: LightDesire: ddes.js VS latest jQuery

(01-13-2014 05:49 PM)EmMisa Wrote:  In Version 1.0 LightDesire uses jQuery 1.8.2. It's a relative old Version. Actually we have 1.10.2. So i use the latest Version from jQuery on my Space. It looks ok with the LightDesire Theme besides the ddes.js makes problems after editing the jquery code in the headerinclude template.

More correctly the toggle button (X) code that expands the wrapper from 85% to 960px don't work with the latest Version. Know someone a fix? The Code what i mean is on line 135.


Hello sorry for late reply,
I would look into this issue soon and provide a fix
regards

[Image: lt79ucY.png]
01-23-2014 11:29 AM
Find
0
Quote





Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  LightDesire: Fix for forumbit_depth2_cat EmMisa 2 886 01-23-2014 11:12 AM
Last Post: envira
  Suggestion for LightDesire LeloDude 5 1,246 01-13-2014 04:02 AM
Last Post: X3non

Forum Jump:


User(s) browsing this thread: 1 Guest(s)

About Myskins

MySkins Studio is MyBB Themes Resource Website.

At MySkins Studio, We procreate MyBB Themes both custom MyBB Themes and premium Mybb Themes.We believe in quality and assure you the best MyBB themes at a very reasonable price , that suits your taste.

Feel free to drop in a request and get a quote.