Project

General

Profile

Actions

Bug #6935

closed

adminlte

Added by yu feng about 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
03/03/2019
Due date:
% Done:

0%

Estimated time:

Description

I want to use adminlte in wt app.

NBWtWebApp::NBWtWebApp(const Wt::WEnvironment& env)

: Wt::WApplication(env)

{

/*std::unique_ptrWt::WBootstrapTheme bootstrapTheme = Wt::cpp14::make_uniqueWt::WBootstrapTheme();

bootstrapTheme->setVersion(Wt::BootstrapVersion::v3);

bootstrapTheme->setResponsive(true);

setTheme(std::move(bootstrapTheme));*/

require("/lib/jquery/dist/jquery.min.js");

require("/lib/bootstrap/dist/js/bootstrap.min.js");

useStyleSheet("/lib/bootstrap/dist/css/bootstrap.min.css");

require("/lib/adminlte/dist/js/adminlte.min.js");

useStyleSheet("/lib/adminlte/dist/css/AdminLTE.min.css");

useStyleSheet("/lib/adminlte/dist/css/skins/skin-blue.min.css");

}

but sometimes error alert :

Wt internal error; code: undefined, description: c.size is not a function

how to solve this error? if I remove require("/lib/jquery/dist/jquery.min.js");

no alert Wt internal error; code: undefined, description: c.size is not a function

.

here is my web : http://qd.niunb.com

Actions #1

Updated by Roel Standaert almost 5 years ago

  • Status changed from New to Closed

Wt includes its own jQuery. You will need to use requireJQuery() to load a different version of jQuery: https://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1WApplication.html#aa2add60804ff75b3798fc270050654c5

Actions

Also available in: Atom PDF