예제 #1
0
파일: actions.js 프로젝트: hydro-b/one
 $.each(Sunstone.getDataTable(TAB_ID).elements(), function(index, elem) {
   if (!Spice.lockStatus()) {
     Spice.lock();
     Sunstone.runAction("VM.startspice_action", elem);
   } else {
     Notifier.notifyError(Locale.tr("SPICE Connection in progress"))
     return false;
   }
 });
예제 #2
0
파일: datatable.js 프로젝트: OpenNebula/one
    $('#' + this.dataTableId).on("click", '.spice', function() {
      var vmId = $(this).attr('vm_id');

      if (!Spice.lockStatus()) {
        Spice.lock();
        Sunstone.runAction("VM.startspice_action", vmId);
      } else {
        Notifier.notifyError(Locale.tr("SPICE Connection in progress"))
      }

      return false;
    });