Skip to content

Commit

Permalink
fix characters to plain ascii
Browse files Browse the repository at this point in the history
  • Loading branch information
markusstoll committed Mar 7, 2013
1 parent f2189a4 commit 8f2da41
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions Frameworks/Ajax/Ajax/WebServerResources/wonder.js
Original file line number Diff line number Diff line change
Expand Up @@ -822,23 +822,23 @@ Ajax.StoppedPeriodicalUpdater = Class.create(Ajax.Base, {
});

var AjaxHintedText = {
   register: function(tag, id) {
     $$(tag + "#" + id).each(function(script, index) {
         Element.select($(script), 'input', 'textarea').each(function(el, index) {
             AjaxHintedText.textBehaviour(el);
         });
         Element.select($(script), 'form').each(function(form, index) {
             AjaxHintedText.formBehaviour(form);    
         });
     });
    },
register: function(tag, id) {
$$(tag + "#" + id).each(function(script, index) {
Element.select($(script), 'input', 'textarea').each(function(el, index) {
AjaxHintedText.textBehaviour(el);
});
Element.select($(script), 'form').each(function(form, index) {
AjaxHintedText.formBehaviour(form);
});
});
},
registerForm : function(formselector) {
     $$(formselector).each(function(form,index) {
           Element.select(form,'input','textarea').each(function(el, index) {
             AjaxHintedText.textBehaviour(el);
         });
         AjaxHintedText.formBehaviour(form);    
     });
$$(formselector).each(function(form,index) {
Element.select(form,'input','textarea').each(function(el, index) {
AjaxHintedText.textBehaviour(el);
});
AjaxHintedText.formBehaviour(form);
});
},
textBehaviour : function(e) {
if(!e.getAttribute('default')) {
Expand All @@ -855,7 +855,7 @@ var AjaxHintedText = {
}
}
e.showTextValue = function() {
            Element.removeClassName(e, 'ajax-hinted-text-with-default');
Element.removeClassName(e, 'ajax-hinted-text-with-default');
if(e.value.replace(/[\r\n]/g, "") == e.getAttribute('default').replace(/[\r\n]/g, "")) {
e.value = "";
}
Expand Down

0 comments on commit 8f2da41

Please sign in to comment.