Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
jquery.jeditable.js.diff
Package: jforum-2.1.8-src.zip [view]
Upload User: gdxydsw
Upload Date: 2019-01-29
Package Size: 16721k
Code Size: 2k
Category:
Java Develop
Development Platform:
Java
- --- jquery.jeditable.original.js 2007-09-02 13:52:52.000000000 -0300
- +++ jquery.jeditable.pack.js 2007-09-02 13:52:42.000000000 -0300
- @@ -102,6 +102,8 @@
- || jQuery.editable.types['defaults'].element;
- callback = callback || function() { };
- +
- + var isSubmitAllowed = settings.beforesubmit || function () { return true; };
- jQuery(this).attr('title', settings.tooltip);
- @@ -246,7 +248,9 @@
- e.preventDefault();
- /* if this input type has a call before submit hook, call it */
- - submit.apply(f, [settings, self]);
- + submit.apply(f, [settings, self]);
- +
- + var submitdata = {};
- /* check if given target is function */
- if (jQuery.isFunction(settings.target)) {
- @@ -254,9 +258,9 @@
- self.innerHTML = str;
- self.editing = false;
- callback.apply(self, [self.innerHTML, settings]);
- - } else {
- + } else if (isSubmitAllowed(submitdata)) {
- /* add edited content and id of edited element to POST */
- - var submitdata = {};
- +
- submitdata[i.name] = jQuery(i).val();
- submitdata[settings.id] = self.id;
- /* add extra data to be POST:ed */
- @@ -274,6 +278,9 @@
- callback.apply(self, [self.innerHTML, settings]);
- });
- }
- + else {
- + reset();
- + }
- return false;
- });