Subversion Repositories wpShopGermany4

Rev

Rev 5261 | Rev 5488 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed


        /**
         * Wrapper, um die Editierfunktion austauschbarer zu machen
         */
        jQuery.fn.wspg_editable = function(url, options) {
        
                return this.each(function() {
                        
                        jQuery(this).editable( { 
                                'type': 'text',
                                'url': url,
                                'pk': 1,
                                'ajaxOptions': {
                                        'type': 'post'
                                },
                                'params': options['submitdata'],
                                'placeholder': wpsg_ajax.ie_placeholder,
                                'emptytext': wpsg_ajax.ie_emptytext,
                                'validate': function(value) {
                                        
                                    if(jQuery.trim(value) == '') { return wpsg_ajax.ie_validate_empty; }
                                    
                                }
                        } );
                        
                } );
        
        }