From 68f2c92868ddf477568c1dcbe6c58bc2f3375d33 Mon Sep 17 00:00:00 2001 From: brettp Date: Wed, 7 Apr 2010 16:11:29 +0000 Subject: First go at merging in draggable profile fields. Added categories to profile plugin. git-svn-id: http://code.elgg.org/elgg/trunk@5652 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/vendor/jq.editable.min.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 mod/profile/vendor/jq.editable.min.js (limited to 'mod/profile/vendor/jq.editable.min.js') diff --git a/mod/profile/vendor/jq.editable.min.js b/mod/profile/vendor/jq.editable.min.js new file mode 100644 index 000000000..28bf89d3a --- /dev/null +++ b/mod/profile/vendor/jq.editable.min.js @@ -0,0 +1,10 @@ +/* + * Editable 1.3.3 + * + * Copyright (c) 2009 Arash Karimzadeh (arashkarimzadeh.com) + * Licensed under the MIT (MIT-LICENSE.txt) + * http://www.opensource.org/licenses/mit-license.php + * + * Date: Mar 02 2009 + */ +(function($){$.fn.editable=function(options){var defaults={onEdit:null,onSubmit:null,onCancel:null,editClass:null,submit:null,cancel:null,type:"text",submitBy:"blur",editBy:"click",options:null};if(options=="disable"){return this.unbind(this.data("editable.options").editBy,this.data("editable.options").toEditable)}if(options=="enable"){return this.bind(this.data("editable.options").editBy,this.data("editable.options").toEditable)}if(options=="destroy"){return this.unbind(this.data("editable.options").editBy,this.data("editable.options").toEditable).data("editable.previous",null).data("editable.current",null).data("editable.options",null)}var options=$.extend(defaults,options);options.toEditable=function(){$this=$(this);$this.data("editable.current",$this.html());opts=$this.data("editable.options");$.editableFactory[opts.type].toEditable($this.empty(),opts);$this.data("editable.previous",$this.data("editable.current")).children().focus().addClass(opts.editClass);if(opts.submit){$("