Publication button works, but need better error messages.
[redakcja.git] / platforma / static / js / slugify.js
index b000b64..9e17ba7 100644 (file)
         }
         return downcoded;
     }
         }
         return downcoded;
     }
-    
+
     slugify = function(s) {
         s = downcode(s);
         // if downcode doesn't hit, the char will be stripped here
     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
         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;
     }
         return s;
     }
-})()
+})();
+
+