Browse Source

[svn r22245] added restriction - (partial FS#4337)

Isaac Flores 15 years ago
parent
commit
262e28d546

+ 4 - 0
main/inc/lib/fckeditor/editor/plugins/glossary/fck_glossary_automatic.js

@@ -1,6 +1,7 @@
 $(document).ready(function() {
     $(window).load(function () { 
      var my_text=$("body").html();
+
      $.ajax({
         contentType: "application/x-www-form-urlencoded",
         beforeSend: function(objeto) {
@@ -9,6 +10,9 @@ $(document).ready(function() {
         url: "../../../main/glossary/glossary_ajax_request.php",
         data: "glossary_data=true",
         success: function(datos) {
+			  if (datos.length==0) {
+			  	return false;
+			  }
                 data_terms=datos.split("[|.|_|.|-|.|]");  
                 for(i=0;i<data_terms.length;i++) {
                     specific_terms=data_terms[i].split("__|__|");