Commits

Anonymous committed 5591902

clean.

Comments (0)

Files changed (1)

static/js/src/page.js

 
           this.toolbar.addButton('Link',function(){
               var selection = this.getSelection();
-              
-              
+
               function display_link_type(selected) {
                   $('link_from_'+ selected).show();
                   $('link_from_'+self.link_types_hide[selected]).hide();
               
               $('link_type').observe('change', function(e) {
                   var selected = this.getValue();
-                  display_link_type(selected)
-                  
-                  
+                  display_link_type(selected);
               }, false);
               
               var tb = this;
                   self.link_window.close();
                     return false;
               }, false);
-              
-              /*
-              var response = prompt('Enter Link URL','');  
-              if(response == null)  
-                  return; 
-              this.replaceSelection('[' + (selection == '' ? 'Link Text' : selection) + '](' + (response == '' ? 'http://link_url/' : response).replace(/^(?!(f|ht)tps?:\/\/)/,'http://') + ')');  
-                */
           },{  
               id: 'markdown_link_button'  
           });