Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var foo = 0;
- // Jeditable stuff
- $(".edit_area").editable("save.php", {
- type : "autogrow",
- submit : 'OK',
- cancel : 'Cancel',
- tooltip : "Click to edit...",
- onblur : "ignore",
- cssclass : 'edit',
- width : 'none',
- height : 'none',
- callback : function() {
- // $('.edit_area').not($(this)).editable('enable');
- },
- autogrow : {
- lineHeight : 16
- }
- });
- $('.edit_area').click(function() {
- if(foo) { return }
- foo = 1;
- $('button').wrapAll('<div class="buttons"></div>');
- }).hover(function() {
- $(this).addClass('edit_hover');
- }, function() {
- $(this).removeClass('edit_hover');
- });
- $('button[type=cancel]').click(function() {
- foo = 0;
- })
Add Comment
Please, Sign In to add comment