Proyectos de Subversion Moodle

Rev

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

Rev 973 Rev 977
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>"
756
      
767
        );
-
 
768
        handler.addClass(CONFIG.editingicon_pos);
-
 
769
        $("body").append(handler);
-
 
770
        handler.html('<span class="pencil">&#x270D;</span>');
757
 
771
      } else {
758
      var handler = $(
772
        var handler = $(
759
          '<div class="' +
773
          '<div class="' +
760
            CSS.cesa_notes_OPENER +
774
            CSS.cesa_notes_OPENER +
761
            '" title="' +
775
            '" title="' +
762
            strtitle +
776
            strtitle +
763
            '" alt="' +
777
            '" alt="' +
Línea 765... Línea 779...
765
            '">' +
779
            '">' +
766
            M.util.get_string("cesa_notes", "block_cesa_notes") +
780
            M.util.get_string("cesa_notes", "block_cesa_notes") +
767
            "</div>"
781
            "</div>"
768
        );
782
        );
769
        var dialogue = this.displayDialogue();
783
        var dialogue = this.displayDialogue();
770
 
-
 
771
        handler.addClass(CONFIG.editingicon_pos);
784
        handler.addClass(CONFIG.editingicon_pos);
772
        handler.html('<span class="pencil">&#x270D;</span>');
785
        handler.html('<span class="pencil">&#x270D;</span>');
773
    
786
        
774
        $(".inline-" + CSS.cesa_notes_OPENER).append(dialogue);
787
        $(".inline-" + CSS.cesa_notes_OPENER).html(dialogue);
-
 
788
        $(".inline-" + CSS.cesa_notes_OPENER).append(
-
 
789
          '<div class="cesa_notes-pos-inline-text ' +
-
 
790
            CSS.cesa_notes_OPENER +
-
 
791
            '">' +
-
 
792
            strtitle +
-
 
793
            "</div>"
-
 
794
        );
-
 
795
      }
-
 
796
      // var body = $("body");
-
 
797
      // body.delegate(SELECTORS.cesa_notes_OPENER, "click", this.displayDialogue);
775
    },
798
    },
776
  };
799
  };
Línea 777... Línea 800...
777
 
800
 
778
  return cesa_notes;
801
  return cesa_notes;