Subversion Repositories DevTools

Rev

Rev 5097 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5097 Rev 5102
Line 6... Line 6...
6
%>
6
%>
7
<script>
7
<script>
8
$( "#f1" ).dialog({
8
$( "#f1" ).dialog({
9
    autoOpen: true,
9
    autoOpen: true,
10
    width: 500,
10
    width: 500,
-
 
11
    position: { my: "top", at: "top+100", of: window },
11
    modal: true,
12
    modal: true,
12
    draggable: true,
13
    draggable: true,
13
    resizable: true,
14
    resizable: true,
14
    dialogClass: "rounded_box",
15
    dialogClass: "rounded_box",
15
        buttons: [
16
        buttons: [
Line 27... Line 28...
27
                        $( this ).dialog( "close" ); 
28
                        $( this ).dialog( "close" ); 
28
                        },
29
                        },
29
            },
30
            },
30
        ],
31
        ],
31
    open: function( event, ui ) {
32
    open: function( event, ui ) {
-
 
33
        populateProjects();
32
        },
34
        },
33
    close : function(event, ui ){
35
    close : function(event, ui ){
34
        // Need to remove DOM elements on close so that
36
        // Need to remove DOM elements on close so that
35
        // When it is opened again - the binds occur correctly
37
        // When it is opened again - the binds occur correctly
36
        $(this).dialog('destroy').remove();
38
        $(this).dialog('destroy').remove();
37
        },
39
        },
38
    });
40
    });
39
 
41
 
-
 
42
//  Populate the Projects dropdown
-
 
43
function populateProjects() {
-
 
44
    getAjaxData (
-
 
45
        "sdk_opr_json.asp",
-
 
46
        { action: "getProjectList" },
-
 
47
        function(data){
-
 
48
            // Populate selection
-
 
49
            var $options = $("#sdk_projects").empty();
-
 
50
            var name
-
 
51
            $options.append($("<option disabled selected/>").val(null).text('Select One'));
-
 
52
            $.each(data.aaData, function (index, value) {
-
 
53
                $options.append($("<option />").val(value.PROJ_ID).text(value.PROJ_NAME));
-
 
54
            });
-
 
55
        });    
-
 
56
}
-
 
57
 
-
 
58
 
40
function setInfo(txt) {
59
function setInfo(txt) {
41
    $("#info").text( txt).addClass("error");
60
    $("#info").text( txt).addClass("error");
42
}
61
}
43
 
62
 
44
function clearInfo(txt) {
63
function clearInfo(txt) {
Line 137... Line 156...
137
    <br><input id=sdk_name type="text" name="sdkName" maxlength=50 size=40 data-validation="length,alphanumeric" data-validation-length="min4" data-validation-allowing="_. -">
156
    <br><input id=sdk_name type="text" name="sdkName" maxlength=50 size=40 data-validation="length,alphanumeric" data-validation-length="min4" data-validation-allowing="_. -">
138
 
157
 
139
    <p>Comment:
158
    <p>Comment:
140
    <br><textarea id=sdk_comment name="sdkComment" cols=40  data-validation="length" data-validation-length="5-4000"></textarea>                                              
159
    <br><textarea id=sdk_comment name="sdkComment" cols=40  data-validation="length" data-validation-length="5-4000"></textarea>                                              
141
 
160
 
-
 
161
    <p>Project:
-
 
162
    <br><select id=sdk_projects name="sdkProject" data-validation="required"></select>                                              
-
 
163
 
142
    <input type="hidden" name="action" value="addSdkName">
164
    <input type="hidden" name="action" value="addSdkName">
143
</form>
165
</form>
144
 
166