瀏覽代碼

fix popover, fix wrong login msg (see #52)

Piotr Labudda 11 年之前
父節點
當前提交
39f1d1627b
共有 3 個文件被更改,包括 5 次插入17 次删除
  1. 3 15
      SE/se-lib/PokazOfertyView.php
  2. 1 1
      SE/se-lib/User.php
  3. 1 1
      SE/superedit-POKAZ_OFERTY_AKTUALNE_FUNC.php

+ 3 - 15
SE/se-lib/PokazOfertyView.php

@@ -689,21 +689,10 @@ function umowaZysk_click(n) {
 		n.data('tip-visible', true);
 	} else {
 		n.data('tip-visible', false);
+		n.popover('destroy');
 	}
-	n.popover('destroy');
-
 
 	if (!visible) {
-		var tip = {
-			placement: 'left',
-			html: true,
-			trigger: 'manual',
-			title: 'Zysk',
-			content: 'loading...'
-		};
-		n.popover(tip);
-		n.popover('show');
-
 		umowaZysk_load(n);
 	}
 	return false;
@@ -716,7 +705,6 @@ function umowaZysk_loadResult(n, result) {
 	}
 
 	n.data('tip-visible', true);
-	n.popover('destroy');
 	var tip = {
 		placement: 'left',
 		html: true,
@@ -724,8 +712,8 @@ function umowaZysk_loadResult(n, result) {
 		title: 'Zysk',
 		content: content
 	};
-	$(n).popover(tip);
-	$(n).popover('show');
+	n.popover(tip);
+	n.popover('show');
 }
 
 function umowaZysk_load(n) {

+ 1 - 1
SE/se-lib/User.php

@@ -406,7 +406,7 @@ class User {
 		}
 
 		if (!$ldapUser['user_dn']) {
-			$errors[] = 'Error: login nie istnieje w bazie LDAP!';
+			$errors[] = 'Proszę podać poprawny login i hasło!';
 			return false;
 		}
 

+ 1 - 1
SE/superedit-POKAZ_OFERTY_AKTUALNE_FUNC.php

@@ -3491,7 +3491,7 @@ foreach ($oferty as $row) {
 
 							$js = "return umowaZysk_click(this); return false;";
 							?>
-								<a class="btn btn-xs pull-right" href="#" data-id_group="<?php echo $row['0_1380']; ?>" title="Oblicz zysk" onclick="<?php echo $js; ?>">Oblicz zysk</a>
+								<a role="button" class="btn btn-xs pull-right" data-id_group="<?php echo $row['0_1380']; ?>" title="Oblicz zysk" onclick="<?php echo $js; ?>">Oblicz zysk</a>
 							<?php
 						echo '</th>';
 					echo '</tr>';