Proyectos de Subversion Moodle

Rev

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

Rev 980 Rev 981
Línea 641... Línea 641...
641
            });
641
            });
642
          }
642
          }
643
        }
643
        }
644
      );
644
      );
645
    },
645
    },
-
 
646
    /**
-
 
647
     * Initialize cesa_notes
-
 
648
     * @access public
-
 
649
     * @param {int} instanceid
-
 
650
     * @param {int} contextid
-
 
651
     * @param {int} maxallowedcharacters
-
 
652
     * @param {int} perpage
-
 
653
     * @param {string} editingicon_pos
-
 
654
     * @param {bool} editing
-
 
655
     * @param {string} adminurl
-
 
656
     * @param {array} contextareas
-
 
657
     * @param {string} currenttabindex
-
 
658
     */
646
    displayDialogue: function (e) {
659
    init: function (args) {
-
 
660
      CONFIG = args;
-
 
661
      CONFIG.prefix = "cesa_notes_";
-
 
662
      CONFIG.printapi = this.getcesa_notesValidatedUrl(
-
 
663
        M.cfg.wwwroot + "/blocks/cesa_notes/cesa_notes_print.php"
-
 
664
      );
-
 
665
      this.perpage = parseInt(CONFIG.perpage);
-
 
666
      this.currenttab = "#cesa_notes_" + args.currenttabindex;
-
 
667
      this.defaulttab = "#cesa_notes_" + args.currenttabindex;
-
 
668
      this.currenttabindex = args.currenttabindex;
-
 
669
      this.api = this.getcesa_notesValidatedUrl(
-
 
670
        M.cfg.wwwroot + "/blocks/cesa_notes/cesa_notes_ajax.php"
-
 
671
      );
-
 
672
      
-
 
673
      var strtitle = M.util.get_string("showcesa_notes", "block_cesa_notes");
-
 
674
 
647
      var scope = cesa_notes;
675
      var scope = cesa_notes;
Línea 648... Línea 676...
648
    
676
    
649
      // Obtiene las cadenas de texto requeridas
677
      // Obtiene las cadenas de texto requeridas
650
      return str
678
      str
651
        .get_strings([
679
        .get_strings([
652
          { key: "cesa_notes", component: "block_cesa_notes" },
680
          { key: "cesa_notes", component: "block_cesa_notes" },
653
          { key: "characterlimit", component: "block_cesa_notes" },
681
          { key: "characterlimit", component: "block_cesa_notes" },
654
          { key: "save", component: "block_cesa_notes" },
682
          { key: "save", component: "block_cesa_notes" },
Línea 723... Línea 751...
723
          el.find(".tab").append($(tabcontents));
751
          el.find(".tab").append($(tabcontents));
Línea 724... Línea 752...
724
    
752
    
725
          // Devuelve el HTML resultante
753
          // Devuelve el HTML resultante
726
          $(".inline-" + CSS.cesa_notes_OPENER).html("Hola");
754
          $(".inline-" + CSS.cesa_notes_OPENER).html("Hola");
727
        });
-
 
728
    },
-
 
729
    /**
-
 
730
     * Initialize cesa_notes
-
 
731
     * @access public
-
 
732
     * @param {int} instanceid
-
 
733
     * @param {int} contextid
-
 
734
     * @param {int} maxallowedcharacters
-
 
735
     * @param {int} perpage
-
 
736
     * @param {string} editingicon_pos
-
 
737
     * @param {bool} editing
-
 
738
     * @param {string} adminurl
-
 
739
     * @param {array} contextareas
-
 
740
     * @param {string} currenttabindex
-
 
741
     */
-
 
742
    init: function (args) {
-
 
743
      CONFIG = args;
-
 
744
      CONFIG.prefix = "cesa_notes_";
-
 
745
      CONFIG.printapi = this.getcesa_notesValidatedUrl(
-
 
746
        M.cfg.wwwroot + "/blocks/cesa_notes/cesa_notes_print.php"
-
 
747
      );
-
 
748
      this.perpage = parseInt(CONFIG.perpage);
-
 
749
      this.currenttab = "#cesa_notes_" + args.currenttabindex;
-
 
750
      this.defaulttab = "#cesa_notes_" + args.currenttabindex;
-
 
751
      this.currenttabindex = args.currenttabindex;
-
 
752
      this.api = this.getcesa_notesValidatedUrl(
-
 
753
        M.cfg.wwwroot + "/blocks/cesa_notes/cesa_notes_ajax.php"
-
 
754
      );
-
 
755
      var strtitle = M.util.get_string("showcesa_notes", "block_cesa_notes");
-
 
756
 
-
 
Línea 757... Línea 755...
757
      this.displayDialogue()
755
        });
758
      
756
      
Línea 759... Línea 757...
759
    },
757
    },