Proyectos de Subversion Moodle

Rev

Rev 978 | Rev 980 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 978 Rev 979
Línea 721... Línea 721...
721
          // Añadir pestañas al DOM
721
          // Añadir pestañas al DOM
722
          el.find(".tabs-menu").append(tabsmenu);
722
          el.find(".tabs-menu").append(tabsmenu);
723
          el.find(".tab").append($(tabcontents));
723
          el.find(".tab").append($(tabcontents));
Línea 724... Línea 724...
724
    
724
    
725
          // Devuelve el HTML resultante
725
          // Devuelve el HTML resultante
726
          return el.html();
726
          $(".inline-" + CSS.cesa_notes_OPENER).append(el.html());
727
        });
727
        });
728
    },
728
    },
729
    /**
729
    /**
730
     * Initialize cesa_notes
730
     * Initialize cesa_notes
Línea 751... Línea 751...
751
      this.currenttabindex = args.currenttabindex;
751
      this.currenttabindex = args.currenttabindex;
752
      this.api = this.getcesa_notesValidatedUrl(
752
      this.api = this.getcesa_notesValidatedUrl(
753
        M.cfg.wwwroot + "/blocks/cesa_notes/cesa_notes_ajax.php"
753
        M.cfg.wwwroot + "/blocks/cesa_notes/cesa_notes_ajax.php"
754
      );
754
      );
755
      var strtitle = M.util.get_string("showcesa_notes", "block_cesa_notes");
755
      var strtitle = M.util.get_string("showcesa_notes", "block_cesa_notes");
756
      if (CONFIG.editing) {
-
 
757
        var handler = $(
-
 
758
          '<div class="' +
-
 
759
            CSS.cesa_notes_OPENER +
-
 
760
            '" title="' +
-
 
761
            strtitle +
-
 
762
            '" alt="' +
-
 
763
            strtitle +
-
 
764
            '">' +
-
 
765
            M.util.get_string("cesa_notes", "block_cesa_notes") +
-
 
766
            "</div>"
-
 
767
        );
756
 
768
        handler.addClass(CONFIG.editingicon_pos);
-
 
769
        $("body").append(handler);
-
 
770
        handler.html('<span class="pencil">&#x270D;</span>');
-
 
771
      } else {
-
 
772
        var handler = $(
-
 
773
          '<div class="' +
-
 
774
            CSS.cesa_notes_OPENER +
-
 
775
            '" title="' +
-
 
776
            strtitle +
-
 
777
            '" alt="' +
-
 
778
            strtitle +
-
 
779
            '">' +
-
 
780
            M.util.get_string("cesa_notes", "block_cesa_notes") +
-
 
781
            "</div>"
-
 
782
        );
-
 
783
        var dialogue = this.displayDialogue();
757
      this.displayDialogue()
784
        handler.addClass(CONFIG.editingicon_pos);
-
 
785
        handler.html('<span class="pencil">&#x270D;</span>');
-
 
786
        $(".inline-" + CSS.cesa_notes_OPENER).html(handler);
-
 
787
        $(".inline-" + CSS.cesa_notes_OPENER).append(
-
 
788
          '<div class="cesa_notes-pos-inline-text ' +
-
 
789
          CSS.cesa_notes_OPENER +
-
 
790
          '">' +
-
 
791
          strtitle +
-
 
792
          "</div>"
-
 
793
        );
-
 
794
        $(".inline-" + CSS.cesa_notes_OPENER).append(dialogue)
-
 
795
      }
-
 
Línea 796... Línea 758...
796
      
758
      
797
    },
759
    },
Línea 798... Línea 760...
798
  };
760
  };