|
|
@ -11,6 +11,7 @@ $( "button.hotfix" ).click( function( e ) {
|
|
|
|
var branch = $( "select#version_" + id + " option:selected" ).val().replace( "branch/", "" );
|
|
|
|
var branch = $( "select#version_" + id + " option:selected" ).val().replace( "branch/", "" );
|
|
|
|
var repo = id;
|
|
|
|
var repo = id;
|
|
|
|
var span = $( "span#hotfix_error_" + id );
|
|
|
|
var span = $( "span#hotfix_error_" + id );
|
|
|
|
|
|
|
|
var links = $( "#links_" + id );
|
|
|
|
var push = $( "select#push_" + id + " option:selected" ).val();
|
|
|
|
var push = $( "select#push_" + id + " option:selected" ).val();
|
|
|
|
var empty = $( "input#empty_" + id ).prop( "checked" );
|
|
|
|
var empty = $( "input#empty_" + id ).prop( "checked" );
|
|
|
|
|
|
|
|
|
|
|
@ -29,10 +30,13 @@ $( "button.hotfix" ).click( function( e ) {
|
|
|
|
button.attr( "disabled", "disabled" );
|
|
|
|
button.attr( "disabled", "disabled" );
|
|
|
|
span.html( "processing" );
|
|
|
|
span.html( "processing" );
|
|
|
|
span.show();
|
|
|
|
span.show();
|
|
|
|
|
|
|
|
links.addClass( "hidden" );
|
|
|
|
|
|
|
|
|
|
|
|
function successFunc( data, _status ) {
|
|
|
|
function successFunc( data, _status ) {
|
|
|
|
span.html( "" );
|
|
|
|
span.html( "" );
|
|
|
|
span.append( "<a href=\"" + data.url + "\">Done</a>" );
|
|
|
|
$( "#link_done_" + id ).attr( "href", data.urls[ 0 ] );
|
|
|
|
|
|
|
|
$( "#link_latest_" + id ).attr( "href", data.urls[ 1 ] );
|
|
|
|
|
|
|
|
links.removeClass( "hidden" );
|
|
|
|
button.removeAttr( "disabled" );
|
|
|
|
button.removeAttr( "disabled" );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -47,6 +51,7 @@ $( "td.version > select" ).change( function() {
|
|
|
|
var version = $( this ).val();
|
|
|
|
var version = $( this ).val();
|
|
|
|
var button = $( "button#hotfix_" + id );
|
|
|
|
var button = $( "button#hotfix_" + id );
|
|
|
|
var span = $( "span#hotfix_error_" + id );
|
|
|
|
var span = $( "span#hotfix_error_" + id );
|
|
|
|
|
|
|
|
var links = $( "#links_" + id );
|
|
|
|
|
|
|
|
|
|
|
|
if ( version.match( /^branch\/mr[0-9]+\.[0-9]+\.[0-9]+$/ ) ) {
|
|
|
|
if ( version.match( /^branch\/mr[0-9]+\.[0-9]+\.[0-9]+$/ ) ) {
|
|
|
|
button.html( "Release hotfix" );
|
|
|
|
button.html( "Release hotfix" );
|
|
|
@ -56,6 +61,7 @@ $( "td.version > select" ).change( function() {
|
|
|
|
button.attr( "disabled", "disabled" );
|
|
|
|
button.attr( "disabled", "disabled" );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
span.html( "" );
|
|
|
|
span.html( "" );
|
|
|
|
|
|
|
|
links.addClass( "hidden" );
|
|
|
|
} );
|
|
|
|
} );
|
|
|
|
|
|
|
|
|
|
|
|
$( document ).ready( function() {
|
|
|
|
$( document ).ready( function() {
|
|
|
|