Comments (3)
Yes, you can write an extension for it, do you know how to write extensions?
from nette.ajax.js.
If you want it only for ajaxified buttons, then the optimal event hook for that is start
(which is fired only when the request already started).
$.nette.ext({
start: function (xhr, settings) {
if (!settings.nette.el.isSubmit) {
return;
}
settings.nette.el.attr('disabled', true);
},
// if you want to reenable button...
complete: function (xhr, status, settings) {
if (settings.nette.el) {
settings.nette.el.removeAttr('disabled');
}
}
});
from nette.ajax.js.
Thanks!
from nette.ajax.js.
Related Issues (20)
- Validation problem in Nette 2.4 HOT 2
- Plugins not executed on $.nette.ajax({ url: ... ); HOT 3
- Not working on forms HOT 6
- Spinner "start" called before "init" HOT 2
- npm support HOT 7
- Nette.ajax method is called before nette form validation HOT 1
- Binding ajax handlers to body via $('body').on() HOT 1
- Tag 2.3.0 HOT 2
- Multiple $.nette.ajax() are cancelled HOT 5
- Error in nette.ajax.js HOT 3
- NPM/Yarn outdated HOT 4
- title should not be escaped (when you assing title you should unescape before) HOT 1
- Fails without netteForms.js for forms HOT 1
- Wrong browser history title when used with history.nette.ajax.js
- Odkaz uvnitř SVG - chybná URL
- Support minified version
- Nette is not defined - nette.ajax.js:319 HOT 1
- IE11 bug nette.ajax.js 2.3.0
- IE11 bug when absolute URL is used HOT 1
- Is this library still maintained and compliant with latest Nette versions?
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 nette.ajax.js.