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 () { ...@@ -126,7 +126,7 @@ $(document).ready(function () {
checkout("0"); checkout("0");
return false; return false;
}); });
$("#commitb").click(function () { $("#commitbutton").click(function () {
if ($("input#commitmsg").val() === "" || if ($("input#commitmsg").val() === "" ||
$("textarea#commitmsg").val() === "Enter message...") { $("textarea#commitmsg").val() === "Enter message...") {
$("#error").Popup("Please Enter the commit message", {type: 'alert', duration: 3000}); $("#error").Popup("Please Enter the commit message", {type: 'alert', duration: 3000});
...@@ -139,7 +139,7 @@ $(document).ready(function () { ...@@ -139,7 +139,7 @@ $(document).ready(function () {
var project = $("#project").val(); var project = $("#project").val();
$("#imgwaitting").fadeIn('normal'); $("#imgwaitting").fadeIn('normal');
//$("#commit").empty(); //$("#commit").empty();
$("#commitb").attr("value", "Wait..."); $("#commitbbutton").attr("value", "Wait...");
$.ajax({ $.ajax({
type: "POST", type: "POST",
url: $SCRIPT_ROOT + '/commitProjectFiles', url: $SCRIPT_ROOT + '/commitProjectFiles',
...@@ -158,7 +158,7 @@ $(document).ready(function () { ...@@ -158,7 +158,7 @@ $(document).ready(function () {
} }
$("#imgwaitting").hide(); $("#imgwaitting").hide();
$("#commitmsg").empty(); $("#commitmsg").empty();
$("#commitb").attr("value", "Commit"); $("#commitbutton").attr("value", "Commit");
send = false; send = false;
} }
}); });
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<label for='commitmsg'>Commit message: </label> <label for='commitmsg'>Commit message: </label>
<textarea name="commitmsg" id="commitmsg" cols="40" rows="3"> <textarea name="commitmsg" id="commitmsg" cols="40" rows="3">
</textarea> </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="" /> <img class="waitting" id="imgwaitting" src="{{ url_for('static', filename='images/waiting.gif') }}" alt="" />
</div> </div>
</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