Commit 229798c5 authored by Nicolas Wavrant's avatar Nicolas Wavrant

fix : using a more explicit name for the commit button

parent 7649add0
......@@ -126,7 +126,7 @@ $(document).ready(function () {
checkout("0");
return false;
});
$("#commitb").click(function () {
$("#commitbutton").click(function () {
if ($("input#commitmsg").val() === "" ||
$("textarea#commitmsg").val() === "Enter message...") {
$("#error").Popup("Please Enter the commit message", {type: 'alert', duration: 3000});
......@@ -139,7 +139,7 @@ $(document).ready(function () {
var project = $("#project").val();
$("#imgwaitting").fadeIn('normal');
//$("#commit").empty();
$("#commitb").attr("value", "Wait...");
$("#commitbbutton").attr("value", "Wait...");
$.ajax({
type: "POST",
url: $SCRIPT_ROOT + '/commitProjectFiles',
......@@ -158,7 +158,7 @@ $(document).ready(function () {
}
$("#imgwaitting").hide();
$("#commitmsg").empty();
$("#commitb").attr("value", "Commit");
$("#commitbutton").attr("value", "Commit");
send = false;
}
});
......
......@@ -46,7 +46,7 @@
<label for='commitmsg'>Commit message: </label>
<textarea name="commitmsg" id="commitmsg" cols="40" rows="3">
</textarea>
<input type="submit" name="commit" id ="commitb" value="Commit" class="button"/>
<input type="submit" name="commit" id ="commitbutton" value="Commit" class="button"/>
<img class="waitting" id="imgwaitting" src="{{ url_for('static', filename='images/waiting.gif') }}" alt="" />
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment