Comments (3)
It is not the plugin and its the plugin, let me explain. The plugin doesn't initialize for live events. What you need to do is to hook the pjax event 'pjax:complete' with a reinitialization of the switch button if found.
Yii2 works with pjax at its core, check my solution for the challenge I had with the editable column: https://github.com/2amigos/yii2-grid-view-library/blob/master/assets/editable/js/dosamigos-editable.column.js#L153
from yiiwheels.
Thanks for the help. I managed to get it working.
There is this other error which I can't figure out. The Masked input plugin does not load at all. In the console I get the error: "TypeError: $(...).mask is not a function".
/* In the .js file I noticed "$.mask" is used instead of "$.fn.mask". Since their are so many models (which I haven't tried all) so I am not sure if this was a typo. It seems to be consequently used in the file as "$.mask". */
Never mind the previous part. Since I have tried many things trying to get it to work (even updating the plugin to the latest version) I forgot that it was not the original file that is included in this state of the art Yii extensions :)
Anywayz, I get the same error if I put the original 0.9.0 version back in place.
from yiiwheels.
@BrainFeeder So this issue is not solved?
from yiiwheels.
Related Issues (20)
- Setting 'arrows' option failing. HOT 7
- WhRedactor Open Link in New Tab option was not submitted HOT 10
- clicking inside select2 in editable closes the editable in chrome 35
- How to use WhDatePickerHelper? HOT 1
- WhGridView widget doesn't work. Solution! HOT 2
- Flags in WhCountry HOT 9
- how to use events with formhelpers? HOT 1
- Select2 - css does not load the image HOT 8
- WhEditable error autoload HOT 4
- Update to Bootstrap 3+ HOT 2
- Update YiiWheels for PHP 5.4+ HOT 4
- WhMultiSelect not properly show HOT 9
- Configuration in Yii2 HOT 2
- How To Use Yiistrap 1.x with YiiWheels 2.x? HOT 3
- Composer installation issue HOT 2
- WhDateTimePicker doesn't include moment.min.js
- Wysihtml5 no longer maintained.
- Stable version should have stable dependencies. HOT 3
- Redactor does not work with ActiveForm
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yiiwheels.