Bug 20489 Configure illegal file characters https://bugzilla.wikimedia.org/show_bug...
[mediawiki.git] / js2 / mwEmbed / libClipEdit / pixastic-lib / pixastic.jquery.js
blob7664d2928261bd745b9c300f50bb87cf5fbfda66
2 if (typeof jQuery != "undefined" && jQuery && jQuery.fn) {
3         jQuery.fn.pixastic = function(action, options) {
4                 var newElements = [];
5                 this.each(
6                         function () {
7                                 if (this.tagName == "IMG" && !this.complete) {
8                                         return;
9                                 }
10                                 var res = Pixastic.process(this, action, options);
11                                 if (res) {
12                                         newElements.push(res);
13                                 }
14                         }
15                 );
16                 if (newElements.length > 0)
17                         return jQuery(newElements);
18                 else
19                         return this;
20         };