Plugin Directory

Changeset 631807


Ignore:
Timestamp:
11/29/2012 03:22:09 PM (13 years ago)
Author:
quartz
Message:

visual/code update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-postit/trunk/js/code.php

    r629070 r631807  
    1515var $j= jQuery.noConflict();
    1616
    17 <?
    18 if ($post)
    19 {
    20 ?>
     17
    2118$j(document).ready(function() {
    2219
    23     tinyMCE.init({
    24         // General options
    25         mode : "specific_textareas",
    26         editor_selector : "ta_postit",
    27         theme : "advanced",
    28         theme_advanced_resizing: false,
    29         theme_advanced_buttons3_add : "fullscreen,print,preview",
    30         theme_advanced_toolbar_location : "top",
    31         theme_advanced_toolbar_align : "left",
    32         theme_advanced_statusbar_location : "bottom",
    33         theme_advanced_resizing : false,
    34         theme_advanced_statusbar_location : "none",
    35         // Skin options
    36         skin : "o2k7",
    37         skin_variant : "silver",
    38         theme_advanced_path : false,
    39         // Example content CSS (should be your site CSS)
    40         // content_css : "css/example.css",
    41         // Drop lists for link/image/media/template dialogs
    42         template_external_list_url : "js/template_list.js",
    43         external_link_list_url : "js/link_list.js",
    44         external_image_list_url : "js/image_list.js",
    45         media_external_list_url : "js/media_list.js"
     20
     21
    4622    });
    47 });
    48 <?
    49 }
    50 ?>
    5123
     24       
    5225function setMode(mode)
    5326{
     
    7245         w = $j("#note"+id).parent("div").css("width"); 
    7346}
    74 
     47       
    7548    $j("#note"+id).slideToggle(500);
    76 
     49       
     50             
    7751
    7852    //ADJUST PARENT
     
    10276    $j("#message_"+postid).html("sending...");
    10377    $j("#message_"+postid).css("display","inline-block");
    104     ta = tinyMCE.get('ta_postit_'+postid).getContent();
     78    ta = $j('textarea#ta_postit_'+postid).val();
     79    if (typeof tinyMCE != 'undefined')   
     80        {
     81        if (tinyMCE.get('ta_postit_'+postid).isHidden()!=true)
     82            {
     83            ta = tinyMCE.get('ta_postit_'+postid).getContent();
     84            }
     85        }       
    10586    $j.ajax({
    10687        type: "POST",
Note: See TracChangeset for help on using the changeset viewer.