diff --git a/src/sunstone/public/js/plugins/datastores-tab.js b/src/sunstone/public/js/plugins/datastores-tab.js index 0a1aaa1c66..3ca86a4128 100644 --- a/src/sunstone/public/js/plugins/datastores-tab.js +++ b/src/sunstone/public/js/plugins/datastores-tab.js @@ -569,11 +569,6 @@ function datastoreElements() { function datastoreElementArray(element_json){ var element = element_json.DATASTORE; - var type = "No"; - - if (element.TEMPLATE.TYPE) - type = element.TEMPLATE.TYPE.toUpperCase() == 'SYSTEM_DS' ? 'Yes' : 'No' - return [ '\
\
\ - \ + \
\
\ - \ \
\
\ @@ -187,10 +187,10 @@ var create_file_tmpl =
  • \
    \
    \ - \ + \
    \
    \ - \ + \
    \ \
    \ @@ -907,7 +907,7 @@ function setupCreateFileDialog(){ "ds_id" : ds_id }; Sunstone.runAction("File.create",img_obj); - $create_image_dialog.trigger("reveal:close") + $create_file_dialog.trigger("reveal:close") return false; }); @@ -917,19 +917,18 @@ function popUpCreateFileDialog(){ $('#file-uploader input',$create_file_dialog).removeAttr("style"); $('#file-uploader input',$create_file_dialog).attr('style','margin:0;width:256px!important'); - var datastores_str = datastores_sel(); + datastores_str = makeSelectOptions(dataTable_datastores, + 1, + 4, + [9,9],//system ds + ['IMAGE_DS','SYSTEM_DS'], //filter sys datastores + true + ); $('#file_datastore',$create_file_dialog).html(datastores_str); $('#file_datastore_raw',$create_file_dialog).html(datastores_str); $create_file_dialog.reveal(); - - $('select#file_datastore').children('option').each(function() { - if ($(this).val() != "2") - { - $(this).attr('disabled', 'disabled'); - } - }); } // Set the autorefresh interval for the datatable