MyBB Community Forums

Full Version: Problem with custom jquery
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

There's a problem with including custom jquery plugins.

For example,

If i load plugin, that changes checkbox style, the inline_moderation breaks.

IMG:

Working without styling:
[Image: Screenshot%202014-01-15%2000.56.24.png]

Breaks with styling:
[Image: Screenshot%202014-01-15%2000.58.20.png]

However, the jEditable inputs are working with styling aswell.

The code I want to run:

$(document).ready(function(){
$('input').iCheck({
checkboxClass: 'icheckbox_minimal-red',
radioClass: 'iradio_minimal-red',
increaseArea: '20%' // optional
});
});
I don't think it's conflict, I used a non-jQuery plugin for styling checkboxes and inline moderation didn't work for me too. Have to do some edits to make it work.
(2014-01-15, 03:54 AM).m. Wrote: [ -> ]jQuery with MyBB prototype | jQuery & prototype conflict in MyBB



It's not converted yet? It's still with prototype??
(2014-01-15, 03:54 AM).m. Wrote: [ -> ]jQuery with MyBB prototype | jQuery & prototype conflict in MyBB

Prototype isn't included with MyBB anymore so there shouldn't be a conflict anywhere.
wich plugin you want to use ??

If you have some url to test it maybe can say what do you have to know, as destroy666 says, maybe you have to do some other changes on your templates to make it works, but you have only a part of jQuery code, not the plugin for jQuery xD, this for test purposes.