Priviliged users can now add tags. Also, some minor cleanups in JS.
[redakcja.git] / platforma / static / js / slugify.js
index 8be7758..9e17ba7 100644 (file)
         }
         return downcoded;
     }
-    
+
     slugify = function(s) {
         s = downcode(s);
         // if downcode doesn't hit, the char will be stripped here
         s = s.replace(/^\s+|\s+$/g, ''); // trim leading/trailing spaces
         s = s.replace(/[-\s]+/g, '-');   // convert spaces to hyphens
         s = s.toLowerCase();             // convert to lowercase
-        
+
         return s;
     }
 })();