-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
close #76 now the skins can easily share img/css/js from now we shoul…
…dn't have to duplicate image/css and javascript anymore among skins
- Loading branch information
1 parent
8270529
commit 272cb0d
Showing
63 changed files
with
2,445 additions
and
1,284 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
app/resources/commons/css/external/bootstrap-responsive.min.css
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
(function() { | ||
"use strict"; | ||
// check if the slug is correct (i.e not a complete URL see #70) | ||
function check_slug() { | ||
var slugInput = document.getElementById("translationSlug"); | ||
var slug = slugInput.value; | ||
if (slug.indexOf("http://") === -1 ) { | ||
if (slug.indexOf("articles/show/") === -1) { | ||
return true; | ||
} | ||
} | ||
//TODO replace this alert by something sexier | ||
alert("The 3rd field must contain only the last part of the URL, for example only 'linux' not 'http://example.com/articles/show/linux'"); | ||
return false; | ||
} | ||
|
||
// check that we're not doing a translation to the same language | ||
function check_translation_lang() { | ||
|
||
} | ||
//check if the translation form is likely to validate | ||
function check_translation_form() { | ||
return check_slug(); | ||
} | ||
var form = document.getElementById("translateform"); | ||
form.onsubmit = check_translation_form; | ||
|
||
|
||
}()); |
File renamed without changes.
Oops, something went wrong.